/* ellahughescom.com · Composing Room
   Cream stock, ink, one burgundy mark. Type case geometry, no decoration. */

:root {
  --cream: #f1ece1;
  --ink: #17181a;
  --grey: #565853;
  --burgundy: #6b2f3a;
  --rule: #dad4c6;
  --panel: #f8f4ea;
  --serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --sans: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
  --bleed: calc((100vw - min(1200px, 100vw - 48px)) / 2);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { color: var(--burgundy); }

::selection { background: var(--ink); color: var(--cream); }

.shell {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 16px;
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------------------------------------------------------------- header -- */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--cream);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 27px;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 7px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--burgundy); }
.main-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--burgundy);
}
.main-nav a.btn {
  color: var(--cream);
  background: var(--burgundy);
  border: 1px solid var(--burgundy);
  padding: 12px 18px;
  letter-spacing: 0.12em;
  transition: background-color 120ms linear, border-color 120ms linear;
}
.main-nav a.btn:hover,
.main-nav a.btn:focus-visible {
  color: var(--cream);
  background: var(--ink);
  border-color: var(--ink);
}
.main-nav a.btn[aria-current="page"] { border-bottom-color: var(--ink); }

/* ------------------------------------------------------------------ hero -- */
.hero { padding: 28px 0 58px; }
.hero-rule {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  border-bottom: 1px solid var(--burgundy);
  padding-bottom: 10px;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
}
.hero-rule .r { text-align: right; }
.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 26px;
  align-items: start;
  margin-top: 32px;
}
.hero-text { grid-column: 1 / span 7; padding-top: 6px; }
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 72px;
  line-height: 0.98;
  letter-spacing: 0.005em;
  margin: 0 0 28px;
  text-transform: uppercase;
}
.hero-title span { display: block; }
.mark { color: var(--burgundy); }
.hero-lead {
  columns: 2;
  column-gap: 26px;
  max-width: 520px;
  margin: 0 0 26px;
  font-size: 16.5px;
  line-height: 1.62;
}
.hero-lead p { margin: 0 0 1em; break-inside: avoid; }
.hero-photo {
  grid-column: 8 / -1;
  margin: -32px 0 0;
}
.hero-photo img {
  display: block;
  max-width: none;
  width: calc(100% + var(--bleed));
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 22%;
}

/* --------------------------------------------------------------- buttons -- */
.btn {
  display: inline-block;
  background: var(--burgundy);
  color: var(--cream);
  border: 1px solid var(--burgundy);
  padding: 13px 22px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 120ms linear, border-color 120ms linear;
}
.btn:hover, .btn:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

/* --------------------------------------------------------------- sections -- */
.section { padding: 48px 0; }
.section-tight { padding: 34px 0 44px; }
.sec-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 8px;
}
.sec-no {
  flex: 0 0 auto;
  width: 27px;
  height: 18px;
  background: var(--ink);
  color: var(--cream);
  font-size: 9px;
  line-height: 18px;
  letter-spacing: 0.08em;
  text-align: center;
  position: relative;
  top: -2px;
}
.sec-no.first { background: var(--burgundy); }
h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 31px;
  line-height: 1.12;
  letter-spacing: 0.005em;
  margin: 0;
}
.sec-sub {
  margin: 8px 0 0;
  color: var(--grey);
  font-size: 13px;
  line-height: 1.55;
  max-width: 62ch;
}

