
:root {
  --sand: #faf6ee;
  --sand-2: #f3ece0;
  --ink: #3c4450;
  --ink-soft: #55606e;
  --gold: #c9a86a;
  --gold-deep: #7a6234;
  --line: rgba(60, 68, 80, 0.16);
  --gold-line: rgba(201, 168, 106, 0.75);
  --display: 'Trykker', 'Iowan Old Style', Georgia, serif;
  --body: 'Yrsa', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  overflow-x: hidden;
}

img { max-width: 100%; }

a { color: var(--gold-deep); }

h1, h2, h3, .wordmark, .hero-title, .brand-name {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); margin: 0 0 0.5rem; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); margin: 0 0 0.7rem; }
h3 { font-size: 1.16rem; margin: 0 0 0.5rem; }
p { margin: 0 0 1rem; }

.shell { width: min(1180px, 100% - 44px); margin-inline: auto; }

.eyebrow {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.section-sub, .lead { color: var(--ink-soft); max-width: 62ch; }
.note { color: var(--ink-soft); font-size: 0.95rem; }

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

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

.wordmark {
  font-size: 1.32rem;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }

.main-nav a {
  font-family: var(--display);
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.main-nav a:hover { color: var(--gold-deep); border-bottom-color: var(--gold); }
.main-nav a[aria-current="page"] { color: var(--gold-deep); border-bottom-color: var(--gold-line); }

/* buttons: explicit colour overrides so .main-nav a never wins */
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--sand);
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid var(--ink);
  border-radius: 2px;
}

.btn:hover { background: var(--gold); border-color: var(--gold); color: #2a3038; }

.main-nav a.btn { color: var(--sand); border-bottom-color: transparent; padding: 8px 18px; }
.main-nav a.btn:hover { color: #2a3038; background: var(--gold); border-color: var(--gold); }

.btn-sm { font-size: 0.88rem; padding: 8px 16px; }
.btn-lg { font-size: 1.02rem; padding: 13px 28px; }

/* ------------------------------------------------------------------ hero -- */
.hero { padding: 30px 0 8px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 46px;
  align-items: center;
}

.hero-figure { margin: 0; color: var(--gold); }

.cone { display: block; width: 100%; height: 46px; }

.hero-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 8%;
  border: 1px solid var(--line);
  background: #fff;
}

.hero-text { max-width: 40ch; }
.kicker {
  margin: 0 0 0.5rem;
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero-title { margin: 0 0 0.6rem; font-size: clamp(2.4rem, 5.4vw, 3.4rem); }
.hero-lead { font-size: 1.12rem; margin-bottom: 0.6rem; }
.hero-intro { color: var(--ink-soft); margin-bottom: 1.3rem; }

/* -------------------------------------------------------------- sections -- */
.section { padding: 42px 0; }
.section-tight { padding-top: 30px; }
.section-tint { background: var(--sand-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-last { padding-bottom: 54px; }

/* ------------------------------------------------------------- partners --- */
.partner-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }

.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 5 / 3;
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px;
  min-width: 0;
}

.partner-card:hover { border-color: var(--gold); }
.partner-card img { max-width: 88%; max-height: 64%; width: auto; height: auto; object-fit: contain; }

/* --------------------------------------------------------- sand stream --- */
.sand-stream { columns: 2; column-gap: 52px; margin: 1.1rem 0 0; }

.sand-item {
  break-inside: avoid;
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dotted var(--gold-line);
}

.sand-item dt { color: var(--ink-soft); font-size: 0.92rem; }
.sand-item dd { margin: 0; }

/* ----------------------------------------------------------------- about -- */
.about-flow { columns: 2; column-gap: 52px; margin-top: 0.9rem; }
.about-flow p { break-inside: avoid; }

/* --------------------------------------------------------------- pillars -- */
.pillar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 18px; }

.pillar {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  padding: 26px 24px 22px;
  min-width: 0;
}

.pillar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 4px;
  background-image: radial-gradient(circle, var(--gold) 1.5px, rgba(201, 168, 106, 0) 1.7px);
  background-size: 9px 4px;
  background-repeat: repeat-x;
}

.pillar h3 { color: var(--ink); }
.pillar p { margin: 0; color: var(--ink-soft); }

/* --------------------------------------------------------------- gallery -- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 18px; align-items: start; }

.gallery .g-item {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px;
  min-width: 0;
  width: max-content;
  max-width: 100%;
  justify-self: center;
}

.gallery .g-item img { display: block; width: 100%; height: auto; }
.gallery .g-small img { width: auto; max-width: 100%; }

/* staggered hang: the offsets make the uneven source heights read as a wall */
.gallery .g-2 { margin-top: 42px; }
.gallery .g-3 { margin-top: 16px; }
.gallery .g-5 { margin-top: 42px; }

/* ---------------------------------------------------------------- social -- */
.social-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }

