/* Dora Venter archive · Scarf Joint design
   Palette: planed beech #eee9df, ink #1f1c18, grey #635d52,
   oxide red #8a3b2b, structure #d5cdbd, panel #f6f2e9 */

:root {
  --bg: #eee9df;
  --ink: #1f1c18;
  --grey: #635d52;
  --accent: #8a3b2b;
  --line: #d5cdbd;
  --panel: #f6f2e9;
  --accent-dark: #6b2d21;
  --wrap: 1180px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Carlito', 'Segoe UI', Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.7;
}

img { max-width: 100%; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, .brand, .tl-year, .foot-brand, .big-code {
  font-family: 'Aboreto', 'Trebuchet MS', sans-serif;
  font-weight: 400;
  font-synthesis: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.0;
  margin: 0;
}

p { margin: 0 0 18px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

.kicker {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0;
}

/* ------------------------------------------------------------------ head */
.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.brand {
  font-size: 17px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.main-nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.main-nav a.is-current {
  border-bottom-color: var(--ink);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 11px 20px;
  border: 0;
  text-decoration: none;
  line-height: 1.2;
}

.btn:hover {
  background: var(--accent-dark);
  color: var(--bg);
}

.main-nav a.btn {
  color: var(--bg);
  background: var(--accent);
  padding: 11px 20px;
  border-bottom: 0;
}

.main-nav a.btn:hover {
  color: var(--bg);
  background: var(--accent-dark);
  border-bottom: 0;
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  padding: 44px 0 24px;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 476px;
  max-width: calc(100% - 64px);
  margin-left: max(32px, calc((100vw - var(--wrap)) / 2));
  padding-top: 8px;
}

.hero h1 {
  font-size: 72px;
  letter-spacing: 0.04em;
  margin: 16px 0 0;
}

.hero .lead {
  max-width: 32ch;
  margin: 30px 0 0;
  font-size: 17px;
  line-height: 1.7;
}

.hero .btn {
  margin-top: 32px;
}

.hero-notes {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
}

.hero-notes li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  line-height: 1.9;
}

.hero-notes li::before {
  content: '';
  width: 12px;
  height: 1px;
  background: var(--grey);
  transform: rotate(-30deg);
  flex: 0 0 12px;
}

.hero-photo {
  position: absolute;
  top: 118px;
  right: 0;
  width: 620px;
  height: 933px;
  margin: 0;
  z-index: 1;
}

.hero-photo img {
  display: block;
  width: 620px;
  height: 933px;
  object-fit: cover;
}

.seam {
  position: absolute;
  top: 168px;
  right: 620px;
  width: 180px;
  height: 300px;
  z-index: 2;
  pointer-events: none;
}

.seam svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* ------------------------------------------------------------- sections */
.section {
  padding: 56px 0 0;
}

.hero + .section {
  padding-top: 40px;
}

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

.sec-no {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  min-width: 24px;
}

.sec-head h2 {
  font-size: 28px;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------- 01 partners */
.partners-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
}

.partners-grid::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: repeating-linear-gradient(to bottom, var(--line) 0 120px, transparent 120px 140px);
}

.partner-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 210px;
  align-items: center;
  column-gap: 20px;
  height: 140px;
}

.partner-row + .partner-row {
  border-top: 1px solid var(--line);
}

.partner-no {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.partner-no::after {
  content: '';
  width: 12px;
  height: 1px;
  background: var(--grey);
  transform: rotate(-30deg);
  transform-origin: left center;
}

.partner-name {
  font-size: 15px;
}

.partner-logo {
  width: 210px;
  height: 126px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* --------------------------------------------------------- 02 quick profile */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 280px);
  gap: 20px;
}

.quick-cell {
  width: 280px;
  max-width: 100%;
  height: 92px;
  padding-top: 2px;
}

.quick-cell::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--grey);
  transform: rotate(-30deg);
  transform-origin: left center;
  margin: 8px 0 14px 2px;
}

.quick-cell.accent::before {
  background: var(--accent);
}

.quick-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey);
  line-height: 1.4;
}

.quick-value {
  display: block;
  font-size: 15px;
  line-height: 1.5;
  margin-top: 2px;
}

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