/* ------------------------------------------------------------ type case -- */
.case {
  margin-top: 22px;
  border: 1px solid var(--rule);
  background: var(--rule);
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.case-row { display: grid; gap: 1px; background: var(--rule); }
.case-row.r1 { grid-template-columns: 1.4fr 1fr 1.2fr; }
.case-row.r2 { grid-template-columns: 0.8fr 1.1fr 0.5fr; }
.case-cell {
  position: relative;
  height: 178px;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px 26px;
  text-decoration: none;
  color: var(--ink);
}
.case-cell img {
  max-width: min(250px, 100%);
  max-height: 128px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.case-name {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  text-align: center;
  font-size: 9px;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
}
.case-no {
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  background: var(--ink);
  color: var(--cream);
  font-size: 9px;
  line-height: 18px;
  text-align: center;
}
.case-no.first { background: var(--burgundy); }

/* ----------------------------------------------------------------- facts -- */
.facts {
  display: grid;
  grid-template-columns: repeat(2, 360px);
  gap: 40px;
  max-width: 760px;
  margin-top: 22px;
}
.fact {
  height: 96px;
  border-bottom: 1px solid var(--rule);
  padding-top: 10px;
}
.fact .k {
  display: block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
}
.fact .v {
  display: block;
  margin-top: 5px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

/* ----------------------------------------------------------------- about -- */
.about-cols {
  columns: 3;
  column-gap: 40px;
  max-width: 1000px;
  margin-top: 18px;
}
.about-cols p {
  margin: 0 0 1em;
  font-size: 16.5px;
  line-height: 1.65;
  break-inside: avoid;
}
.about-figure {
  margin: 34px 0 0;
  max-width: 1000px;
}
.about-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 16%;
}
.about-rule {
  position: relative;
  max-width: 1000px;
  border-top: 1px solid var(--ink);
  margin-top: 20px;
  padding-top: 16px;
}
.about-rule .stamp {
  position: absolute;
  top: -9px;
  left: 0;
  width: 18px;
  height: 18px;
  background: var(--ink);
  color: var(--cream);
  font-size: 10px;
  line-height: 18px;
  text-align: center;
}
.credits {
  max-width: 1000px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--grey);
}
.credits p { margin: 0 0 4px; }
.credits a { color: var(--grey); text-decoration: underline; }
.credits .url { word-break: break-all; }
.credits .note { margin-top: 10px; }

/* -------------------------------------------------------------- timeline -- */
.timeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
  max-width: 1000px;
  margin-top: 24px;
}
.track {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 116px;
}
.track::before {
  content: "";
  position: absolute;
  left: 96px;
  top: 7px;
  bottom: 7px;
  width: 1px;
  background: var(--rule);
}
.track li {
  position: relative;
  min-height: 76px;
  padding-right: 8px;
}
.track li::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--ink);
}
.track .when {
  position: absolute;
  left: -112px;
  top: 0;
  width: 80px;
  text-align: right;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.25;
  color: var(--ink);
}
.track .what {
  display: block;
  font-size: 15px;
  line-height: 1.45;
  padding-top: 0;
}
.track li.hl .when { color: var(--burgundy); }
.track li:last-child { min-height: 0; }

/* --------------------------------------------------------------- gallery -- */
.gallery {
  display: grid;
  grid-template-columns: 250px 240px 200px 200px 160px;
  gap: 24px;
  align-items: start;
  margin-top: 26px;
  max-width: 1146px;
}
.gallery figure { margin: 0; }
.gallery img { display: block; width: 100%; height: auto; object-fit: cover; }
.g1 { margin-top: 0; }
.g2 { margin-top: 60px; }
.g3 { margin-top: 20px; }
.g4 { margin-top: 80px; }
.g5 { margin-top: 40px; }
.g1 img { aspect-ratio: 250 / 380; }
.g2 img { aspect-ratio: 1 / 1; object-position: 50% 30%; }
.g3 img { aspect-ratio: 2 / 3; }
.g4 img { aspect-ratio: 1 / 1; }
.g5 img { aspect-ratio: 1 / 1; }

/* ---------------------------------------------------------------- social -- */
.social {
  width: 420px;
  max-width: 100%;
  margin: 22px 0 0 auto;
  border-top: 1px solid var(--rule);
}
.social a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
}
.social .p {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
}
.social .h { font-size: 14px; font-weight: 500; line-height: 1.4; }
.social a:hover .h, .social a:focus-visible .h { color: var(--burgundy); }

