/* evanottyweb.com · Ratchet and Click
   Palette: oil black #140f0b, ink #efeae3, grey #a69f95, olive #9fae52,
   structure #241c16, panel #1b1510. Accent stays under 5 percent. */

:root {
  --bg: #140f0b;
  --ink: #efeae3;
  --gray: #a69f95;
  --acc: #9fae52;
  --line: #241c16;
  --panel: #1b1510;
  --ghost: #3d322a;
  --col: 1160px;
}

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

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Source Code Pro', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 16px;
  line-height: 1.70;
  font-weight: 400;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 700; }

:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }

.wrap {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  width: var(--col);
  max-width: calc(100% - 96px);
  margin: 0 auto;
}
main { flex: 1 0 auto; }

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

/* ---------------------------------------------------------- signature mark */
.mark { width: 30px; height: 16px; display: block; }
.mark path, .mark line, .mark polyline { stroke: currentColor; fill: none; }
.mark .tooth { fill: currentColor; stroke: none; }

/* ----------------------------------------------------------------- header */
.headline {
  position: relative;
  border-top: 1px solid var(--line);
  margin-top: 22px;
}
.headline .mark { position: absolute; left: 0; top: -17px; color: var(--acc); }

.site-head {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 14px 0 12px;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.brand b {
  font-family: 'Corben', Georgia, serif;
  font-weight: 700;
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.brand span {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
  white-space: nowrap;
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  row-gap: 4px;
}
.main-nav a {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.main-nav a:hover { color: var(--ink); border-bottom-color: var(--line); }
.main-nav a[aria-current='page'] { color: var(--acc); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  background: var(--acc);
  color: var(--bg);
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  border: 0;
  white-space: nowrap;
}
.btn:hover { background: var(--ink); color: var(--bg); }

/* The nav link rule (0-1-1) would repaint the button; these keep it dark on olive. */
.main-nav a.btn { color: var(--bg); padding: 0 20px; border-bottom: 0; }
.main-nav a.btn:hover { color: var(--bg); background: var(--ink); border-bottom: 0; }

/* ------------------------------------------------------------------- hero */
.hero { padding-top: 18px; }

.hero-rules {
  height: 6px;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

.hero-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 18px;
}
.kicker {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gray);
}

.masthead {
  position: relative;
  margin: 0;
  font-family: 'Corben', Georgia, serif;
  font-weight: 700;
  font-size: 96px;
  line-height: 0.94;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.masthead span { display: block; }
.masthead .mark {
  position: absolute;
  right: 0;
  top: -4px;
  color: var(--acc);
}

.hero-main {
  display: grid;
  grid-template-columns: 560px 1fr;
  gap: 46px;
  margin-top: 28px;
  align-items: stretch;
}
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; height: auto; }

.hero-side {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
}

.ledger { margin: 0; padding: 0; list-style: none; }
.ledger li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 9px 0 10px;
}
.ledger .k {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
}
.ledger .v {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: right;
}

.lede { margin: 28px 0 0; max-width: 36ch; font-size: 16px; line-height: 1.7; }
.lede em { font-style: normal; color: var(--acc); }
.hero-side .btn { margin-top: 22px; align-self: flex-start; }

/* --------------------------------------------------------------- sections */
.sec { padding-top: 48px; }

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-bottom: 20px;
}
.sec-head .num {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--gray);
}
.sec-head h2 {
  margin: 0;
  font-family: 'Corben', Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* ------------------------------------------------------------- 01 partners */
.partners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 1104px;
  max-width: 100%;
}
.partner {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 16px;
  height: 112px;
  padding: 12px 16px 28px;
  border-top: 2px solid var(--line);
}
.partner .pn {
  font-family: 'Corben', Georgia, serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  color: var(--ghost);
}
.partner.is-first .pn { color: var(--acc); }
.partner .logo {
  width: 100px;
  height: 60px;
  object-fit: contain;
  background: var(--ink);
  padding: 6px;
  filter: none;
}
.partner .pname {
  position: absolute;
  left: 16px;
  bottom: 9px;
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
}

/* --------------------------------------------------------- 02 quick profile */
.qp {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  width: 1000px;
  max-width: 100%;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.9;
}
.qp .item { display: inline-flex; align-items: baseline; gap: 9px; }
.qp .v { font-weight: 500; }
.qp .k {
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 0.04em;
}
.qp .dot { color: var(--gray); padding: 0 24px; }

/* -------------------------------------------------------------- 03 about */
.about {
  display: grid;
  grid-template-columns: 620px 300px;
  gap: 80px;
  width: 1000px;
  max-width: 100%;
}
.about p { margin: 0 0 16px; max-width: 50ch; }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 40px;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
}
.facts dd { margin: 0; font-size: 13px; text-align: right; }
.about-note {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--gray);
  max-width: 82ch;
}
.about-note p { margin: 0 0 3px; }
.about .mark { color: var(--acc); margin: 0 0 12px; }

