/* emilygreycom.com · Rain Field */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --ink: #1e1b18;
  --paper: #efece7;
  --grey: #b6ada4;
  --accent: #a48fc4;
  --line: #322d29;
  --panel: #272320;
  --shell: 1160px;
}
html { background: var(--ink); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Epunda Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, .serif {
  font-family: 'Texturina', 'Iowan Old Style', Georgia, serif;
  font-weight: 500;
  font-variation-settings: 'opsz' 18;
  letter-spacing: 0.005em;
  margin: 0;
}
p { margin: 0 0 18px; }
.shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }
.narrow { max-width: 880px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.micro {
  font-size: 8px; line-height: 1.4; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--grey); margin: 0 0 10px;
}
.eyebrow {
  font-size: 9px; line-height: 1.4; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--grey); margin: 0 0 12px;
}
.fine { font-size: 12px; color: var(--grey); line-height: 1.65; }

/* rain marks */
.rain { display: inline-flex; align-items: flex-start; line-height: 0; color: var(--grey); flex: none; vertical-align: top; }
.rain i {
  display: block; width: 1px; background: currentColor;
  transform: skewX(-18deg); transform-origin: bottom center;
}
.rain-accent i:nth-child(4) { background: var(--accent); }

/* header */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 72px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Texturina', Georgia, serif; font-size: 21px; font-weight: 500;
  letter-spacing: 0.01em; color: var(--paper); text-decoration: none;
  white-space: nowrap;
}
.wm-dot { width: 5px; height: 5px; background: var(--accent); display: inline-block; }
.main-nav {
  display: flex; align-items: center; gap: 26px;
  font-size: 10px; line-height: 1.4; letter-spacing: 0.16em; text-transform: uppercase;
}
.main-nav a {
  color: var(--grey); text-decoration: none; padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--paper); border-bottom-color: var(--grey); }
.main-nav a[aria-current="page"] { color: var(--paper); border-bottom-color: var(--accent); }
.main-nav a.btn {
  color: var(--ink); background: var(--accent); border: 1px solid var(--accent);
  padding: 10px 16px; letter-spacing: 0.14em;
}
.main-nav a.btn:hover, .main-nav a.btn:focus-visible {
  color: var(--ink); background: var(--paper); border-color: var(--paper);
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 13px 22px;
  background: var(--accent); color: var(--ink);
  border: 1px solid var(--accent); text-decoration: none;
  font-size: 10px; line-height: 1.2; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 500;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn:hover, .btn:focus-visible { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn-sm { min-height: 38px; padding: 9px 14px; }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }

/* home sections */
.home-sec { padding: 0 0 88px; }
.sec-head {
  display: flex; align-items: baseline; gap: 18px;
  border-top: 1px solid var(--line); padding: 16px 0 24px;
}
.sec-num { font-size: 9px; letter-spacing: 0.2em; color: var(--grey); }
.sec-num.accent { color: var(--accent); }
.sec-title { font-size: 32px; line-height: 1.1; }

/* hero */
.hero { padding: 56px 0 92px; }
.hero-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
.hero-copy { grid-column: 1 / 8; grid-row: 1; max-width: 560px; padding-top: 14px; }
.kicker {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--grey); margin: 0 0 18px;
}
.hero-title { font-size: 80px; line-height: 0.98; margin: 0; }
.hero-title-wrap { position: relative; }
.hero-title .l1, .hero-title .l2 { display: block; }
.hero-title .l1 { color: var(--paper); }
.hero-title .l2 { color: var(--accent); }
.hero-rain { position: absolute; right: calc(100% + 18px); top: -14px; left: auto; }
.hero-lead { max-width: 30ch; margin: 28px 0 30px; font-size: 16px; line-height: 1.75; }
.canvas-list { grid-column: 1 / 8; grid-row: 2; list-style: none; margin: 26px 0 0; padding: 0; max-width: 340px; }
.canvas-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--line); padding: 7px 0;
}
.canvas-list li:last-child { border-bottom: 1px solid var(--line); }
.c-k { font-size: 8px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey); }
.c-v { font-size: 13px; color: var(--paper); }
.hero-figure {
  grid-column: 9 / 13; grid-row: 1 / 3; justify-self: end; position: relative;
  width: 400px; max-width: calc(100% + 32px); margin: 0 -24px 0 0;
}
.hero-figure img { width: 400px; max-width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 30%; }
.hero-figure::before {
  content: ""; position: absolute; left: -20px; top: 0; bottom: 0;
  width: 1px; background: var(--line);
}