/* ---------------------------------------------------------------- footer -- */
.site-footer {
  border-top: 1px solid var(--ink);
  margin-top: 58px;
  padding: 16px 0 28px;
}
.mini-case {
  display: flex;
  gap: 1px;
  width: 180px;
  height: 12px;
  margin-bottom: 26px;
}
.mini-case span { background: var(--rule); }
.mini-case span:nth-child(1) { flex: 42; }
.mini-case span:nth-child(2) { flex: 30; }
.mini-case span:nth-child(3) { flex: 36; }
.mini-case span:nth-child(4) { flex: 24; }
.mini-case span:nth-child(5) { flex: 33; }
.mini-case span:nth-child(6) { flex: 15; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  gap: 28px;
  align-items: start;
}
.footer-brand .name {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.2;
}
.footer-brand .line {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--grey);
}
.language-nav {
  font-size: 12px;
  line-height: 1.7;
  color: var(--grey);
}
.language-nav a { color: var(--grey); text-decoration: none; }
.language-nav a:hover { color: var(--burgundy); }
.language-nav .sep { color: var(--rule); padding: 0 4px; }
.footer-legal {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  text-align: right;
  color: var(--grey);
}
.footer-notes {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  font-size: 11px;
  line-height: 1.6;
  color: var(--grey);
}
.footer-notes p { margin: 0; }
.footer-notes a { color: var(--grey); text-decoration: underline; }

/* ------------------------------------------------------------- inner pages -- */
.page-head {
  padding: 46px 0 30px;
  border-bottom: 1px solid var(--rule);
}
.eyebrow {
  margin: 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--burgundy);
}
.page-head h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 58px;
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin: 14px 0 18px;
}
.page-lead {
  margin: 0;
  max-width: 40ch;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.38;
  color: var(--grey);
}
.article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 70px;
  padding: 40px 0 12px;
}
.article.solo { grid-template-columns: minmax(0, 780px); }
.article.wide { grid-template-columns: minmax(0, 1000px); }
.prose h2 {
  font-size: 28px;
  margin: 34px 0 10px;
}
.prose h2:first-child { margin-top: 0; }
.prose p {
  margin: 0 0 1.05em;
  max-width: 58ch;
}
.prose p.lead-para { font-size: 18px; line-height: 1.65; }
.aside {
  border-top: 1px solid var(--ink);
  padding-top: 12px;
  align-self: start;
}
.aside h2 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
}
.aside dl { margin: 0; }
.aside .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--rule);
  padding: 9px 0;
}
.aside dt {
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
}
.aside dd {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  text-align: right;
}

/* ------------------------------------------------------------ data blocks -- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin: 0 0 26px;
}
.stat { background: var(--panel); padding: 18px 18px 16px; }
.stat b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 36px;
  line-height: 1;
}
.stat span {
  display: block;
  margin-top: 9px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
}
.table-wrap { overflow-x: auto; margin: 18px 0 10px; }
.table-wrap table.data { margin: 0 0 10px; }
table.data {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 10px;
  font-size: 13.5px;
  line-height: 1.5;
}
table.data th {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
  text-align: left;
  border-bottom: 1px solid var(--ink);
  padding: 8px 10px 8px 0;
}
table.data td {
  border-bottom: 1px solid var(--rule);
  padding: 9px 10px 9px 0;
  vertical-align: top;
}
table.data .yr {
  width: 64px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.3;
}
table.data .muted { color: var(--grey); }
.table-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--grey);
  max-width: 62ch;
}
.studio-list {
  columns: 3;
  column-gap: 32px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.9;
}
.studio-list li { break-inside: avoid; }

/* -------------------------------------------------------------------- faq -- */
.faq-list { max-width: 840px; }
.faq-item {
  border-top: 1px solid var(--rule);
  padding: 18px 0 16px;
}
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-item h2 {
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 7px;
}
.faq-item p { margin: 0; max-width: 72ch; }