/* ------------------------------------------------------- 04 ruler timeline */
.ruler {
  position: relative;
  width: 1104px;
  max-width: 100%;
  height: 96px;
}
.ruler .ruler-mark { position: absolute; left: 0; top: 42px; color: var(--acc); }
.ruler .axis {
  position: absolute;
  left: 0;
  right: 0;
  top: 64px;
  height: 1px;
  background: var(--line);
}
.ruler .tick {
  position: absolute;
  top: 64px;
  width: 1px;
  height: 6px;
  background: var(--line);
}
.ruler .tick.major { background: var(--ghost); height: 8px; }
.ruler .tick i {
  position: absolute;
  left: 0;
  top: 12px;
  font-style: normal;
  font-size: 10px;
  line-height: 1;
  color: var(--gray);
  white-space: nowrap;
}
.ruler .dot {
  position: absolute;
  top: 62px;
  width: 3px;
  height: 3px;
  margin-left: -1px;
  background: var(--gray);
}
.ruler .dot.is-accent { width: 7px; height: 7px; top: 60px; margin-left: -3px; background: var(--acc); }

.register {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 40px;
  width: 1104px;
  max-width: 100%;
  margin-top: 20px;
}
.reg { border-top: 1px solid var(--line); padding: 11px 0 12px; }
.reg .y {
  display: block;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: var(--gray);
  margin-bottom: 5px;
}
.reg .t { display: block; font-size: 12px; line-height: 1.45; }
.reg.is-accent .y { color: var(--acc); }

/* -------------------------------------------------------------- 05 gallery */
.gallery {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  width: 1104px;
  max-width: 100%;
}
.gallery figure {
  position: relative;
  margin: 0;
  flex: 0 0 auto;
  height: min(552px, 40vw);
  border: 1px solid var(--line);
}
.gallery figure::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 0;
  width: 1px;
  height: 5px;
  background: var(--gray);
}
.gallery img { height: 100%; width: auto; max-width: none; }

/* --------------------------------------------------------------- 06 social */
.social { width: 900px; max-width: 100%; }
.social-row {
  display: grid;
  grid-template-columns: 150px 460px 1fr;
  align-items: center;
  gap: 12px;
  height: 54px;
  border-top: 1px solid var(--line);
}
.social .social-row:last-child { border-bottom: 1px solid var(--line); }
.social-row .sp {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
}
.social-row .sh {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.social-row a:hover .sh { color: var(--acc); }
.social-row .st {
  font-size: 11px;
  color: var(--gray);
  text-align: right;
  white-space: nowrap;
}
.social-note {
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--gray);
  max-width: 86ch;
}

/* ----------------------------------------------------------------- footer */
.site-foot {
  margin-top: 84px;
  border-top: 1px solid var(--line);
  padding-bottom: 34px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 44px;
  align-items: start;
  padding-top: 10px;
}
.foot-brand b {
  font-family: 'Corben', Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.foot-brand p {
  margin: 5px 0 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--gray);
}
.foot-lang { position: relative; }
.foot-lang .short {
  position: relative;
  width: 60px;
  height: 1px;
  background: var(--line);
}
.foot-lang .short .mark {
  position: absolute;
  left: 0;
  top: -16px;
  color: var(--acc);
}
.lang {
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  color: var(--gray);
}
.lang a { color: var(--gray); }
.lang a:hover { color: var(--ink); }
.lang a[aria-current='true'] { color: var(--ink); }
.lang .sep { color: var(--ghost); }
.copy {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--gray);
  text-align: right;
}
.foot-credit {
  margin: 24px 0 0;
  font-size: 11px;
  line-height: 1.75;
  color: var(--gray);
}
.foot-credit a { color: var(--gray); text-decoration: underline; text-underline-offset: 2px; }
.foot-credit a:hover { color: var(--ink); }
.foot-credit p { margin: 0 0 5px; max-width: 118ch; }

