/* ellieeilishweb.com: tally sheet theme */

:root {
  --paper: #f4efe3;
  --ink: #1b1815;
  --gray: #5a5148;
  --rust: #8a4b2a;
  --rule: #ded5c4;
  --panel: #faf6ec;
  --serif: 'Hedvig Letters Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Atkinson Hyperlegible Next', 'Helvetica Neue', Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.72;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 0 auto; }

img { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; }

.wrap {
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 50;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.skip:focus { left: 12px; top: 12px; }

.tally { display: block; color: var(--ink); flex: none; }
.tally .slash-accent { stroke: var(--rust); }

/* header */

.topbar {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: relative;
  z-index: 10;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
}
.brand small {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gray);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.3;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 7px 0;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--rust);
  border-bottom-color: var(--rust);
}
.main-nav a.active {
  color: var(--rust);
  border-bottom-color: var(--rust);
}

.main-nav a.btn {
  color: var(--paper);
  background: var(--rust);
  border: 1px solid var(--rust);
  padding: 10px 15px;
}
.main-nav a.btn:hover,
.main-nav a.btn:focus-visible {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rust);
  color: var(--paper);
  border: 1px solid var(--rust);
  padding: 14px 22px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.2;
  text-decoration: none;
}
.btn:hover,
.btn:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* hero */

.hero { overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.hero-copy {
  grid-column: 1 / span 5;
  padding: 0 0 40px;
}

.kicker {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 84px;
  line-height: .98;
  letter-spacing: .005em;
}
.hero h1 span { display: block; }

.hero-tally { margin: 18px 0 26px; }

.hero .lead {
  font-size: 17px;
  line-height: 1.62;
  max-width: 28ch;
}

.hl { color: var(--rust); }

.hero .cta { margin-top: 30px; }

.hero-photo {
  grid-column: 6 / -1;
  justify-self: end;
  position: relative;
  width: 660px;
  margin-right: calc((min(1180px, 100vw - 56px) - 100vw) / 2);
}
.hero-photo img {
  width: 660px;
  height: 880px;
  object-fit: cover;
  object-position: 50% 22%;
}

/* shared section head */

.section { padding: 76px 0 0; }

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 26px;
}

.sec-no {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--rust);
  min-width: 20px;
}

.sec-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: .005em;
}

.sec-note {
  margin-left: auto;
  font-size: 11px;
  color: var(--gray);
  max-width: 46ch;
  text-align: right;
}

/* partners */

.partners { padding-top: 96px; }

.partner-grid {
  display: grid;
  grid-template-columns: repeat(6, 178px);
  gap: 0 14px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 12px;
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  padding: 0 2px;
}
.partner-card .tally { margin-bottom: 14px; }
.partner-card img {
  width: 150px;
  height: 90px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.02);
  opacity: .88;
}
.partner-card:hover img { filter: none; opacity: 1; }

.partner-name {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-align: center;
  margin-top: 10px;
  color: var(--ink);
}

.partner-idx {
  align-self: flex-end;
  font-size: 8px;
  letter-spacing: .1em;
  color: var(--gray);
  margin-top: 7px;
}

/* quick profile */

.quick { padding-top: 72px; }

.qp {
  width: 760px;
  max-width: 100%;
  border-top: 1px solid var(--ink);
}

.qp-row {
  display: grid;
  grid-template-columns: 180px 66px minmax(0, 1fr);
  align-items: center;
  height: 62px;
  position: relative;
}
.qp-row::after {
  content: '';
  position: absolute;
  left: 180px;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--rule);
}
.qp-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gray);
}
.qp-value {
  font-size: 14px;
  text-align: right;
  letter-spacing: .01em;
}

/* about */

.about { padding-top: 84px; }

.about-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.about-photo img {
  width: 340px;
  height: 511px;
  object-fit: cover;
  object-position: 50% 26%;
}

.about-body > .tally { margin-bottom: 22px; }

.about-cols {
  column-count: 2;
  column-gap: 46px;
}
.about-cols p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 1em;
  break-inside: avoid;
}
.about-cols p:last-child { margin-bottom: 0; }

