/* ==========================================================================
   Dato' Seri Ivan Teh  |  Awards and Recognition
   Design system: "Hall of Honours"
   Ground: cool alabaster gallery wall. Accent pairing: deep laurel + antique
   bronze. Type: Newsreader (voice) with Archivo (wayfinding).
   ========================================================================== */

:root {
  --paper:        #F6F5F1;
  --porcelain:    #FFFFFF;
  --ink:          #16191B;
  --slate:        #5C6467;
  --slate-soft:   #7C8386;
  --laurel:       #17352C;
  --laurel-deep:  #0F251E;
  --laurel-mist:  #B9C4BF;
  --bronze:       #8C6A3E;
  --bronze-lt:    #C9A96A;
  --bronze-wash:  #F0EADE;
  --rule:         #DFDCD3;
  --rule-dark:    #2C4B41;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --measure: 66ch;
  --shell: 1180px;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);

  --step--1: clamp(0.86rem, 0.83rem + 0.14vw, 0.94rem);
  --step-0:  clamp(1.06rem, 1.01rem + 0.24vw, 1.19rem);
  --step-1:  clamp(1.28rem, 1.18rem + 0.46vw, 1.56rem);
  --step-2:  clamp(1.56rem, 1.36rem + 0.92vw, 2.13rem);
  --step-3:  clamp(1.9rem, 1.53rem + 1.7vw, 2.9rem);
  --step-4:  clamp(2.3rem, 1.62rem + 3.1vw, 4rem);
  --step-5:  clamp(2.7rem, 1.6rem + 4.9vw, 5.1rem);
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.68;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.15em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--laurel); color: var(--paper);
  padding: 0.8rem 1.2rem; z-index: 999;
  font-family: var(--sans); font-size: 0.9rem;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* --------------------------------------------------------------- scaffold */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--wide { max-width: 1360px; }

.band { padding-block: clamp(3.75rem, 8vw, 7rem); }
.band--tight { padding-block: clamp(2.75rem, 5vw, 4.25rem); }
.band--paper { background: var(--paper); }
.band--porcelain { background: var(--porcelain); }
.band--wash { background: var(--bronze-wash); }
.band--laurel { background: var(--laurel); color: var(--paper); }
.band--laurel h1, .band--laurel h2, .band--laurel h3 { color: var(--paper); }
.band--laurel p { color: var(--laurel-mist); }

/* ------------------------------------------------------------- section cue
   A short bronze rule plus a sentence-case label. Encodes "which part of the
   record am I in", not decoration. */
.cue {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--bronze);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.35rem;
}
.cue::before {
  content: "";
  width: 2.4rem; height: 1px;
  background: currentColor;
  flex: none;
}
.band--laurel .cue { color: var(--bronze-lt); }
.band--laurel .section-head p,
.band--laurel .prose p,
.band--laurel .prose li { color: var(--laurel-mist); }
.band--laurel .prose a { color: var(--bronze-lt); text-decoration-color: var(--bronze-lt); }
.band--laurel .prose a:hover { color: var(--paper); }
.band--laurel .ledger { border-top-color: var(--rule-dark); }
.band--laurel .ledger__row { border-bottom-color: var(--rule-dark); }
.band--laurel .ledger__title { color: var(--paper); }
.band--laurel .ledger__body { color: var(--laurel-mist); }
.band--laurel .ledger__by { color: var(--bronze-lt); }

/* ----------------------------------------------------------------- header */
.masthead {
  position: sticky; top: 0; z-index: 60;
  background: rgba(246, 245, 241, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 5.1rem;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand .emblem { width: clamp(38px, 4vw, 46px); height: auto; flex: none; }
.brand .wordmark { white-space: nowrap; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.1vw, 1.9rem); }
.nav a {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--slate);
  text-decoration: none;
  padding-block: 0.4rem;
  border-bottom: 1.5px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--bronze); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--bronze); }