/* ------------------------------------------------------------- inner pages */
.page-head { padding-top: 28px; position: relative; }
.page-head .mark { position: absolute; right: 0; top: 30px; color: var(--acc); }
.page-head .kicker { margin-bottom: 16px; }
.page-title {
  margin: 0;
  font-family: 'Corben', Georgia, serif;
  font-weight: 700;
  font-size: 72px;
  line-height: 0.96;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
.page-lede {
  margin: 24px 0 0;
  max-width: 64ch;
  font-size: 17px;
  line-height: 1.65;
}
.page-rule { margin-top: 34px; height: 6px; border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }

.prose {
  display: grid;
  grid-template-columns: 640px 1fr;
  gap: 76px;
  padding-top: 46px;
}
.prose h2 {
  margin: 40px 0 12px;
  font-family: 'Corben', Georgia, serif;
  font-size: 20px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 15px; max-width: 58ch; }
.rail { border-top: 1px solid var(--line); position: sticky; top: 22px; }
.rail .facts { border-top: 0; }

/* film page: prose column, then full-width tables */
.block { padding-top: 46px; }
.block h2 {
  margin: 38px 0 12px;
  font-family: 'Corben', Georgia, serif;
  font-size: 20px;
  line-height: 1.2;
  text-transform: uppercase;
}
.block h2:first-child { margin-top: 0; }
.block p { margin: 0 0 15px; max-width: 62ch; }
.wide { width: 1104px; max-width: 100%; padding-top: 44px; }
.wide .note { margin-top: 26px; }

.table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin: 8px 0 6px; }
.table caption {
  text-align: left;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
  padding: 0 0 10px;
}
.table th {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
  text-align: left;
  padding: 9px 14px 9px 0;
  border-bottom: 1px solid var(--line);
}
.table td {
  padding: 9px 14px 9px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table td.y { color: var(--gray); font-size: 11px; width: 140px; }
.table td.n { text-align: right; white-space: nowrap; font-weight: 500; }

.faq-item {
  border-top: 1px solid var(--line);
  padding: 18px 0 20px;
  max-width: 80ch;
}
.faq-item h3 {
  margin: 0 0 8px;
  font-family: 'Corben', Georgia, serif;
  font-size: 17px;
  line-height: 1.3;
}
.faq-item p { margin: 0; }

.note {
  margin: 22px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--gray);
  max-width: 82ch;
}

/* -------------------------------------------------------------- 1024 break */
@media (max-width: 1024px) {
  :root { --col: 960px; }
  .masthead { font-size: 80px; }
  .hero-main { grid-template-columns: 520px 1fr; gap: 34px; }
  .partners { grid-template-columns: repeat(2, 1fr); width: 960px; }
  .about { grid-template-columns: 1fr 300px; gap: 48px; width: 960px; }
  .prose { grid-template-columns: 1fr 300px; gap: 48px; }
  .gallery { width: 100%; }
  .page-title { font-size: 60px; }
}

/* ---------------------------------------------------------------- 720 break */
@media (max-width: 720px) {
  .wrap { max-width: calc(100% - 36px); }
  .headline { margin-top: 20px; }
  .site-head { gap: 10px; padding: 14px 0 10px; }
  .brand b { font-size: 18px; }
  .brand span { display: none; }
  .main-nav {
    margin-left: 0;
    order: 3;
    width: 100%;
    gap: 8px 10px;
    justify-content: flex-start;
  }
  .main-nav a { font-size: 9.5px; letter-spacing: 0.04em; padding: 4px 0; }
  .main-nav a.btn { flex: 1 1 100%; min-height: 40px; padding: 0 14px; margin-top: 6px; }
  .masthead { font-size: 46px; line-height: 0.98; }
  .masthead .mark { right: 0; top: 2px; }
  .hero-top { grid-template-columns: 1fr; gap: 18px; }
  .hero-main { grid-template-columns: 1fr; gap: 26px; margin-top: 26px; }
  .hero-photo img { max-width: 520px; }
  .hero-side { display: block; }
  .lede { max-width: none; }
  .sec { padding-top: 44px; }
  .sec-head h2 { font-size: 19px; }
  .partners { grid-template-columns: 1fr; }
  .partner { height: auto; min-height: 104px; padding: 12px 0 30px; grid-template-columns: 50px 1fr; }
  .partner .pname { left: 0; }
  .qp { display: block; padding: 6px 0; }
  .qp .item { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); }
  .qp .item:last-child { border-bottom: 0; }
  .qp .dot { display: none; }
  .about, .prose { grid-template-columns: 1fr; gap: 30px; width: 100%; }
  .about .facts { margin-top: 8px; }
  .ruler { display: none; }
  .register { grid-template-columns: 1fr; gap: 0; margin-top: 18px; }
  .reg { display: grid; grid-template-columns: 88px 1fr; gap: 10px; align-items: baseline; padding: 9px 0; }
  .reg .y { margin: 0; }
  .gallery { flex-direction: column; gap: 20px; }
  .gallery figure { height: auto; width: 100%; }
  .gallery img { height: auto; width: 100%; }
  .social-row { grid-template-columns: 1fr auto; height: auto; padding: 12px 0; row-gap: 2px; }
  .social-row .sp { grid-column: 1; }
  .social-row .sh { grid-column: 1 / -1; grid-row: 2; }
  .social-row .st { grid-column: 2; grid-row: 1; }
  .page-title { font-size: 40px; }
  .page-lede { font-size: 16px; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; padding-top: 18px; }
  .copy { text-align: left; }
  .foot-lang .short { display: none; }
  .lang { margin-top: 0; }
  .table td.y { width: 104px; }
  .site-foot { margin-top: 56px; }
}

/* 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;
  filter: none;
  opacity: 1;
}