/* partners */
.partner-frame {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line); background: var(--panel);
}
.partner-cell {
  position: relative; display: block; height: 136px;
  padding: 18px 22px; text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: background-color 160ms ease;
}
.partner-cell:nth-child(odd) { border-right: 1px solid var(--line); }
.partner-cell:nth-child(n+5) { border-bottom: 0; }
.partner-cell:hover { background: #2b2723; }
.partner-cell img {
  position: absolute; top: 18px; right: 22px;
  width: 160px; height: 96px; object-fit: contain;
  filter: grayscale(18%);
}
.p-meta { position: absolute; left: 22px; bottom: 16px; display: flex; align-items: baseline; gap: 12px; }
.p-num { font-size: 9px; letter-spacing: 0.18em; color: var(--grey); }
.p-name { font-size: 8px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--paper); }
.p-rain { position: absolute; right: 18px; bottom: 4px; opacity: 0.55; }

/* quick */
.quick-grid {
  display: grid; grid-template-columns: 410px 410px;
  gap: 32px 80px; max-width: 900px;
}
.quick-item { border-top: 2px solid var(--paper); padding-top: 10px; min-height: 64px; }
.q-k { display: block; font-size: 8px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey); }
.q-v {
  display: block; font-family: 'Texturina', Georgia, serif; font-size: 15px;
  font-variation-settings: 'opsz' 18; color: var(--paper); line-height: 1.35;
}

/* about */
.about-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; align-items: start; }
.about-photo { margin: 0; }
.about-photo img { width: 300px; max-width: 100%; height: auto; }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; position: relative; padding-top: 96px; max-width: 620px; }
.about-cols p { font-size: 15px; line-height: 1.8; margin: 0; }
.about-rain { position: absolute; left: 50%; top: 0; transform: translateX(-50%); }
.about-notes { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 12px; max-width: 620px; }
.about-notes p { font-size: 12px; line-height: 1.6; color: var(--grey); margin: 0 0 4px; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; max-width: 1000px; border-bottom: 1px solid var(--line); }
.tl-row {
  display: grid; grid-template-columns: 96px minmax(0, 760px); gap: 0;
  align-items: center; min-height: 56px;
  border-top: 1px solid var(--line);
}
.tl-row.seg { border-top-width: 2px; margin-right: -40px; border-top-color: var(--grey); }
.tl-year {
  font-family: 'Texturina', Georgia, serif; font-size: 28px; line-height: 1;
  font-variation-settings: 'opsz' 18; color: var(--paper);
}
.tl-year.accent { color: var(--accent); }
.tl-what { font-size: 14px; line-height: 1.5; color: var(--paper); }
.timeline-long .tl-row { min-height: 60px; }

/* gallery */
.gallery { width: 400px; max-width: 100%; }
.gal-item {
  position: relative; margin: 0 0 28px; padding: 0;
  border: 1px solid var(--line); width: max-content; max-width: 100%;
}
.gal-item:last-child { margin-bottom: 0; }
.gal-item::after {
  content: ""; position: absolute; top: -6px; right: -6px;
  width: 5px; height: 5px; background: var(--grey);
}
.gal-item img { width: auto; height: auto; }
.g1 { margin-left: 0; }
.g2 { margin-left: 60px; }
.g3 { margin-left: 20px; }
.g4 { margin-left: 80px; }
.g5 { margin-left: 40px; }
.g1 img { width: 300px; height: 300px; }
.g2 img { width: 280px; height: 280px; object-fit: cover; object-position: 50% 0%; }
.g3 img { width: 300px; height: 300px; }
.g4 img { width: 300px; height: 300px; }
.g5 img { width: 300px; height: 333px; }

/* social */
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.social-col { display: flex; flex-direction: column; }
.social-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--line); padding: 13px 0;
  text-decoration: none; color: var(--paper);
}
.social-col .social-row:last-child { border-bottom: 1px solid var(--line); }
.social-row:hover .s-handle { color: var(--accent); }
.s-plat { font-size: 8px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey); }
.s-handle { font-size: 12px; color: var(--paper); }
.social-note { font-size: 11px; line-height: 1.6; color: var(--grey); margin: 18px 0 0; max-width: 70ch; }