.social-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  min-width: 0;
}

.social-row:hover { border-color: var(--gold); }
.social-row .platform { font-family: var(--display); font-size: 0.86rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.social-row .handle { color: var(--gold-deep); font-size: 1.05rem; }

/* ------------------------------------------------------------- sub pages -- */
.page-top { padding: 34px 0 6px; border-bottom: 1px solid var(--line); }
.page-top .shell { max-width: 74ch; }
.page-top .lead { margin-bottom: 1.6rem; }

.reading { max-width: 74ch; margin-inline: auto; padding: 34px 0 12px; }
.story { margin-bottom: 2.1rem; }
.story h2 { border-bottom: 1px dotted var(--gold-line); padding-bottom: 0.4rem; }

.bio-split { display: grid; grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr); gap: 34px; align-items: start; margin-top: 1rem; }
.bio-figure { margin: 0; background: #fff; border: 1px solid var(--line); padding: 10px; }
.bio-figure img { display: block; width: 100%; height: auto; }
.bio-split .sand-stream { columns: 1; margin-top: 0; }

.sand-timeline { list-style: none; margin: 1.1rem 0 0; padding: 0 0 0 30px; position: relative; }

.sand-timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background-image: radial-gradient(circle, var(--gold) 1.4px, rgba(201, 168, 106, 0) 1.6px);
  background-size: 3px 9px;
  background-repeat: repeat-y;
}

.sand-timeline li { position: relative; padding: 0 0 14px; }
.sand-timeline li::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sand);
  border: 2px solid var(--gold);
}

.tl-when { font-family: var(--display); color: var(--gold-deep); }
.tl-what { color: var(--ink); }

.dot-list { margin: 0 0 0.8rem; padding-left: 1.1rem; }
.dot-list li { margin-bottom: 0.4rem; }

.credit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 30px; margin-top: 1rem; }
.credit-col { background: #fff; border: 1px solid var(--line); padding: 18px 20px; min-width: 0; }
.credit-col h3 { font-size: 1.02rem; color: var(--gold-deep); }
.credit-col ul { margin: 0; padding-left: 1.1rem; }
.credit-col li { margin-bottom: 0.35rem; }

.stat-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 1rem; }
.stat { background: #fff; border: 1px solid var(--line); padding: 18px 20px; }
.stat b { display: block; font-family: var(--display); font-size: 1.5rem; color: var(--gold-deep); }
.stat span { color: var(--ink-soft); font-size: 0.95rem; }

.faq-list { margin-top: 0.6rem; }
.faq-list details { border-bottom: 1px dotted var(--gold-line); padding: 12px 0; }
.faq-list summary { cursor: pointer; font-family: var(--display); font-size: 1.06rem; color: var(--ink); list-style: none; display: flex; gap: 10px; align-items: baseline; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before { content: "+"; color: var(--gold-deep); font-size: 1.1rem; line-height: 1; }
.faq-list details[open] summary::before { content: "-"; }
.faq-list summary:hover { color: var(--gold-deep); }
.faq-list .answer { padding: 10px 0 2px; }
.faq-list .answer p { margin: 0; color: var(--ink-soft); }

.notfound { padding: 70px 0 90px; max-width: 60ch; }

/* ---------------------------------------------------------------- footer -- */
.site-footer { background: var(--ink); color: var(--sand); padding: 30px 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 22px;
  align-items: center;
}

.footer-brand { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.footer-brand .brand-name { font-size: 1.12rem; }
.footer-brand .brand-line { font-size: 0.92rem; color: #d9cdb4; }

.language-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-self: center; }
.language-nav a { color: #d9cdb4; text-decoration: none; font-size: 0.92rem; }
.language-nav a:hover { color: var(--sand); text-decoration: underline; }
.language-nav a[aria-current="page"] { color: #e6d5ae; }

.footer-legal { margin: 0; justify-self: end; text-align: right; font-size: 0.9rem; color: #d9cdb4; max-width: 320px; }

/* ----------------------------------------------------------- responsive -- */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .hero-text { order: -1; max-width: none; }
  .hero-figure { max-width: 620px; }
  .partner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; justify-items: start; }
  .language-nav { justify-self: start; }
  .footer-legal { justify-self: start; text-align: left; }
}

@media (max-width: 860px) {
  .sand-stream { columns: 1; }
  .about-flow { columns: 1; }
  .pillar-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery .g-2, .gallery .g-3, .gallery .g-5 { margin-top: 0; }
  .social-list { grid-template-columns: minmax(0, 1fr); }
  .bio-split { grid-template-columns: minmax(0, 1fr); }
  .credit-grid { grid-template-columns: minmax(0, 1fr); }
  .stat-strip { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .shell { width: min(1180px, 100% - 30px); }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .main-nav { gap: 4px 14px; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sand-item { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .sand-item dt { font-size: 0.86rem; }
}
