/* Hallmark · macro: 08 Photographic · nav: N4 (an sau lop mo rong) · footer: Ft5 Statement · hero: H5 Letter hero · theme: olive photographic letter · hue: 102.5 · corner: 12px · density: vua · knob-delta: nav-scroll-5hub-always-visible footer-col2-statement-bottom hero-letter-editorial · pre-emit P4 H5 E4 S5 R4 V5 · contrast: pass · slop: pass · mobile: 320/375/414/768 pass */

:root {
  --color-paper: oklch(97.5% 0.012 102.5);
  --color-paper-2: oklch(94.5% 0.018 102.5);
  --color-ink: oklch(18% 0.03 102.5);
  --color-ink-soft: oklch(32% 0.025 102.5);
  --color-muted: oklch(48% 0.025 102.5);
  --color-line: oklch(86% 0.018 102.5);
  --color-accent: oklch(48% 0.17 48);
  --color-accent-ink: oklch(98% 0.01 48);
  --color-ok: oklch(65% 0.16 142);
  --color-danger: oklch(52% 0.22 28);
  --color-focus: oklch(45% 0.22 305);

  --font-display: 'Anton', 'Google Sans', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Thai Looped', system-ui, sans-serif;

  --space-xs: 0.25rem;
  --space-s: 0.5rem;
  --space-m: 1rem;
  --space-l: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;

  --text-xs: 0.8125rem;
  --text-s: 0.9375rem;
  --text-m: 1.0625rem;
  --text-l: 1.3125rem;
  --text-xl: 1.75rem;
  --text-display: clamp(2.25rem, 5vw + 1rem, 3.75rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --dur-fast: 120ms;
  --dur-base: 220ms;
  --dur-slow: 400ms;

  --rule: 1px solid var(--color-line);
  --radius: 12px;
}

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

html, body {
  overflow-x: clip;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-m);
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-ink);
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  overflow-wrap: anywhere;
  min-width: 0;
  color: var(--color-ink);
  margin-top: 0;
}

header.nav {
  position: sticky;
  top: 0;
  z-index: 300;
  background-color: var(--color-paper);
  border-bottom: var(--rule);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  max-width: 75rem;
  margin: 0 auto;
  padding: var(--space-s) var(--space-m);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.nav-inner::-webkit-scrollbar {
  display: none;
}

.nav-inner a {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-s);
  font-weight: 500;
  color: var(--color-ink-soft);
  text-decoration: none;
  white-space: nowrap;
  padding: var(--space-xs) var(--space-s);
  border-radius: var(--radius);
  line-height: 1;
  transition: opacity var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.nav-inner a:first-child {
  font-family: var(--font-display);
  font-size: var(--text-l);
  font-weight: 400;
  color: var(--color-ink);
  padding-left: 0;
}

.nav-inner a:hover {
  color: var(--color-ink);
}

.nav-inner a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 1px;
}

.nav-inner a[aria-current="page"] {
  color: var(--color-ink);
  background-color: var(--color-paper-2);
  font-weight: 700;
}

.wrap {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--space-l);
  row-gap: var(--space-l);
  max-width: 75rem;
  margin: 0 auto;
  padding-left: var(--space-m);
  padding-right: var(--space-m);
  width: 100%;
}

.col-12 > .wrap,
.wrap .wrap {
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
  width: 100%;
}

.col-3 {
  grid-column: span 3;
}

.col-4 {
  grid-column: span 4;
}

.col-6 {
  grid-column: span 6;
}

.col-12 {
  grid-column: span 12;
}

.wrap > .col-6:only-child {
  grid-column: 4 / span 6;
}

section.hero {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-2xl);
  border-bottom: var(--rule);
  background-color: var(--color-paper);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-display);
  line-height: 1.1;
  color: var(--color-ink);
  margin-top: var(--space-s);
  margin-bottom: var(--space-m);
}

.hero p {
  font-size: var(--text-l);
  color: var(--color-ink-soft);
  line-height: 1.8;
  max-width: 65ch;
  margin-top: 0;
  margin-bottom: var(--space-l);
}

.crumb-nav p {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin: 0;
  line-height: 1.4;
}

.crumb-nav a {
  color: var(--color-muted);
  text-decoration: none;
  white-space: nowrap;
}

.crumb-nav a:hover {
  color: var(--color-ink);
}

.crumb-nav a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 1px;
}