.burger {
  display: none;
  background: none; border: 1px solid var(--rule);
  width: 2.9rem; height: 2.9rem; border-radius: 3px;
  cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.burger span { display: block; width: 17px; height: 1.5px; background: var(--ink); position: relative; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.5px; background: var(--ink);
}
.burger span::before { top: -5.5px; }
.burger span::after { top: 5.5px; }

@media (max-width: 940px) {
  .burger { display: inline-flex; }
  .nav {
    display: none;
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--porcelain);
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem var(--gutter) 1.5rem;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a {
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--rule);
    font-size: 1.02rem;
  }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--rule); color: var(--bronze); }
}

/* ------------------------------------------------------------------- hero */
.hero { background: var(--laurel); color: var(--paper); overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3.25rem, 7vw, 6.25rem);
}
.hero__title {
  font-size: var(--step-5);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.022em;
  color: var(--paper);
  max-width: 15ch;
}
.hero__lede {
  margin-top: 1.6rem;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--laurel-mist);
  max-width: 46ch;
}
.hero__cue { color: var(--bronze-lt); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.3rem; }

.hero__frame { position: relative; }
.hero__frame::after {
  content: "";
  position: absolute; inset: 1.1rem -1.1rem -1.1rem 1.1rem;
  border: 1px solid var(--bronze);
  pointer-events: none;
}
.hero__frame img { position: relative; z-index: 1; width: 100%; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__frame { max-width: 340px; }
  .hero__frame::after { inset: 0.75rem -0.75rem -0.75rem 0.75rem; }
}

/* one orchestrated page-load reveal, hero only */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(14px); animation: rise 0.75s cubic-bezier(.2,.7,.3,1) forwards; }
  .rise:nth-child(1) { animation-delay: 0.05s; }
  .rise:nth-child(2) { animation-delay: 0.16s; }
  .rise:nth-child(3) { animation-delay: 0.27s; }
  .rise:nth-child(4) { animation-delay: 0.38s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center;
  font-family: var(--sans); font-size: 0.94rem; font-weight: 600;
  letter-spacing: 0.008em;
  padding: 0.92rem 1.65rem;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn--solid { background: var(--bronze-lt); color: var(--laurel-deep); }
.btn--solid:hover { background: var(--paper); }
.btn--ghost { border-color: rgba(201,169,106,0.55); color: var(--bronze-lt); }
.btn--ghost:hover { border-color: var(--bronze-lt); background: rgba(201,169,106,0.1); }
.btn--ink { background: var(--laurel); color: var(--paper); }
.btn--ink:hover { background: var(--laurel-deep); }
.btn--outline { border-color: var(--bronze); color: var(--bronze); }
.btn--outline:hover { background: var(--bronze); color: var(--paper); }

/* ------------------------------------------------------- editorial layout */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.75rem);
  align-items: start;
}
.split--reverse .split__media { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

.section-head { max-width: 34ch; }
.section-head h2 { font-size: var(--step-3); }
.section-head p { margin-top: 1.15rem; color: var(--slate); }

.prose h2 { font-size: var(--step-2); margin-top: 2.9rem; margin-bottom: 0.95rem; }
.prose h3 { font-size: var(--step-1); margin-top: 2.1rem; margin-bottom: 0.7rem; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { max-width: var(--measure); padding-left: 1.15rem; margin: 0 0 1.3em; }
.prose li { margin-bottom: 0.55em; padding-left: 0.25rem; }
.prose li::marker { color: var(--bronze); }
.prose a { color: var(--laurel); text-decoration-color: var(--bronze); text-underline-offset: 3px; }
.prose a:hover { color: var(--bronze); }

.lede { font-size: var(--step-1); line-height: 1.55; color: var(--slate); max-width: 52ch; }

/* ------------------------------------------------------------ the ledger
   Honours are presented as ruled ledger entries rather than repeated cards. */
.ledger { border-top: 1px solid var(--rule); }
.ledger__row {
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr);
  gap: clamp(1.1rem, 3vw, 2.4rem);
  padding-block: clamp(1.9rem, 3.5vw, 2.75rem);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.ledger__row::before {
  content: "";
  position: absolute; left: 0; bottom: -1px; height: 1px; width: 0;
  background: var(--bronze);
  transition: width 0.4s cubic-bezier(.2,.7,.3,1);
}
.ledger__row:hover::before { width: 100%; }
.ledger__mark { width: 3.6rem; opacity: 0.9; }
.ledger__mark svg { width: 100%; height: auto; }
.ledger__title { font-size: var(--step-2); }
.ledger__by {
  font-family: var(--sans); font-size: var(--step--1); font-weight: 500;
  color: var(--bronze); margin-top: 0.6rem;
}
.ledger__body { margin-top: 0.95rem; color: var(--slate); }
@media (max-width: 620px) {
  .ledger__row { grid-template-columns: 1fr; gap: 1rem; }
  .ledger__mark { width: 2.6rem; }
}

/* ---------------------------------------------------------- conferred-by
   A typographic roll of conferring institutions, in place of a stat block. */
.roll { display: grid; gap: 0; border-top: 1px solid var(--rule-dark); }
.roll__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 1.5rem;
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--rule-dark);
  align-items: baseline;
}
.roll__name { font-size: var(--step-1); color: var(--paper); }
.roll__note {
  font-family: var(--sans); font-size: var(--step--1);
  color: var(--laurel-mist); line-height: 1.6;
}
@media (max-width: 620px) { .roll__item { grid-template-columns: 1fr; gap: 0.4rem; } }