/* footer */
.site-footer { border-top: 2px solid var(--paper); padding: 26px 0 40px; }
.footer-rule { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.footer-name {
  font-family: 'Texturina', Georgia, serif; font-size: 20px; line-height: 1;
  color: var(--paper); text-decoration: none;
}
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1fr auto;
  gap: 32px; align-items: start;
}
.footer-desc { font-size: 13px; color: var(--grey); margin: 0; }
.language-nav { font-size: 11px; letter-spacing: 0.06em; color: var(--grey); }
.language-nav a { color: var(--grey); text-decoration: none; }
.language-nav a:hover { color: var(--paper); }
.language-nav a[aria-current="page"] { color: var(--paper); }
.lang-sep { color: var(--line); margin: 0 5px; }
.footer-legal { font-size: 11px; color: var(--grey); margin: 0; text-align: right; }
.footer-notes { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 12px; }
.footer-notes p { font-size: 11px; line-height: 1.6; color: var(--grey); margin: 0 0 3px; }

/* subpage heads */
.page-head { padding: 64px 0 46px; border-bottom: 1px solid var(--line); }
.page-title { font-size: 56px; line-height: 1.02; margin: 0; }
.page-title-wrap { position: relative; margin: 0 0 20px; }
.page-rain { position: absolute; right: calc(100% + 18px); top: -8px; left: auto; }
.page-lead { max-width: 62ch; color: var(--grey); font-size: 17px; line-height: 1.7; margin: 0; }

/* article */
.article-grid { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 64px; padding: 54px 0 100px; }
.facts { border-top: 2px solid var(--paper); padding-top: 12px; }
.facts dl { margin: 0; }
.fact { border-bottom: 1px solid var(--line); padding: 9px 0; }
.fact dt { font-size: 8px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey); }
.fact dd { margin: 2px 0 0; font-size: 13px; color: var(--paper); }
.prose h2 { font-size: 28px; line-height: 1.2; margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { max-width: 64ch; margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }

.narrow { padding: 54px 0 100px; }
.narrow p { max-width: 66ch; }
.intro { font-size: 18px; line-height: 1.75; max-width: 62ch; margin-bottom: 42px; }
.sub-title { font-size: 28px; line-height: 1.2; margin: 48px 0 16px; }
.studio-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px;
}
.studio-list li { border-top: 1px solid var(--line); padding: 9px 0; font-size: 13px; }
.timeline-long { max-width: 100%; }

/* film table */
.film-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.film-table th {
  text-align: left; font-size: 8px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--grey); font-weight: 400; border-bottom: 1px solid var(--paper);
  padding: 0 14px 10px 0;
}
.film-table td { border-bottom: 1px solid var(--line); padding: 12px 14px 12px 0; vertical-align: top; line-height: 1.5; }
.f-year { font-family: 'Texturina', Georgia, serif; font-size: 15px; white-space: nowrap; }
.f-title { color: var(--paper); }
.f-studio, .f-note { color: var(--grey); }
.film-notes { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 12px; }