.about-photo img {
  display: block;
  width: 280px;
  height: 420px;
  object-fit: cover;
}

.about-seam {
  position: relative;
  width: 1px;
  height: 420px;
  background: var(--line);
}

.about-seam span {
  position: absolute;
  left: -4px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--grey);
  border-radius: 50%;
  background: var(--bg);
}

.about-seam span:nth-child(1) { top: calc(25% - 4px); }
.about-seam span:nth-child(2) { top: calc(50% - 4px); }
.about-seam span:nth-child(3) { top: calc(75% - 4px); border-color: var(--accent); }

.about-body {
  max-width: 58ch;
}

.about-note {
  font-size: 12px;
  color: var(--grey);
  margin: 4px 0 0;
}

.archive-inset {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  width: 254px;
  max-width: 100%;
}

.archive-inset img {
  display: block;
  width: 254px;
  height: auto;
}

.credit {
  font-size: 11px;
  line-height: 1.55;
  color: var(--grey);
  margin: 8px 0 0;
}

.credit a {
  color: var(--grey);
  text-decoration: underline;
}

.credit a:hover { color: var(--accent); }

/* --------------------------------------------------------------- 04 timeline */
.tl {
  position: relative;
  max-width: 1180px;
}

.tl-row {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  column-gap: 24px;
  align-items: center;
  height: 62px;
  border-top: 1px solid var(--line);
}

.tl-row:last-child {
  border-bottom: 1px solid var(--line);
}

.tl-row:nth-child(1) { margin-left: 0; }
.tl-row:nth-child(2) { margin-left: 16px; }
.tl-row:nth-child(3) { margin-left: 32px; }
.tl-row:nth-child(4) { margin-left: 48px; }
.tl-row:nth-child(5) { margin-left: 64px; }
.tl-row:nth-child(6) { margin-left: 80px; }
.tl-row:nth-child(7) { margin-left: 96px; }
.tl-row:nth-child(8) { margin-left: 112px; }
.tl-row:nth-child(9) { margin-left: 128px; }

.tl-row + .tl-row::before {
  content: '';
  position: absolute;
  left: -1px;
  top: -1px;
  width: 38px;
  height: 1px;
  background: var(--grey);
  transform: rotate(30deg);
  transform-origin: left center;
}

.tl-year {
  font-size: 15px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.tl-year.accent { color: var(--accent); }

.tl-event {
  font-size: 15px;
  line-height: 1.45;
}

/* ---------------------------------------------------------------- 05 gallery */
.gallery-top {
  display: flex;
  align-items: flex-end;
  gap: 28px;
}

.gallery-bottom {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-top: 32px;
  margin-left: 80px;
}

.g-img {
  border: 1px solid var(--line);
  margin: 0;
  padding: 0;
  line-height: 0;
  flex: 0 0 auto;
}

.g-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g-3 { width: 300px; height: 411px; }
.g-1 { width: 360px; height: 480px; }
.g-2 { width: 280px; height: 374px; }
.g-5 { width: 300px; height: 450px; }
.g-4 { width: 240px; height: 360px; }

/* ---------------------------------------------------------------- 06 archive */
.archive-block {
  max-width: 780px;
}

.archive-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  column-gap: 24px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.archive-row:last-of-type {
  border-bottom: 1px solid var(--line);
}

.archive-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ------------------------------------------------------------------ footer */
.site-foot {
  position: relative;
  margin-top: 84px;
  border-top: 1px solid var(--line);
  padding: 0 0 30px;
}

.foot-seam {
  position: absolute;
  top: -60px;
  right: max(32px, calc((100vw - var(--wrap)) / 2));
  width: 120px;
  height: 60px;
}

.foot-seam svg { display: block; width: 100%; height: 100%; overflow: visible; }

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

.foot-brand {
  font-size: 15px;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 6px;
}

.foot-line {
  font-size: 13px;
  color: var(--grey);
  margin: 0;
}

.langs {
  font-size: 13px;
  color: var(--grey);
}

.langs a {
  color: var(--ink);
  text-decoration: none;
}

.langs a:hover { color: var(--accent); text-decoration: underline; }

.langs span.sep {
  color: var(--grey);
  padding: 0 4px;
}

.copy {
  font-size: 12px;
  color: var(--grey);
  text-align: right;
  line-height: 1.6;
}

.foot-note {
  font-size: 11px;
  color: var(--grey);
  margin: 22px 0 0;
}

/* -------------------------------------------------------------- subpages */
.page-head {
  padding: 66px 0 30px;
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  font-size: 52px;
  letter-spacing: 0.04em;
  margin: 18px 0 0;
  max-width: 22ch;
}

.page-intro {
  max-width: 56ch;
  margin: 24px 0 0;
  font-size: 18px;
  line-height: 1.65;
}

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

.prose h2 {
  font-size: 22px;
  margin: 38px 0 14px;
  letter-spacing: 0.05em;
}

.prose h2:first-child { margin-top: 0; }

.prose p {
  max-width: 58ch;
}

.prose ul {
  max-width: 58ch;
  padding-left: 20px;
  margin: 0 0 18px;
}

.prose li { margin-bottom: 8px; }

.fact-box {
  border-top: 1px solid var(--ink);
  padding-top: 12px;
}

.fact-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.45;
}