.about-notes {
  margin-top: 26px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  line-height: 1.6;
  color: var(--gray);
  max-width: 66ch;
}
.about-notes p + p { margin-top: 2px; }

/* career table */

.career-band {
  margin-top: 90px;
  background: var(--panel);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 74px 0 80px;
}

.career-intro {
  font-size: 13px;
  color: var(--gray);
  margin: -8px 0 24px 38px;
  max-width: 54ch;
}

.count-table {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 64px;
}

.career-row {
  display: grid;
  grid-template-columns: 56px 40px minmax(0, 1fr);
  align-items: start;
  padding: 14px 0 15px;
  border-bottom: 1px solid var(--rule);
}
.career-year {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.4;
  padding-top: 1px;
}
.career-year.key { color: var(--rust); }
.career-row .tally { padding-top: 7px; }
.career-text {
  font-size: 14px;
  line-height: 1.55;
  max-width: 380px;
}

/* gallery */

.gallery-row {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

.shot {
  position: relative;
  padding-top: 14px;
  flex: none;
}
.shot::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ink);
}
.shot::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  width: 1px;
  height: 7px;
  background: var(--ink);
}
.shot img {
  width: 100%;
  object-fit: cover;
  object-position: 50% 26%;
}
.shot.p { width: 200px; }
.shot.p img { height: 300px; }
.shot.w { width: 300px; }
.shot.w img { height: 200px; object-position: 50% 40%; }

/* social */

.social { padding-bottom: 92px; }

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 260px);
  justify-content: space-between;
  gap: 0;
}

.social-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 56px;
  border: 1px solid var(--ink);
  padding: 0 14px;
  text-decoration: none;
  color: var(--ink);
}
.social-card b {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--gray);
}
.social-card span {
  font-size: 12px;
  letter-spacing: .01em;
}
.social-card:hover,
.social-card:focus-visible {
  background: var(--ink);
  color: var(--paper);
}
.social-card:hover b,
.social-card:focus-visible b { color: var(--paper); }

/* footer */

.site-footer {
  border-top: 1px solid var(--ink);
  padding: 26px 0 40px;
}

.foot-tally { margin-bottom: 18px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  gap: 32px;
  align-items: start;
}

.foot-brand strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: .01em;
}
.foot-brand p {
  font-size: 12px;
  color: var(--gray);
  margin-top: 3px;
}

.foot-langs {
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--gray);
  line-height: 1.9;
}
.foot-langs a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.foot-langs a:hover,
.foot-langs a:focus-visible {
  color: var(--rust);
  border-bottom-color: var(--rust);
}
.foot-langs .cur { color: var(--gray); }
.foot-langs .sep { color: var(--rule); padding: 0 4px; }

.foot-copy {
  font-size: 11px;
  color: var(--gray);
  text-align: right;
  white-space: nowrap;
}

.foot-fine {
  margin-top: 22px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--gray);
}
.foot-fine p + p { margin-top: 1px; }

/* subpages */

.page-head {
  padding: 62px 0 44px;
  border-bottom: 1px solid var(--rule);
}
.page-head h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: .005em;
  max-width: 18ch;
  margin: 14px 0 20px;
}
.page-head .lead {
  max-width: 60ch;
  font-size: 16.5px;
  line-height: 1.7;
}
.page-head .tally { margin-top: 24px; }

.page-body { padding: 54px 0 84px; }

.bio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 64px;
  align-items: start;
}

.bio-sec {
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}
.bio-sec:first-child { border-top: 0; padding-top: 0; }
.bio-sec h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.bio-sec p {
  max-width: 64ch;
  margin-bottom: .9em;
}
.bio-sec p:last-child { margin-bottom: 0; }

.bio-aside .bio-photo img {
  width: 300px;
  height: 400px;
  object-fit: cover;
  object-position: 50% 30%;
}
.bio-aside .bio-photo { margin-bottom: 26px; }