/* ------------------------------------------------------------------ index
   Award-category and news entries: ruled entries with a bronze top hairline,
   not a kit of identical shadowed cards. */
.entries { display: grid; gap: clamp(1.6rem, 3vw, 2.25rem); }
.entries--two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); }
.entries--three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); }

.entry {
  display: flex; flex-direction: column;
  background: var(--porcelain);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--bronze);
  padding: clamp(1.6rem, 3vw, 2.15rem);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.25s cubic-bezier(.2,.7,.3,1);
}
.entry:hover { border-color: var(--bronze); transform: translateY(-3px); }
.entry__kicker {
  font-family: var(--sans); font-size: var(--step--1); font-weight: 600;
  color: var(--bronze); margin-bottom: 0.7rem;
}
.entry__title { font-size: var(--step-1); }
.entry__text { margin-top: 0.85rem; color: var(--slate); font-size: 0.99rem; }
.entry__more {
  margin-top: auto; padding-top: 1.35rem;
  font-family: var(--sans); font-size: 0.88rem; font-weight: 600; color: var(--laurel);
  border-bottom: 1px solid var(--bronze); align-self: flex-start;
}

.entry--media { padding: 0; overflow: hidden; }
.entry--media .entry__pad { padding: clamp(1.5rem, 3vw, 2rem); display: flex; flex-direction: column; flex: 1; }
.entry--media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 12%; }

/* ------------------------------------------------------------ pull quote */
.quote { max-width: 44ch; margin: 0; }
.quote p {
  font-size: var(--step-2); line-height: 1.38; font-style: italic;
  color: var(--ink); max-width: none;
}
.band--laurel .quote p { color: var(--paper); }
.quote__mark { font-size: 3.4rem; line-height: 0.4; color: var(--bronze); display: block; margin-bottom: 1.1rem; }
.quote figcaption {
  font-family: var(--sans); font-size: var(--step--1); color: var(--slate); margin-top: 1.5rem;
}
.band--laurel .quote figcaption { color: var(--laurel-mist); }

/* ------------------------------------------------------------ source note */
.sources {
  border-left: 2px solid var(--bronze);
  padding: 0.35rem 0 0.35rem 1.4rem;
  margin: 2.5rem 0 0;
  font-family: var(--sans); font-size: var(--step--1); color: var(--slate);
  line-height: 1.7;
}
.sources h2, .sources h3 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--ink); margin-bottom: 0.5rem; }
.sources ul { list-style: none; padding: 0; margin: 0; max-width: 60ch; }
.sources li { margin-bottom: 0.35rem; }

