:root {
  --bg: #f0ede8;
  --ink: #191b18;
  --gray: #565b53;
  --olive: #4a5a2e;
  --line: #dcd9d2;
  --panel: #f7f4ee;
  --display: 'Libre Caslon Condensed', 'Times New Roman', serif;
  --body: 'Rosario', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: inherit; }

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

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

/* Hallmark group: four 12x14 marks with 4px gaps. */
.stamps {
  display: inline-flex;
  gap: 4px;
  line-height: 1;
  color: var(--ink);
  vertical-align: middle;
}

.stamp {
  display: inline-flex;
  width: 12px;
  height: 14px;
  border: 1px solid currentColor;
  align-items: center;
  justify-content: center;
  font-family: var(--body);
  font-size: 7px;
  line-height: 1;
  letter-spacing: 0;
  overflow: hidden;
}

.stamp-lg {
  width: 14px;
  height: 17px;
  font-size: 8px;
}

.stamps-card .stamp:first-child { color: var(--olive); }

/* Header */
.site-head { padding-top: 20px; }

.head-inner {
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0.12em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  align-items: center;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  padding: 7px 0;
  border-bottom: 1px solid transparent;
}

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

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

.btn {
  display: inline-block;
  padding: 14px 22px;
  border: 1px solid var(--olive);
  background: var(--olive);
  color: var(--bg);
  font-family: var(--body);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

/* Keep the button colours when the nav link rules also match. */
.main-nav a.btn,
.main-nav a.btn:visited {
  color: var(--bg);
  background: var(--olive);
  border-bottom-color: var(--olive);
}

.main-nav a.btn:hover {
  color: #ffffff;
  background: var(--ink);
  border-bottom-color: var(--ink);
}

.head-cta {
  margin-left: 6px;
  padding: 10px 14px;
  font-size: 9px;
}

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

.mast-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 28px;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.mast-rule { border-top: 1px solid var(--ink); }

.hero-grid {
  display: grid;
  grid-template-columns: 470px minmax(0, 1fr);
  gap: 0 44px;
  padding-top: 18px;
}

.hero-photo {
  margin: 0 0 0 -20px;
  width: 470px;
  max-width: calc(100% + 20px);
}

.hero-photo img {
  display: block;
  width: 470px;
  height: 627px;
  object-fit: cover;
  object-position: 50% 24%;
}

.hero-copy { padding-top: 56px; }

.hero-copy h1 {
  margin: 26px 0 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 76px;
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.hero-copy h1 span { display: block; }

.lead {
  max-width: 30ch;
  margin: 26px 0 0;
  font-size: 16.5px;
  line-height: 1.72;
}

.hero-copy .btn { margin-top: 30px; }

/* Sections */
.section { margin-top: 84px; }

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  border-top: 1px solid var(--ink);
  padding-top: 14px;
  margin-bottom: 28px;
}

.sec-no {
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.18em;
  color: var(--olive);
}

.sec-head h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.1;
}

.sec-line {
  flex: 1;
  height: 1px;
  background: var(--line);
  margin-left: 6px;
}

.section-intro {
  max-width: 62ch;
  margin: -8px 0 30px;
  color: var(--gray);
}

/* 01 Partners */
.partners {
  display: grid;
  grid-template-columns: repeat(3, 340px);
  justify-content: center;
  column-gap: 28px;
  row-gap: 24px;
}

.partner-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
}

.stamps-card { margin-bottom: 6px; }

.partner-frame {
  display: flex;
  height: 150px;
  border: 1px solid var(--line);
  background: var(--panel);
  align-items: center;
  justify-content: center;
}

.partner-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: 210px;
  max-height: 126px;
}

.partner-name {
  display: block;
  margin-top: 8px;
  font-size: 9px;
  line-height: 1.3;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
}

.partner-card:hover .partner-frame { border-color: var(--olive); }
.partner-card:hover .partner-name { color: var(--ink); }

/* 02 Profile */
.profile-grid {
  display: grid;
  grid-template-columns: 340px 340px;
  column-gap: 80px;
  max-width: 760px;
}

.profile-item {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 22px 0 12px;
  min-height: 62px;
}

.p-label {
  position: absolute;
  top: -5px;
  left: 0;
  background: var(--bg);
  padding-right: 8px;
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.2em;
}