.facts {
  border-top: 1px solid var(--ink);
}
.facts h2 {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gray);
  padding: 10px 0 8px;
}
.fact-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
}
.fact-row dt {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray);
  line-height: 1.9;
}
.fact-row dd { font-size: 12.5px; line-height: 1.5; }

.timeline { border-top: 1px solid var(--ink); margin-top: 18px; }
.tl-row {
  display: grid;
  grid-template-columns: 150px 40px minmax(0, 1fr);
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.tl-year {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.4;
}
.tl-row .tally { padding-top: 7px; }
.tl-text { font-size: 14.5px; line-height: 1.6; max-width: 66ch; }

.block { padding-top: 54px; }
.page-body > .wrap > .block:first-child { padding-top: 0; }
.block h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.block .cols-2 {
  column-count: 2;
  column-gap: 54px;
}
.block .cols-2 p { margin-bottom: 1em; break-inside: avoid; }
.block p { max-width: 66ch; }

.studio-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 32px;
  list-style: none;
  margin-top: 18px;
  border-top: 1px solid var(--ink);
}
.studio-list li {
  font-size: 13px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
}

.award-list { margin-top: 16px; border-top: 1px solid var(--ink); }
.award-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13.5px;
}
.award-row b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 15px;
}
.award-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--gray);
}

.table-wrap { margin-top: 20px; }
.film-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.film-table th {
  text-align: left;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray);
  padding: 9px 14px 9px 0;
  border-bottom: 1px solid var(--ink);
}
.film-table td {
  padding: 13px 14px 13px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  line-height: 1.5;
}
.film-table td:first-child {
  width: 64px;
  font-family: var(--serif);
  font-size: 15px;
}
.film-table td:nth-child(3) {
  width: 165px;
  font-size: 12.5px;
  color: var(--gray);
}
.film-table td:last-child {
  width: 190px;
  font-size: 12px;
  color: var(--gray);
}

.count-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.count-strip span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gray);
}
.count-strip b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 15px;
}

.qa-list { border-top: 1px solid var(--ink); }
.qa {
  padding: 24px 0 26px;
  border-bottom: 1px solid var(--rule);
}
.qa .qn {
  display: block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--rust);
  margin-bottom: 7px;
}
.qa h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 7px;
  max-width: 46ch;
}
.qa p { max-width: 68ch; font-size: 15.5px; }

/* 404 */

.error-main {
  min-height: 68vh;
  display: flex;
  align-items: center;
  padding: 70px 0;
}
.error-code {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 128px;
  line-height: .9;
  letter-spacing: .01em;
}
.error-main p {
  max-width: 44ch;
  margin: 20px 0 28px;
  color: var(--gray);
}

/* responsive */

@media (max-width: 1180px) {
  .hero-photo { margin-right: 0; }
}

@media (max-width: 1024px) {
  .wrap { width: calc(100% - 40px); }
  .hero-photo { width: 560px; margin-right: 0; }
  .hero-photo img { width: 560px; height: 747px; }
  .hero h1 { font-size: 66px; }
  .hero-tally svg { width: 38px; height: 21px; }
  .about-grid { grid-template-columns: 280px minmax(0, 1fr); gap: 36px; }
  .about-photo img { width: 280px; height: 420px; }
  .partner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 18px; }
  .partner-card img { width: 100%; max-width: 150px; }
  .bio-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; }
  .bio-aside .bio-photo img { width: 260px; height: 347px; }
  .page-head h1 { font-size: 56px; }
  .social-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
}