.crumb-sep {
  color: var(--color-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: var(--space-s) var(--space-l);
  font-family: var(--font-body);
  font-size: var(--text-s);
  font-weight: 700;
  line-height: 1;
  color: var(--color-accent-ink);
  background-color: var(--color-accent);
  border: var(--rule);
  border-color: var(--color-accent);
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.btn:hover:not(:disabled):not([disabled]):not([aria-disabled="true"]):not([aria-busy="true"]) {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.btn:active:not(:disabled):not([disabled]):not([aria-disabled="true"]) {
  transform: translateY(0);
  opacity: 0.98;
}

.btn:disabled,
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.btn[aria-busy="true"] {
  opacity: 0.75;
  cursor: wait;
}

.btn[data-state="error"] {
  background-color: var(--color-danger);
  border-color: var(--color-danger);
  color: var(--color-accent-ink);
}

.btn[data-state="success"] {
  background-color: var(--color-ok);
  border-color: var(--color-ok);
  color: var(--color-accent-ink);
}

section.section {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: var(--rule);
}

.section h2 {
  font-size: var(--text-xl);
  line-height: 1.2;
  margin-bottom: var(--space-m);
}

.section h3 {
  font-size: var(--text-l);
  line-height: 1.3;
  margin-top: var(--space-l);
  margin-bottom: var(--space-s);
}

.section p {
  margin-top: 0;
  margin-bottom: var(--space-m);
  color: var(--color-ink-soft);
  max-width: 70ch;
}

.section ul {
  margin-top: 0;
  margin-bottom: var(--space-l);
  padding-left: var(--space-l);
  color: var(--color-ink-soft);
}

.section li {
  margin-bottom: var(--space-xs);
}

.section table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-l);
  margin-bottom: var(--space-l);
  font-variant-numeric: tabular-nums;
}

.section th,
.section td {
  padding: var(--space-s) var(--space-m);
  border-bottom: var(--rule);
  text-align: left;
}

.section th {
  background-color: var(--color-paper-2);
  color: var(--color-ink);
  font-weight: 700;
}

.section td {
  color: var(--color-ink-soft);
}

.fig {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--color-paper-2);
  border: var(--rule);
}

.fig-1x1 {
  aspect-ratio: 1 / 1;
}

.fig-portrait {
  aspect-ratio: 0.74;
}

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

a.card {
  display: flex;
  flex-direction: column;
  padding: var(--space-l);
  background-color: var(--color-paper-2);
  border: var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

a.card:hover {
  transform: translateY(-2px);
  border-color: var(--color-muted);
}

a.card:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

a.card h3 {
  font-size: var(--text-l);
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: var(--space-s);
  color: var(--color-ink);
}

a.card p {
  font-size: var(--text-s);
  line-height: 1.8;
  margin: 0;
  color: var(--color-ink-soft);
}

.wrap > .col-12 > p a {
  color: var(--color-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wrap > .col-12 > p a:hover {
  color: var(--color-accent);
}

.wrap > .col-12 > p a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 1px;
}

footer.footer {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-xl);
  background-color: var(--color-paper-2);
  border-top: var(--rule);
}

.footer .col-4 {
  grid-column: span 6;
}

.footer h3 {
  font-family: var(--font-display);
  font-size: var(--text-s);
  letter-spacing: 0.04em;
  color: var(--color-ink);
  margin-bottom: var(--space-s);
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li {
  margin-bottom: var(--space-xs);
}

.footer a {
  color: var(--color-ink-soft);
  text-decoration: none;
  font-size: var(--text-s);
  transition: color var(--dur-fast) var(--ease-out);
}

.footer a:hover {
  color: var(--color-ink);
}

.footer a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 1px;
}

.footer-meta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-m);
  padding-top: var(--space-l);
  border-top: var(--rule);
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.footer-meta span a {
  color: var(--color-muted);
  font-size: var(--text-xs);
}

.footer-meta span a:hover {
  color: var(--color-ink);
}

.fade-up {
  opacity: 1;
  transform: none;
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .fade-up {
      animation: reveal-fade var(--dur-slow) var(--ease-out) both;
      animation-timeline: view();
      animation-range: entry 10% cover 25%;
    }
  }
}

@keyframes reveal-fade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 48rem) {
  .wrap {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--space-m);
    padding-left: var(--space-s);
    padding-right: var(--space-s);
  }

  .col-3,
  .col-4,
  .col-6,
  .col-12 {
    grid-column: span 1;
  }

  .wrap > .col-6:only-child {
    grid-column: span 1;
  }

  .footer .col-4 {
    grid-column: span 1;
  }

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }

  .nav-inner {
    gap: var(--space-s);
    padding-left: var(--space-s);
    padding-right: var(--space-s);
  }
}

@media (min-width: 48.0625rem) and (max-width: 64rem) {
  .col-3 {
    grid-column: span 6;
  }

  .col-4 {
    grid-column: span 6;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.crumb-nav{font-size:var(--text-xs);color:var(--color-muted);margin-bottom:var(--space-m)}
.crumb-nav a{color:inherit;border-bottom:1px solid currentColor}
.crumb-nav a:hover{color:var(--color-accent)}
.crumb-sep{opacity:.6;padding-inline:var(--space-xs)}
dl{display:grid;gap:var(--space-s)}
dt{font-weight:600;margin-top:var(--space-m)}
dd{color:var(--color-ink-soft)}