.fact-label {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  padding-top: 2px;
}

.fact-value { text-align: right; }

.page-figure {
  margin: 0;
  width: 254px;
  max-width: 100%;
}

.page-figure img {
  display: block;
  width: 254px;
  height: auto;
  border: 1px solid var(--line);
}

.film-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin: 8px 0 26px;
}

.film-table th {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  text-align: left;
  font-weight: 400;
  padding: 0 10px 8px 0;
  border-bottom: 1px solid var(--ink);
}

.film-table td {
  padding: 12px 10px 12px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.5;
}

.film-table td:first-child {
  white-space: nowrap;
  font-family: 'Aboreto', sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--grey);
}

.faq-item {
  border-top: 1px solid var(--line);
  padding: 20px 0 4px;
  max-width: 62ch;
}

.faq-item h3 {
  font-family: 'Carlito', sans-serif;
  font-size: 17px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.45;
  margin: 0 0 8px;
}

.faq-item p {
  margin: 0 0 14px;
  color: var(--ink);
}

.note-line {
  font-size: 12px;
  color: var(--grey);
  margin-top: 6px;
}

/* -------------------------------------------------------------------- 404 */
.err {
  min-height: 58vh;
  padding: 90px 0 60px;
}

.err .big-code {
  font-size: 96px;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.err h1 {
  font-size: 30px;
  margin: 18px 0 16px;
}

.err p {
  max-width: 46ch;
}

.err a.home-link {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 1200px) {
  .hero-photo, .hero-photo img { width: 560px; }
  .hero-photo { height: 843px; top: 118px; }
  .seam { right: 560px; width: 140px; height: 280px; }
  .hero-copy { width: min(476px, calc(100vw - 640px)); }
  .hero h1 { font-size: 64px; }
}

@media (max-width: 1359px) {
  .seam { display: none; }
}

@media (max-width: 1024px) {
  .wrap { padding: 0 26px; }
  .hero { padding-top: 40px; }
  .hero-copy {
    width: min(420px, calc(100vw - 580px));
    margin-left: 26px;
    max-width: calc(100% - 52px);
  }
  .hero h1 { font-size: 56px; }
  .hero .lead { max-width: 30ch; font-size: 16.5px; }
  .hero-photo, .hero-photo img { width: 500px; }
  .hero-photo { height: 752px; top: 118px; }
  .hero-notes li { font-size: 9.5px; }
  .about-grid { grid-template-columns: 240px 1px minmax(0, 1fr); column-gap: 36px; }
  .about-photo img { width: 240px; height: 360px; }
  .about-seam { height: 360px; }
  .page-head h1 { font-size: 44px; }
  .page-body { grid-template-columns: minmax(0, 1fr) 260px; gap: 44px; }
  .g-3 { width: 250px; height: 342px; }
  .g-1 { width: 310px; height: 413px; }
  .g-2 { width: 230px; height: 307px; }
  .g-5 { width: 260px; height: 390px; }
  .g-4 { width: 200px; height: 300px; }
  .gallery-bottom { margin-left: 60px; }
}

@media (max-width: 900px) {
  .head-inner { flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
  .main-nav { gap: 18px; justify-content: flex-start; }
  .hero-photo, .hero-photo img { width: 360px; }
  .hero-photo { height: 540px; top: 132px; }
  .seam { display: none; }
  .hero-copy { width: 320px; }
  .hero h1 { font-size: 44px; }
  .hero .lead { font-size: 16px; }
  .partners-grid { column-gap: 36px; }
  .partners-grid::before { left: 50%; }
  .partner-row { grid-template-columns: 44px minmax(0, 1fr) 170px; column-gap: 16px; }
  .partner-logo { width: 170px; height: 102px; }
  .g-3 { width: 29%; height: auto; aspect-ratio: 300 / 411; }
  .g-1 { width: 35%; height: auto; aspect-ratio: 360 / 480; }
  .g-2 { width: 27%; height: auto; aspect-ratio: 280 / 374; }
  .g-5 { width: 55%; height: auto; aspect-ratio: 300 / 450; }
  .g-4 { width: 40%; height: auto; aspect-ratio: 240 / 360; }
  .gallery-bottom { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 14px; }
  .copy { text-align: left; }
  .page-body { grid-template-columns: 1fr; gap: 32px; }
  .fact-box { max-width: 420px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .main-nav { gap: 12px; }
  .main-nav a { font-size: 12px; }
  .main-nav a.btn { padding: 9px 14px; font-size: 11.5px; }
  .brand { font-size: 15px; }
  .hero { padding: 34px 0 64px; overflow: visible; }
  .hero-copy {
    width: auto;
    max-width: none;
    margin: 0 20px;
    padding-top: 0;
  }
  .hero h1 { font-size: 46px; margin-top: 12px; }
  .hero .lead { margin-top: 22px; max-width: 100%; }
  .hero .btn { margin-top: 24px; }
  .hero-notes { margin-top: 22px; }
  .hero-photo {
    position: static;
    width: 100%;
    height: auto;
    margin: 34px 0 0;
  }
  .hero-photo img { width: 100%; height: auto; aspect-ratio: 2 / 3; }
  .seam { display: none; }
  .section { padding-top: 44px; }
  .sec-head { margin-bottom: 18px; }
  .sec-head h2 { font-size: 23px; }
  .partners-grid { grid-template-columns: 1fr; }
  .partners-grid::before { display: none; }
  .partner-row { grid-template-columns: 40px minmax(0, 1fr) 150px; height: 124px; }
  .partner-logo { width: 150px; height: 90px; }
  .quick-grid { grid-template-columns: 1fr; gap: 16px; }
  .quick-cell { height: auto; padding-bottom: 6px; }
  .about-grid { grid-template-columns: 1fr; row-gap: 26px; }
  .about-photo { order: 2; }
  .about-seam { display: none; }
  .about-body { order: 1; }
  .about-photo img { width: 100%; max-width: 340px; height: auto; }
  .tl-row { margin-left: 0 !important; grid-template-columns: 58px minmax(0, 1fr); column-gap: 14px; height: auto; min-height: 56px; padding: 9px 0; }
  .tl-row + .tl-row::before { display: none; }
  .tl-year { font-size: 13px; }
  .tl-event { font-size: 14px; }
  .gallery-top, .gallery-bottom {
    flex-wrap: wrap;
    gap: 18px;
    margin-left: 0;
  }
  .g-img { width: calc(50% - 9px); height: auto; }
  .g-img img { width: 100%; height: auto; aspect-ratio: var(--ar, 3 / 4); }
  .g-3 { --ar: 300 / 411; }
  .g-1 { --ar: 360 / 480; }
  .g-2 { --ar: 280 / 374; }
  .g-5 { --ar: 300 / 450; }
  .g-4 { --ar: 240 / 360; }
  .gallery-bottom { margin-top: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 16px; padding-top: 26px; }
  .copy { text-align: left; }
  .foot-seam { right: 20px; width: 96px; }
  .page-head { padding: 42px 0 24px; }
  .page-head h1 { font-size: 34px; }
  .page-intro { font-size: 16.5px; }
  .page-body { padding-top: 28px; }
  .film-table { font-size: 13px; }
  .film-table td:first-child { font-size: 11px; }
}