@media (max-width: 960px) {
  .topbar-inner { flex-wrap: wrap; gap: 4px 24px; padding: 14px 0 0; }
  .main-nav {
    order: 3;
    width: 100%;
    gap: 18px;
    padding: 8px 0 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a.btn { padding: 8px 12px; }

  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-copy { grid-column: 1; }
  .hero-photo { grid-column: 2; justify-self: stretch; width: 100%; margin-right: 0; }
  .hero-photo img { width: 100%; height: auto; aspect-ratio: 3 / 4; }
  .hero h1 { font-size: 58px; }
  .hero .lead { font-size: 16px; }
  .social-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; line-height: 1.68; }
  .wrap { width: calc(100% - 32px); }
  .brand { font-size: 20px; }
  .main-nav { font-size: 9.5px; letter-spacing: .08em; gap: 14px; }

  .hero-grid { display: block; }
  .hero-copy { padding: 38px 0 0; }
  .hero h1 { font-size: 52px; }
  .hero .lead { max-width: 100%; font-size: 16.5px; }
  .hero-photo { margin-top: 30px; }
  .hero-photo img { height: auto; width: 100%; aspect-ratio: 3 / 4; }
  .hero .cta { margin-top: 24px; }

  .partners { padding-top: 66px; }
  .sec-head { gap: 12px; margin-bottom: 20px; }
  .sec-head h2 { font-size: 27px; }
  .sec-note { display: none; }
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
  .partner-card .tally { margin-bottom: 10px; }
  .partner-card img { height: 84px; }

  .quick { padding-top: 58px; }
  .qp-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "label value" "tally tally";
    column-gap: 12px;
    height: auto;
    padding: 13px 0 15px;
  }
  .qp-row::after { left: 0; }
  .qp-label { grid-area: label; }
  .qp-value { grid-area: value; }
  .qp-row .tally { grid-area: tally; margin-top: 8px; }

  .about { padding-top: 62px; }
  .about-grid { display: block; }
  .about-photo { margin-bottom: 28px; }
  .about-photo img { width: 100%; height: auto; aspect-ratio: 2 / 3; }
  .about-cols { column-count: 1; }

  .career-band { margin-top: 66px; padding: 56px 0 60px; }
  .career-intro { margin-left: 0; }
  .count-table { grid-template-columns: minmax(0, 1fr); }
  .career-row { grid-template-columns: 62px 34px minmax(0, 1fr); }

  .gallery-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 16px;
    align-items: end;
  }
  .shot.p, .shot.w { width: auto; }
  .shot.p img { height: auto; aspect-ratio: 2 / 3; }
  .shot.w { grid-column: 1 / -1; }
  .shot.w img { height: auto; aspect-ratio: 3 / 2; }

  .social { padding-bottom: 66px; }
  .social-grid { grid-template-columns: 1fr; gap: 12px; }
  .social-card { height: 54px; padding: 0 11px; }
  .social-card span { font-size: 11px; }

  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
  .foot-copy { text-align: left; white-space: normal; }
  .foot-fine { font-size: 10.5px; }

  .page-head { padding: 40px 0 30px; }
  .page-head h1 { font-size: 42px; margin: 10px 0 14px; }
  .page-body { padding: 38px 0 60px; }
  .bio-layout { display: block; }
  .bio-aside { margin-bottom: 30px; }
  .bio-aside .bio-photo img { width: 100%; height: auto; aspect-ratio: 3 / 4; }
  .bio-sec h2 { font-size: 24px; }
  .block { padding-top: 40px; }
  .block h2 { font-size: 26px; }
  .block .cols-2 { column-count: 1; }
  .tl-row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 0; }
  .tl-row .tally { display: none; }
  .tl-year { font-size: 16px; }
  .studio-list { grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .error-code { font-size: 92px; }

  .film-table thead { display: none; }
  .film-table, .film-table tbody, .film-table tr, .film-table td { display: block; width: 100%; }
  .film-table tr { border-bottom: 1px solid var(--rule); padding: 14px 0; }
  .film-table td {
    border: 0;
    padding: 1px 0;
    width: auto !important;
  }
  .film-table td:first-child { font-size: 13px; color: var(--gray); }
  .film-table td:nth-child(2) { font-size: 15px; margin: 2px 0 4px; }
  .film-table td:nth-child(3), .film-table td:last-child { font-size: 12px; }
  .film-table td:nth-child(3)::before { content: ''; }
}

@media (prefers-reduced-motion: reduce) {
  * { 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;
}