.p-value {
  display: block;
  font-size: 15px;
  line-height: 1.45;
}

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

.era { margin: 0; }

.era img {
  display: block;
  width: 260px;
  height: 390px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.era figcaption {
  margin-top: 8px;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.2em;
  color: var(--gray);
}

.about-text {
  max-width: 40ch;
  justify-self: center;
  padding-top: 6px;
}

.about-text p {
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.75;
}

.about-notes {
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
  color: var(--gray);
  max-width: 640px;
}

.about-notes p { margin: 0 0 4px; }

/* 04 Career assay row */
.assay-rows {
  display: grid;
  gap: 40px;
}

.assay-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 22px;
}

.assay {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.assay-year {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.2;
  width: 56px;
}

.assay-text {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  max-width: 158px;
}

/* 05 Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: 470px minmax(0, 1fr);
  gap: 24px;
}

.g-main { margin: 0; }

.g-main img {
  display: block;
  width: 470px;
  height: 627px;
  object-fit: cover;
  object-position: 50% 20%;
  border: 1px solid var(--line);
}

.g-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-content: center;
}

.g-side figure { margin: 0; }

.g-side img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 260 / 173;
  object-fit: cover;
  object-position: 50% 30%;
  border: 1px solid var(--line);
}

/* 06 Record */
.record { max-width: 640px; }
.record .stamps { margin-bottom: 22px; }

.record-row {
  display: flex;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.r-label {
  flex: none;
  width: 80px;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.2em;
  padding-top: 2px;
}

.r-value { font-size: 14px; line-height: 1.5; }

.fine {
  margin: 16px 0 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--gray);
}

/* Footer */
.site-foot {
  margin-top: 96px;
  border-top: 1px solid var(--ink);
  padding: 18px 0 40px;
}

.foot-stamps { margin-bottom: 24px; }

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

.f-brand strong {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.1em;
}

.f-brand span {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--gray);
}

.f-langs {
  font-size: 11px;
  line-height: 1.9;
  letter-spacing: 0.06em;
}

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

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

.f-langs a[aria-current="true"] { color: var(--ink); }

.f-copy {
  text-align: right;
  font-size: 11px;
  line-height: 1.7;
  color: var(--gray);
}

.fine-foot {
  margin: 20px 0 0;
  font-size: 11px;
  line-height: 1.7;
  color: var(--gray);
  max-width: 780px;
}

/* Text pages */
.page { padding-top: 44px; }

.page-head {
  max-width: 900px;
  border-top: 1px solid var(--ink);
  padding-top: 18px;
}

.page-head .stamps { margin-bottom: 24px; }

.kicker {
  display: block;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--olive);
}

.page-head h1 {
  margin: 14px 0 22px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: 0.005em;
  max-width: 18ch;
}

.standfirst {
  margin: 0;
  max-width: 66ch;
  font-size: 18px;
  line-height: 1.62;
}

.page-body {
  margin-top: 56px;
  max-width: 760px;
}

.page-body.with-aside {
  display: grid;
  grid-template-columns: minmax(0, 700px) 320px;
  gap: 80px;
  max-width: none;
  align-items: start;
}

.prose { max-width: 700px; }

.prose h2 {
  margin: 46px 0 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.12;
}

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

.prose p { margin: 0 0 18px; }

.prose ul {
  margin: 0 0 18px;
  padding-left: 20px;
}

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

.page-aside > .stamps {
  display: flex;
  margin-bottom: 14px;
}

.page-aside figure { margin: 0; }

.page-aside img {
  display: block;
  width: 320px;
  height: 480px;
  object-fit: cover;
  object-position: 50% 22%;
  border: 1px solid var(--line);
}

.page-aside figcaption { margin-top: 10px; }

.notes {
  margin-top: 26px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
  color: var(--gray);
}

.notes p { margin: 0 0 4px; }

/* Timeline */
.tl {
  margin: 8px 0 28px;
  border-top: 1px solid var(--ink);
}

.tl-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.tl-date {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--olive);
  padding-top: 4px;
}

.tl-body h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.2;
}

.tl-body p {
  margin: 0;
  max-width: 58ch;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--gray);
}

/* Tables */
.table-wrap {
  margin: 8px 0 30px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  border-bottom: 1px solid var(--ink);
  padding: 0 14px 10px 0;
  white-space: nowrap;
}