/* faq */
.faq-wrap { max-width: 840px; }
.qa { border-top: 1px solid var(--line); padding: 16px 0; }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary {
  cursor: pointer; list-style: none; font-family: 'Texturina', Georgia, serif;
  font-size: 20px; line-height: 1.35; color: var(--paper); padding-right: 28px;
  position: relative;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before, .qa summary::after {
  content: ""; position: absolute; right: 2px; top: 13px;
  width: 11px; height: 1px; background: var(--grey);
}
.qa summary::after { transform: rotate(90deg); }
.qa[open] summary::after { opacity: 0; }
.qa summary:hover { color: var(--accent); }
.qa-a p { color: var(--grey); font-size: 15px; line-height: 1.75; max-width: 68ch; margin: 10px 0 0; }

/* 404 */
.err { padding: 110px 0 130px; }
.err-title { font-size: 64px; line-height: 1.02; margin: 0 0 22px; max-width: 16ch; }
.err-link { margin: 30px 0 0; }

/* responsive */
@media (max-width: 1300px) {
  .hero-rain { position: static; margin: 16px 0 0; }
  .page-rain { display: none; }
}
@media (max-width: 1024px) {
  .shell { width: min(960px, calc(100% - 40px)); }
  .header-inner { flex-wrap: wrap; }
  .hero-grid { grid-template-columns: repeat(12, 1fr); }
  .hero-copy { grid-column: 1 / 8; grid-row: 1; max-width: none; }
  .canvas-list { grid-column: 1 / 8; grid-row: 2; }
  .hero-title { font-size: 64px; }
  .hero-figure { grid-column: 9 / 13; grid-row: 1 / 3; width: 360px; max-width: none; margin: 0 -24px 0 0; justify-self: end; }
  .hero-figure img { width: 360px; }
  .hero-figure::before { display: none; }
  .partner-frame { grid-template-columns: 1fr; }
  .partner-cell { height: 120px; border-right: 0; }
  .partner-cell:nth-child(odd) { border-right: 0; }
  .partner-cell:nth-child(n+5) { border-bottom: 1px solid var(--line); }
  .partner-cell:last-child { border-bottom: 0; }
  .quick-grid { grid-template-columns: 1fr; gap: 24px; max-width: 560px; }
  .about-grid { grid-template-columns: 300px minmax(0, 1fr); gap: 40px; }
  .about-cols { grid-template-columns: 1fr 1fr; }
  .timeline .tl-row { grid-template-columns: 80px minmax(0, 1fr); }
  .timeline .tl-year { font-size: 24px; }
  .g2 { margin-left: 30px; }
  .g3 { margin-left: 10px; }
  .g4 { margin-left: 40px; }
  .g5 { margin-left: 20px; }
  .article-grid { grid-template-columns: 1fr; gap: 40px; }
  .studio-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 14px 0; }
  .main-nav { flex-wrap: wrap; gap: 10px 14px; font-size: 9px; letter-spacing: 0.1em; width: 100%; }
  .main-nav a.btn { padding: 8px 12px; min-height: 32px; }
  .hero { padding: 30px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { grid-column: 1 / -1; grid-row: auto; max-width: none; }
  .canvas-list { grid-column: 1 / -1; grid-row: auto; }
  .hero-title { font-size: 52px; }
  .hero-lead { max-width: none; }
  .hero-figure { grid-column: 1 / -1; grid-row: auto; width: 100%; max-width: 400px; margin: 40px 0 0; justify-self: start; }
  .hero-figure img { width: 100%; }
  .home-sec { padding-bottom: 64px; }
  .sec-title { font-size: 26px; }
  .partner-cell { height: 112px; padding: 14px 16px; }
  .partner-cell img { width: 128px; height: 77px; top: 12px; right: 16px; }
  .p-meta { left: 16px; bottom: 12px; }
  .p-rain { right: 12px; bottom: 3px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-cols { display: block; padding-top: 0; }
  .about-rain { display: none; }
  .about-cols p { margin-bottom: 16px; }
  .about-photo img { width: 100%; max-width: 320px; }
  .timeline .tl-row { grid-template-columns: 62px minmax(0, 1fr); min-height: 0; padding: 10px 0; }
  .timeline .tl-year { font-size: 20px; }
  .tl-what { font-size: 13px; }
  .tl-row.seg { margin-right: 0; }
  .gallery { width: 100%; max-width: 400px; }
  .gal-item { margin-left: 0 !important; }
  .g1 img, .g3 img, .g4 img, .g5 img { width: 100%; height: auto; max-width: 300px; }
  .g2 img { width: 100%; height: auto; max-width: 280px; }
  .social-grid { grid-template-columns: 1fr; gap: 0; }
  .social-col:first-child .social-row:last-child { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
  .footer-legal { text-align: left; }
  .page-head { padding: 40px 0 32px; }
  .page-title { font-size: 40px; }
  .page-rain { display: none; }
  .page-lead { font-size: 15px; }
  .article-grid, .narrow { padding: 36px 0 72px; }
  .prose h2 { font-size: 24px; margin-top: 36px; }
  .sub-title { font-size: 24px; }
  .studio-list { grid-template-columns: 1fr; }
  .film-table { font-size: 12px; }
  .film-table th:nth-child(3), .film-table td:nth-child(3) { display: none; }
  .film-table th, .film-table td { padding-right: 8px; }
  .err { padding: 70px 0 90px; }
  .err-title { font-size: 42px; }
}

/* partner logo plate: guarantee legibility of supplied marks on any ground */
a img[src*="/assets/partners/"] {
  background: #f4efe6;
  object-fit: contain;
  padding: 6px;
  box-sizing: border-box;
}