/* -------------------------------------------------------------------- 404 -- */
.notfound {
  min-height: 62vh;
  display: flex;
  align-items: center;
  padding: 60px 0;
}
.notfound .code {
  font-family: var(--serif);
  font-size: 120px;
  line-height: 0.9;
  margin: 0 0 18px;
}
.notfound h1 { font-size: 34px; margin: 0 0 12px; font-family: var(--serif); font-weight: 400; }
.notfound p { margin: 0 0 26px; max-width: 46ch; }
.notfound a.back { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* --------------------------------------------------------------- responsive -- */
@media (max-width: 1240px) {
  :root { --bleed: 24px; }
}

@media (max-width: 1024px) {
  .shell { width: calc(100% - 40px); }
  .hero-title { font-size: 60px; }
  .hero-text { grid-column: 1 / span 6; }
  .hero-photo { grid-column: 7 / -1; margin-right: 0; }
  .hero-photo img { width: 100%; }
  .hero-lead { columns: 1; }
  .case-row.r1, .case-row.r2 { grid-template-columns: repeat(3, 1fr); }
  .case-cell { height: 150px; }
  .case-cell img { max-height: 96px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
  .gallery {
    grid-template-columns: 1.25fr 1.2fr 1fr 1fr 0.8fr;
    gap: 18px;
  }
  .g2 { margin-top: 44px; }
  .g4 { margin-top: 58px; }
  .article { grid-template-columns: minmax(0, 1fr) 260px; gap: 44px; }
  .timeline-grid { gap: 0 36px; }
}

@media (max-width: 820px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 12px 0 8px;
  }
  .main-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 4px 18px;
    justify-content: flex-start;
  }
  .main-nav a.btn { margin-left: auto; }
  .article { grid-template-columns: 1fr; gap: 30px; }
  .aside { max-width: 420px; }
  .page-head h1 { font-size: 46px; }
  .page-lead { font-size: 20px; }
  .timeline-grid { grid-template-columns: 1fr; gap: 0; }
  .track { margin-bottom: 8px; }
  .track li:last-child { min-height: 68px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { padding: 22px 0 40px; }
  .hero-rule { font-size: 9px; letter-spacing: 0.14em; }
  .hero-rule .r { display: none; }
  .hero-grid { grid-template-columns: 1fr; margin-top: 24px; }
  .hero-text { grid-column: 1 / -1; }
  .hero-title { font-size: 46px; margin-bottom: 18px; }
  .hero-lead { font-size: 16px; }
  .hero-photo {
    grid-column: 1 / -1;
    margin: 26px 0 0;
  }
  .section { padding: 36px 0; }
  h2 { font-size: 27px; }
  .case-row.r1, .case-row.r2 { grid-template-columns: 1fr; }
  .case-cell { height: 140px; }
  .case-cell img { max-height: 92px; }
  .facts { grid-template-columns: 1fr; gap: 26px; }
  .fact { height: 84px; }
  .about-cols { columns: 1; }
  .about-figure { margin-top: 26px; }
  .timeline-grid { gap: 0; }
  .track { padding-left: 96px; }
  .track::before { left: 78px; }
  .track .when { left: -94px; width: 64px; font-size: 15px; }
  .track li::before { left: -21px; }
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .g1, .g2, .g3, .g4, .g5 { margin-top: 0; }
  .social { width: 100%; margin-top: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 14px; }
  .footer-legal { text-align: left; }
  .page-head { padding: 34px 0 24px; }
  .page-head h1 { font-size: 38px; margin: 10px 0 12px; }
  .page-lead { font-size: 18px; }
  .article { padding: 28px 0 8px; }
  .prose h2 { font-size: 24px; }
  .stats { grid-template-columns: 1fr; }
  .studio-list { columns: 2; }
  table.data { font-size: 12.5px; }
  table.data .yr { width: 52px; font-size: 14px; }
  .notfound .code { font-size: 84px; }
}

@media (max-width: 420px) {
  .main-nav { gap: 2px 12px; }
  .main-nav a { font-size: 10px; letter-spacing: 0.1em; }
  .main-nav a.btn { padding: 10px 12px; }
  .hero-title { font-size: 42px; }
  .studio-list { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* 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;
}