td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px 12px 0;
  font-size: 14px;
  line-height: 1.55;
  vertical-align: top;
}

td:first-child { font-weight: 500; }

/* FAQ */
.faq-list {
  margin-top: 48px;
  max-width: 820px;
  border-top: 1px solid var(--ink);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.faq-item h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 25px;
  line-height: 1.22;
}

.faq-item p {
  margin: 0;
  max-width: 68ch;
  color: var(--gray);
}

/* 404 */
.notfound .page-head { max-width: 680px; }
.notfound .btn { margin-top: 28px; }

/* Tablet */
@media (max-width: 1024px) {
  .wrap { width: min(1180px, calc(100% - 40px)); }
  .head-inner { gap: 20px; }
  .main-nav { gap: 16px; }
  .hero-grid { grid-template-columns: 420px minmax(0, 1fr); gap: 0 32px; }
  .hero-photo { width: 420px; max-width: calc(100% + 20px); }
  .hero-photo img { width: 420px; height: 560px; }
  .hero-copy { padding-top: 34px; }
  .hero-copy h1 { font-size: 60px; }
  .partners { grid-template-columns: repeat(2, 340px); }
  .about-grid { grid-template-columns: 220px minmax(0, 1fr) 220px; gap: 28px; }
  .era img { width: 220px; height: 330px; }
  .about-text { max-width: 38ch; }
  .gallery-grid { grid-template-columns: 1fr; }
  .g-main img { width: 100%; height: auto; aspect-ratio: 470 / 627; }
  .page-body.with-aside { grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; }
  .page-aside img { width: 280px; height: 420px; }
  .page-head h1 { font-size: 54px; }
}

/* Phone */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .site-head { padding-top: 14px; }
  .head-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 16px;
  }
  .brand { font-size: 17px; }
  .main-nav {
    order: 3;
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 2px 0 0;
  }
  .main-nav a { font-size: 9px; padding: 5px 0; }
  .head-cta { margin-left: 0; padding: 9px 12px; font-size: 8px; }
  .mast-row {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    height: auto;
    gap: 4px;
    padding-bottom: 8px;
    font-size: 9px;
  }
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-copy { order: 1; padding-top: 0; }
  .hero-photo { order: 2; margin-left: 0; width: 100%; max-width: 100%; }
  .hero-photo img { width: 100%; height: auto; aspect-ratio: 3 / 4; }
  .hero-copy h1 { font-size: 54px; }
  .lead { max-width: 36ch; }
  .section { margin-top: 60px; }
  .sec-head h2 { font-size: 25px; }
  .partners { grid-template-columns: 1fr; justify-items: stretch; }
  .partner-card { width: 100%; max-width: 340px; }
  .partner-frame { height: auto; aspect-ratio: 340 / 150; }
  .profile-grid { grid-template-columns: 1fr; max-width: none; }
  .profile-item { padding: 18px 0 10px; }
  .about-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "a b" "t t";
    gap: 18px;
  }
  .era-a { grid-area: a; }
  .era-b { grid-area: b; }
  .era img { width: 100%; height: auto; aspect-ratio: 2 / 3; }
  .about-text { grid-area: t; max-width: none; margin-top: 10px; }
  .assay-row { grid-template-columns: 1fr; border-bottom: 0; padding-bottom: 0; }
  .assay {
    display: grid;
    grid-template-columns: 24px 62px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
  }
  .assay-year { margin-top: 0; }
  .assay-text { margin-top: 0; max-width: none; }
  .gallery-grid { gap: 20px; }
  .g-side { gap: 12px; }
  .record { max-width: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
  .f-copy { text-align: left; }
  .fine-foot { max-width: none; }
  .page { padding-top: 28px; }
  .page-head h1 { font-size: 42px; max-width: none; }
  .standfirst { font-size: 16.5px; }
  .page-body.with-aside { display: block; }
  .page-aside { margin-top: 28px; }
  .page-aside img { width: 100%; height: auto; aspect-ratio: 2 / 3; }
  .tl-item { grid-template-columns: 1fr; gap: 4px; }
  .tl-date { padding-top: 0; }
  .prose h2 { font-size: 27px; }
  .table-wrap { margin-left: -8px; }
  th, td { padding-right: 10px; }
  .faq-item h2 { font-size: 22px; }
}

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