/* -------------------------------------------------------------------- faq */
.faq { border-top: 1px solid var(--rule); max-width: 74ch; }
.faq__item { border-bottom: 1px solid var(--rule); padding-block: 1.6rem; }
.faq__q { font-size: var(--step-1); margin-bottom: 0.75rem; }
.faq__a { color: var(--slate); }

/* ------------------------------------------------------------ breadcrumbs */
.crumbs {
  font-family: var(--sans); font-size: 0.84rem; color: var(--slate-soft);
  padding-block: 1.1rem; border-bottom: 1px solid var(--rule);
}
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; }
.crumbs li::after { content: "/"; margin-left: 0.5rem; color: var(--rule); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { text-decoration: none; color: var(--slate); }
.crumbs a:hover { color: var(--bronze); }

/* ----------------------------------------------------------- page opener */
.opener { padding-block: clamp(2.75rem, 6vw, 4.75rem) clamp(2rem, 4vw, 3rem); }
.opener h1 { font-size: var(--step-4); max-width: 18ch; font-weight: 400; }
.opener .lede { margin-top: 1.5rem; }

/* ----------------------------------------------------------------- figure */
.figure { margin: 0; }
.figure img { width: 100%; }
.figure figcaption {
  font-family: var(--sans); font-size: var(--step--1); color: var(--slate-soft);
  margin-top: 0.85rem; line-height: 1.6; max-width: 46ch;
}
.figure--framed { position: relative; }
.figure--framed::after {
  content: ""; position: absolute; inset: 0.95rem -0.95rem -0.95rem 0.95rem;
  border: 1px solid var(--bronze); pointer-events: none;
}
@media (max-width: 640px) {
  .figure--framed::after { inset: 0.65rem -0.65rem -0.65rem 0.65rem; }
}
.figure--framed img { position: relative; z-index: 1; }

/* ------------------------------------------------------------------- form */
.form { display: grid; gap: 1.35rem; max-width: 34rem; }
.field { display: grid; gap: 0.5rem; }
.field label { font-family: var(--sans); font-size: 0.9rem; font-weight: 600; }
.field input, .field textarea {
  font-family: var(--sans); font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rule); border-radius: 2px;
  background: var(--porcelain); color: var(--ink);
}
.field input:focus, .field textarea:focus { border-color: var(--bronze); }
.field textarea { min-height: 9rem; resize: vertical; }

/* ----------------------------------------------------------------- footer */
.footer { background: var(--laurel-deep); color: var(--laurel-mist); padding-block: clamp(3.25rem, 6vw, 4.75rem) 2.5rem; }
.footer a { color: var(--laurel-mist); text-decoration: none; }
.footer a:hover { color: var(--bronze-lt); }
.footer__grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}
.footer__brand .emblem { width: 44px; height: auto; flex: none; }
.footer__blurb { margin-top: 1.4rem; font-size: 0.98rem; color: var(--laurel-mist); max-width: 34ch; }
.footer h2 {
  font-family: var(--sans); font-size: 0.86rem; font-weight: 600;
  letter-spacing: 0.04em; color: var(--bronze-lt); margin-bottom: 1.05rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.62rem; }
.footer li { font-family: var(--sans); font-size: 0.94rem; }
.footer__base {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.75rem;
  border-top: 1px solid var(--rule-dark);
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between;
  font-family: var(--sans); font-size: 0.86rem; color: var(--slate-soft);
}
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- utilities */
.stack-lg > * + * { margin-top: clamp(2.5rem, 5vw, 4rem); }
.mt-xl { margin-top: clamp(2.5rem, 5vw, 3.75rem); }
.mt-lg { margin-top: 2.25rem; }
.mt-md { margin-top: 1.5rem; }
.center-narrow { max-width: 46rem; margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Keep the wordmark clear of the menu button on narrow phones */
@media (max-width: 420px) {
  .brand .wordmark > span:first-child { font-size: 1.12rem !important; }
  .brand .wordmark > span:last-child { font-size: .6rem !important; letter-spacing: .1em !important; }
  .brand .emblem { width: 34px; }
  .masthead__inner { min-height: 4.4rem; gap: .75rem; }
}
