/* Fame Maison 2.1.1 — a quiet portrait gallery, wine red and antique gold. */
:root {
  --fm-bg: #f8f6f2;
  --fm-surface: #ffffff;
  --fm-text: #302723;
  --fm-muted: #706660;
  --fm-accent: #6e272b;
  --fm-accent-hover: #521a1e;
  --fm-gold: #866638;
  --fm-line: #ddd5c9;
  --fm-soft: #eee9e1;
  --fm-serif-th: "Noto Serif Thai", "Noto Serif", Georgia, serif;
  --fm-display: "Cormorant Garamond", "Noto Serif Thai", Georgia, serif;
  --fm-sans: "Noto Sans Thai", system-ui, Tahoma, sans-serif;
  --fm-page: 72rem;
  --fm-gutter: 24px;
  --fm-gap: 2rem;
  --fm-header-height: 76px;
  --fm-scroll-thumb: #a79a8d;
  --fm-scroll-hover: #706660;
  --fm-scroll-active: #6e272b;
  --fm-scroll-track: #eee9e1;
  color-scheme: light;
}
@media (min-width: 768px) {
  :root { --fm-gutter: 40px; --fm-gap: 2.75rem; --fm-header-height: 84px; }
}

*, *::before, *::after { box-sizing: border-box; }
* { scrollbar-width: thin; scrollbar-color: var(--fm-scroll-thumb) var(--fm-scroll-track); }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: var(--fm-scroll-track); }
*::-webkit-scrollbar-thumb { background: var(--fm-scroll-thumb); border: 2px solid var(--fm-scroll-track); }
*::-webkit-scrollbar-thumb:hover { background: var(--fm-scroll-hover); }
*::-webkit-scrollbar-thumb:active { background: var(--fm-scroll-active); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--fm-bg);
  color: var(--fm-text);
  font: 400 1rem/1.85 var(--fm-sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; cursor: pointer; }
a:hover { color: var(--fm-accent); }
button, input, textarea, summary { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid var(--fm-accent); outline-offset: 4px; }
h1, h2, h3 { font-family: var(--fm-serif-th); font-weight: 500; line-height: 1.5; margin: 0; letter-spacing: 0; }
p { margin: 0 0 1em; }
::selection { background: var(--fm-accent); color: var(--fm-surface); }
.fm-wrap { width: 100%; max-width: calc(var(--fm-page) + var(--fm-gutter) * 2); margin: 0 auto; padding: 0 var(--fm-gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; padding: .6rem 1rem; background: var(--fm-accent); color: var(--fm-surface); }
.english, [lang="en"].fm-alt { font-family: var(--fm-display); font-style: italic; }
.fm-gold { color: var(--fm-accent); }
.fm-eyebrow { display: inline-block; color: var(--fm-gold); font: 500 .9375rem/1.5 var(--fm-display); letter-spacing: .16em; text-transform: uppercase; }
.fm-orn { height: 1px; margin: 1rem 0 2.5rem; background: var(--fm-line); }
.fm-orn svg { display: none; }
.fm-hair { height: 1px; background: var(--fm-line); }

/* Flat controls, clear labels and visible keyboard focus. */
.fm-btn { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 48px; padding: .8rem 1.5rem; border: 1px solid var(--fm-accent); border-radius: 0; background: var(--fm-accent); color: var(--fm-surface); font: 500 .9375rem/1.5 var(--fm-sans); cursor: pointer; transition: background .18s ease, border-color .18s ease; }
.fm-btn:hover { background: var(--fm-accent-hover); border-color: var(--fm-accent-hover); color: var(--fm-surface); }
.fm-btn svg { width: 18px; height: 18px; }
.fm-btn--ghost { background: transparent; color: var(--fm-accent); }
.fm-btn--ghost:hover { background: var(--fm-soft); color: var(--fm-accent); border-color: var(--fm-accent); }
.fm-btn:disabled { cursor: default; opacity: .55; }
.fm-link { display: inline-flex; align-items: center; gap: .55rem; color: var(--fm-accent); border-bottom: 1px solid var(--fm-line); padding-bottom: 3px; font-weight: 500; }
.fm-link:hover { border-color: var(--fm-accent); }
.fm-link svg { width: 16px; height: 16px; }

/* Every photo frame has square corners; original media and crop ratios stay intact. */
.fm-frame { position: relative; padding: 1px; background: var(--fm-line); border-radius: 0; }
.fm-frame > .fm-frame__in { position: relative; overflow: hidden; height: 100%; background: var(--fm-surface); border-radius: 0; }
.fm-frame--double > .fm-frame__in { padding: 5px; }
.fm-frame__pic { position: relative; overflow: hidden; height: 100%; border-radius: 0; }
.fm-frame--arch, .fm-frame--arch > .fm-frame__in, .fm-frame--arch .fm-frame__pic { border-radius: 0; }
.fm-frame img { width: 100%; height: 100%; object-fit: cover; }
.fm-person:hover .fm-frame, .fm-collection:hover .fm-frame, .fm-album:hover .fm-frame { background: var(--fm-gold); }

/* Masthead. Search keeps a stable width when focused. */
.fm-header { position: sticky; top: 0; z-index: 40; background: var(--fm-surface); border-bottom: 1px solid var(--fm-line); }
.fm-header__bar { display: flex; align-items: center; gap: 1.25rem; min-height: var(--fm-header-height); }
.fm-wordmark { display: inline-flex; align-items: baseline; font: italic 600 2.25rem/1 var(--fm-display); letter-spacing: .01em; white-space: nowrap; }
.fm-wordmark .fm-dot { color: var(--fm-accent); font-style: normal; margin: 0 .04em; }
.fm-wordmark .fm-red { font: 500 .9rem/1 var(--fm-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--fm-accent); margin-left: .1em; font-style: normal; }
.fm-nav { display: none; gap: .25rem; margin-left: 1rem; }
.fm-nav a { position: relative; padding: .7rem .7rem; font-size: .9rem; color: var(--fm-muted); }
.fm-nav a::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .3rem; height: 1px; background: var(--fm-accent); transform: scaleX(0); transition: transform .18s ease; }
.fm-nav a:hover, .fm-nav a[aria-current] { color: var(--fm-accent); }
.fm-nav a:hover::after, .fm-nav a[aria-current]::after { transform: scaleX(1); }
.fm-header__tools { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
.fm-search { position: relative; display: none; align-items: center; }
.fm-search input { width: 13rem; height: 44px; padding: 0 4.5rem 0 .8rem; font: 400 .875rem/1.5 var(--fm-sans); color: var(--fm-text); background: var(--fm-bg); border: 1px solid var(--fm-line); border-radius: 0; }
.fm-search input::placeholder { color: var(--fm-muted); }
.fm-search input:focus { border-color: var(--fm-accent); }
.fm-search__go, .fm-search__clear { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 36px; height: 40px; border: 0; background: transparent; color: var(--fm-accent); cursor: pointer; }
.fm-search__go { right: 2px; }
.fm-search__clear { right: 36px; font-size: 1.25rem; }
.fm-search__go:hover, .fm-search__clear:hover { background: var(--fm-soft); }
.fm-search svg { width: 18px; height: 18px; }
.fm-lang { display: flex; gap: 2px; }
.fm-lang a { display: grid; place-items: center; min-width: 38px; min-height: 44px; font-size: .78rem; font-weight: 500; color: var(--fm-muted); border-bottom: 1px solid transparent; }
.fm-lang a[aria-current], .fm-lang a:hover { color: var(--fm-accent); border-bottom-color: var(--fm-accent); }
.fm-menu { position: relative; }
.fm-menu summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--fm-line); color: var(--fm-accent); background: var(--fm-surface); }
.fm-menu summary:hover { background: var(--fm-soft); }
.fm-menu summary::-webkit-details-marker { display: none; }
.fm-menu summary svg { width: 20px; height: 20px; }
.fm-menu__panel { position: absolute; right: 0; top: calc(100% + 12px); width: min(86vw, 320px); max-height: calc(100dvh - 110px); overflow-y: auto; padding: 1.25rem; background: var(--fm-surface); border: 1px solid var(--fm-line); box-shadow: 0 12px 28px rgb(48 39 35 / 10%); }
.fm-menu__panel nav { display: grid; gap: .25rem; margin-bottom: 1rem; }
.fm-menu__panel nav a { padding: .7rem .5rem; font-size: 1rem; border-bottom: 1px solid var(--fm-line); }
.fm-menu__panel .fm-search { display: flex; }
.fm-menu__panel .fm-search input { width: 100%; }
@media (min-width: 1000px) {
  .fm-nav { display: flex; }
  .fm-header .fm-header__tools > .fm-search { display: flex; }
  .fm-menu { display: none; }
}

.fm-crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 1.5rem 0 0; padding: 0; font-size: .8125rem; color: var(--fm-muted); }
.fm-crumbs li + li::before { content: "/"; color: var(--fm-gold); margin-right: .4rem; }
.fm-crumbs [aria-current] { color: var(--fm-text); }

/* Home: a generous, balanced first screen with no delayed entrance. */
.fm-hero { display: grid; gap: 2.5rem; align-items: center; padding: 3rem 0 2.5rem; }
.fm-hero > div { min-width: 0; }
.fm-hero h1 { font-size: clamp(1.9rem, 8.2vw, 3.5rem); line-height: 1.5; margin: 1rem 0 1.25rem; }
.fm-hero h1 .fm-gold { display: inline; }
.fm-hero__lead { font-size: 1rem; color: var(--fm-muted); max-width: 32rem; }
.fm-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.75rem; }
.fm-hero__stats { display: flex; gap: 1.5rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--fm-line); }
.fm-hero__stats div { flex: 1; min-width: 0; }
.fm-hero__stats strong { display: block; font: 500 2rem/1.2 var(--fm-display); color: var(--fm-text); }
.fm-hero__stats span { display: block; font-size: .75rem; color: var(--fm-muted); margin-top: .35rem; }
.fm-hero__portrait { position: relative; justify-self: center; width: min(100%, 370px); margin: 0; }
.fm-hero__portrait .fm-frame { aspect-ratio: 3 / 4; }
.fm-hero__plaque { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0; padding: .85rem 0; border-bottom: 1px solid var(--fm-line); }
.fm-hero__plaque .english { font-size: 1.5rem; color: var(--fm-text); line-height: 1.2; }
.fm-hero__plaque small { color: var(--fm-muted); font-size: .8rem; }
@media (min-width: 900px) {
  .fm-hero { grid-template-columns: 1.35fr 1fr; gap: 3rem; padding: 4rem 0 3rem; min-height: 0; }
  .fm-hero h1 { font-size: clamp(2.5rem, 4.5vw, 3.5rem); }
  .fm-hero__portrait { justify-self: end; }
  .fm-hero__lead { font-size: 1.0625rem; }
}

.fm-section { margin-top: 4.5rem; }
.fm-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.75rem; }
.fm-head h2 { font-size: clamp(1.6rem, 3.3vw, 2.3rem); }
.fm-head p { margin: .5rem 0 0; color: var(--fm-muted); }
.fm-head--center { flex-direction: column; align-items: flex-start; text-align: left; gap: .5rem; }
.fm-fields { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 0 1.5rem; }
.fm-fields a { padding: .45rem .85rem; font-size: .875rem; color: var(--fm-muted); border: 1px solid var(--fm-line); background: transparent; }
.fm-fields a:hover { color: var(--fm-accent); border-color: var(--fm-accent); }
.fm-fields a[aria-current] { color: var(--fm-surface); background: var(--fm-accent); border-color: var(--fm-accent); }

.fm-people { display: grid; gap: 2rem 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fm-person { position: relative; min-width: 0; text-align: left; }
.fm-person .fm-frame { aspect-ratio: 3 / 4; margin-bottom: 1rem; }
.fm-person h2, .fm-person h3 { font-size: 1rem; line-height: 1.65; overflow-wrap: anywhere; }
.fm-person h2 a::after, .fm-person h3 a::after { content: ""; position: absolute; inset: 0; }
.fm-person:focus-within .fm-frame { outline: 2px solid var(--fm-accent); outline-offset: 4px; }
.fm-person__role { margin: .3rem 0 0; font-size: .75rem; color: var(--fm-gold); }
.fm-person .english { display: block; margin-top: .15rem; font-size: 1rem; color: var(--fm-muted); }
.fm-monogram { display: grid; place-items: center; width: 100%; height: 100%; background: var(--fm-soft); color: var(--fm-accent); text-align: center; padding: .75rem; }
.fm-monogram span { font: 500 clamp(3rem, 8vw, 5rem)/1.5 var(--fm-serif-th); }
.fm-monogram small { display: block; margin-top: .5rem; font-size: .65rem; color: var(--fm-muted); overflow-wrap: anywhere; }
@media (min-width: 760px) {
  .fm-people { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.75rem 1.75rem; }
  .fm-person h2, .fm-person h3 { font-size: 1.2rem; }
}
@media (min-width: 1080px) { .fm-people { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.fm-collections { display: grid; gap: 2.25rem 1.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr)); }
.fm-collection { position: relative; min-width: 0; }
.fm-collection .fm-frame { aspect-ratio: 4 / 3; }
.fm-collection__covers { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; height: 100%; }
.fm-collection__covers > :only-child { grid-column: 1 / -1; grid-row: 1 / -1; }
.fm-collection__covers > :first-child:not(:only-child), .fm-collection__covers > :nth-child(2):last-child { grid-row: 1 / -1; }
.fm-collection__covers img { width: 100%; height: 100%; object-fit: cover; }
.fm-collection__body { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0 0; }
.fm-collection h2, .fm-collection h3 { font-size: 1.25rem; }
.fm-collection h2 a::after, .fm-collection h3 a::after { content: ""; position: absolute; inset: 0; }
.fm-collection__count { margin: .25rem 0 0; font-size: .82rem; color: var(--fm-muted); }
.fm-collection__go { display: grid; place-items: center; flex: none; width: 44px; height: 44px; color: var(--fm-accent); border: 1px solid var(--fm-line); }
.fm-collection__go svg { width: 18px; height: 18px; }
.fm-collection:hover .fm-collection__go { background: var(--fm-accent); color: var(--fm-surface); border-color: var(--fm-accent); }
.fm-albums { display: grid; gap: 2rem 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fm-album { position: relative; min-width: 0; }
.fm-album .fm-frame { aspect-ratio: 1; margin-bottom: 1rem; }
.fm-album__count { position: absolute; right: .6rem; bottom: .6rem; z-index: 2; padding: .2rem .6rem; font-size: .75rem; color: var(--fm-surface); background: var(--fm-accent); }
.fm-album__meta { display: flex; flex-wrap: wrap; gap: .6rem; font-size: .75rem; color: var(--fm-gold); }
.fm-album h2, .fm-album h3 { margin-top: .35rem; font-size: 1.0625rem; line-height: 1.6; }
.fm-album h2 a::after, .fm-album h3 a::after { content: ""; position: absolute; inset: 0; }
.fm-album__person { position: relative; z-index: 2; display: inline-block; margin-top: .35rem; font-size: .82rem; color: var(--fm-muted); }
@media (min-width: 760px) { .fm-albums { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .fm-albums { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.fm-plaque { padding: clamp(1.5rem, 4vw, 3rem); background: var(--fm-surface); border: 1px solid var(--fm-line); }
.fm-values { display: grid; gap: 2.75rem; align-items: center; }
.fm-values h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); line-height: 1.5; }
.fm-values p { color: var(--fm-muted); margin-top: 1rem; }
.fm-values dl { display: grid; gap: 1.75rem; margin: 0; }
.fm-values dt { display: flex; align-items: center; gap: .9rem; font: 500 1.0625rem/1.6 var(--fm-serif-th); }
.fm-values dd { margin: .4rem 0 0 calc(40px + .9rem); font-size: .9rem; color: var(--fm-muted); }
.fm-medal { display: grid; place-items: center; flex: none; width: 40px; height: 40px; color: var(--fm-gold); background: var(--fm-bg); border: 1px solid var(--fm-line); }
.fm-medal svg { width: 20px; height: 20px; }
@media (min-width: 600px) { .fm-values dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .fm-values { grid-template-columns: .9fr 1.1fr; } }

.fm-archive-head { padding: 3rem 0 2.5rem; text-align: center; }
.fm-archive-head h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin: .75rem 0 1rem; }
.fm-archive-head p { max-width: 40rem; margin: 0 auto; color: var(--fm-muted); font-size: 1rem; }
.fm-archive-head .fm-fields { justify-content: center; margin-top: 1.75rem; }
.fm-count { margin: 0 0 1.75rem; font-size: .875rem; color: var(--fm-muted); text-align: center; }

/* Biography: readable measure, calm facts and matching portrait frame. */
.fm-profile-open { display: grid; gap: 2.5rem; align-items: center; padding: 2.5rem 0; }
.fm-profile-open__portrait { width: min(100%, 360px); margin: 0; justify-self: center; }
.fm-profile-open__portrait .fm-frame { aspect-ratio: 3 / 4; }
.fm-profile-open__portrait figcaption { margin-top: 1rem; font-size: .75rem; color: var(--fm-muted); }
.fm-profile-open__portrait figcaption a { color: var(--fm-accent); }
.fm-profile-open h1 { font-size: clamp(2rem, 5.5vw, 3.5rem); line-height: 1.5; margin: .5rem 0; }
.fm-profile-open .fm-alt-name { font: italic 500 1.5rem/1.5 var(--fm-display); color: var(--fm-muted); }
.fm-profile-open .fm-role { font-size: .8rem; color: var(--fm-gold); }
.fm-profile-open .fm-summary { font-size: 1rem; color: var(--fm-muted); margin-top: 1.25rem; max-width: 38rem; }
.fm-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 1.75rem 0 0; border-top: 1px solid var(--fm-line); }
.fm-facts > div { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--fm-line); }
.fm-facts > div:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--fm-line); }
.fm-facts dt { font-size: .75rem; color: var(--fm-muted); }
.fm-facts dd { margin: .35rem 0 0; font-size: 1.0625rem; }
.fm-socials { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }
.fm-socials a { padding: .5rem .85rem; font-size: .85rem; color: var(--fm-accent); border: 1px solid var(--fm-line); }
.fm-socials a:hover { border-color: var(--fm-accent); background: var(--fm-soft); }
@media (min-width: 900px) { .fm-profile-open { grid-template-columns: .8fr 1.2fr; gap: 4rem; } .fm-profile-open__portrait { justify-self: start; } }
.fm-tabs { position: sticky; top: var(--fm-header-height); z-index: 30; margin: 1.5rem 0 2.75rem; background: var(--fm-bg); border-top: 1px solid var(--fm-line); border-bottom: 1px solid var(--fm-line); }
.fm-tabs nav { display: flex; gap: .25rem; overflow-x: auto; }
.fm-tabs a { flex: none; padding: .9rem 1rem; font-size: .9rem; color: var(--fm-muted); border-bottom: 2px solid transparent; }
.fm-tabs a:hover, .fm-tabs a.is-active { color: var(--fm-accent); border-bottom-color: var(--fm-accent); }
.fm-profile-body { display: grid; gap: 3rem; }
@media (min-width: 980px) { .fm-profile-body { grid-template-columns: minmax(0, 1fr) 19rem; } .fm-profile-body > aside { position: sticky; top: 150px; align-self: start; } }
.fm-block { scroll-margin-top: 160px; }
.fm-block + .fm-block { margin-top: 3rem; }
.fm-block > h2, .fm-block .fm-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1.5rem; }
.fm-block > h2::after { content: ""; display: block; width: 48px; height: 1px; margin-top: .9rem; background: var(--fm-gold); }
.fm-prose { font-size: 1rem; line-height: 2; color: var(--fm-text); max-width: 44rem; overflow-wrap: anywhere; }
.fm-prose > * + * { margin-top: 1.15em; }
.fm-prose p { margin: 0; }
.fm-prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.fm-prose h3 { font-size: 1.25rem; margin-top: 1.5em; }
.fm-prose a { color: var(--fm-accent); border-bottom: 1px solid var(--fm-line); }
.fm-prose blockquote { margin: 1.75em 0; padding: 0 0 0 1.5rem; border-left: 2px solid var(--fm-gold); font-size: 1.125rem; }
.fm-prose ul, .fm-prose ol { padding-left: 1.4rem; }
.fm-prose li::marker { color: var(--fm-gold); }
.fm-aside h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.fm-aside dl { margin: 0; }
.fm-aside dl > div { padding: .75rem 0; border-bottom: 1px solid var(--fm-line); }
.fm-aside dt { font-size: .75rem; color: var(--fm-muted); }
.fm-aside dd { margin: .3rem 0 0; overflow-wrap: anywhere; }
.fm-aside h3 { font-size: 1rem; margin: 1.5rem 0 .6rem; }
.fm-aside .fm-note { margin-top: 1rem; }
.fm-field-link { display: flex; justify-content: space-between; padding: .55rem 0; color: var(--fm-accent); border-bottom: 1px solid var(--fm-line); }
.fm-timeline { list-style: none; margin: 0; padding: 0 0 0 1.75rem; position: relative; }
.fm-timeline::before { content: ""; position: absolute; left: 5px; top: .6rem; bottom: .6rem; width: 1px; background: var(--fm-line); }
.fm-timeline > li { position: relative; padding-bottom: 2rem; }
.fm-timeline > li::before { content: ""; position: absolute; left: calc(-1.75rem + 1px); top: .55rem; width: 9px; height: 9px; background: var(--fm-gold); }
.fm-timeline time { display: block; font: 500 1.0625rem/1.6 var(--fm-sans); color: var(--fm-accent); }
.fm-timeline h3 { margin: .35rem 0 .25rem; font-size: 1.125rem; }
.fm-timeline p { margin: 0 0 .5rem; color: var(--fm-muted); font-size: .95rem; }
.fm-works { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.fm-works a { display: inline-block; padding: .35rem .65rem; font-size: .82rem; border: 1px solid var(--fm-line); color: var(--fm-muted); }
.fm-works a:hover { border-color: var(--fm-accent); color: var(--fm-accent); }
.fm-more summary { margin-top: .6rem; color: var(--fm-accent); font-size: .85rem; }
.fm-list { display: grid; gap: .6rem; }
.fm-list a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; background: var(--fm-surface); border: 1px solid var(--fm-line); }
.fm-list a:hover { border-color: var(--fm-accent); }
.fm-list small { display: block; color: var(--fm-muted); font-size: .78rem; overflow-wrap: anywhere; }
.fm-list .fm-arrow { color: var(--fm-accent); flex: none; font-size: .85rem; }
.fm-note { font-size: .85rem; color: var(--fm-muted); }

/* Albums and accessible full-size viewer. */
.fm-album-open { max-width: 46rem; margin: 0 auto; padding: 2.5rem 0; text-align: center; }
.fm-album-open h1 { font-size: clamp(1.8rem, 5vw, 3rem); margin: 1rem 0; }
.fm-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 1.5rem; }
.fm-chips span { padding: .3rem .75rem; font-size: .78rem; color: var(--fm-muted); border: 1px solid var(--fm-line); }
.fm-album-open .fm-prose { margin: 0 auto 1.5rem; text-align: left; }
.fm-hint { text-align: center; font-size: .875rem; color: var(--fm-muted); margin-bottom: 1.5rem; }
.fm-photos { columns: 2 12rem; column-gap: 1rem; }
@media (min-width: 900px) { .fm-photos { columns: 3 16rem; column-gap: 1.5rem; } }
.fm-photos figure { break-inside: avoid; margin: 0 0 1.5rem; }
.fm-photos a.fm-photo { display: block; cursor: zoom-in; }
.fm-photos a.fm-photo:hover { outline: 1px solid var(--fm-gold); }
.fm-photos figcaption { padding: .8rem .1rem 0; font-size: .85rem; line-height: 1.7; }
.fm-photos .fm-photo-credit { display: block; color: var(--fm-muted); font-size: .78rem; }
.fm-photos .fm-photo-links { display: flex; gap: 1rem; margin-top: .2rem; font-size: .78rem; }
.fm-photos .fm-photo-links a { color: var(--fm-accent); }
.fm-viewer { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; border-radius: 0; color: var(--fm-text); background: var(--fm-bg); }
.fm-viewer::backdrop { background: rgb(48 39 35 / 70%); }
.fm-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.fm-viewer__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem var(--fm-gutter); }
.fm-viewer__bar h2 { font: 500 1.125rem/1.5 var(--fm-display); color: var(--fm-accent); }
.fm-viewer__stage { display: grid; place-items: center; min-height: 0; overflow: hidden; padding: 0 var(--fm-gutter); }
.fm-viewer__stage img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.fm-viewer__foot { display: grid; gap: .5rem; justify-items: center; padding: 1rem var(--fm-gutter) max(1rem, env(safe-area-inset-bottom)); text-align: center; max-height: 36dvh; overflow-y: auto; }
.fm-viewer__nav { display: flex; align-items: center; gap: 1.25rem; }
.fm-viewer__nav p { margin: 0; min-width: 5rem; font-size: .9rem; }
.fm-circle { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--fm-line); border-radius: 0; background: var(--fm-surface); color: var(--fm-accent); font-size: 1.1rem; cursor: pointer; }
.fm-circle:hover { background: var(--fm-accent); color: var(--fm-surface); border-color: var(--fm-accent); }
.fm-viewer__caption { margin: 0; max-width: 46rem; }
.fm-viewer__credit { margin: 0; font-size: .8rem; color: var(--fm-muted); }
.fm-viewer__links { display: flex; gap: 1.25rem; font-size: .82rem; }
.fm-viewer__links a { color: var(--fm-accent); }

.fm-pagination { margin-top: 3rem; }
.fm-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.fm-pagination a, .fm-pagination span { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 1rem; border: 1px solid var(--fm-line); font-size: .9rem; }
.fm-pagination a:hover { border-color: var(--fm-accent); }
.fm-pagination .current { color: var(--fm-surface); background: var(--fm-accent); border-color: var(--fm-accent); }
.fm-empty { max-width: 36rem; margin: 3rem auto; text-align: center; }
.fm-empty h1, .fm-empty h2 { font-size: clamp(1.75rem, 5vw, 2.75rem); margin: .75rem 0; }
.fm-empty p { color: var(--fm-muted); margin-bottom: 1.75rem; }
.fm-big-num { font: 500 clamp(5rem, 18vw, 9rem)/1 var(--fm-display); }
.fm-about { max-width: 46rem; margin: 0 auto; }
.fm-about .fm-prose { margin: 0 auto; }
.fm-form { display: grid; gap: .5rem; margin-top: 1.5rem; }
.fm-form label { font-size: .875rem; color: var(--fm-text); margin-top: .75rem; }
.fm-form input, .fm-form textarea { width: 100%; padding: .85rem 1rem; font: inherit; color: var(--fm-text); background: var(--fm-surface); border: 1px solid var(--fm-line); border-radius: 0; }
.fm-form input:focus, .fm-form textarea:focus { border-color: var(--fm-accent); }
.fm-form [aria-invalid="true"] { border-color: var(--fm-accent); }
.fm-form .fm-btn { justify-self: start; margin-top: 1rem; }
.fm-feedback { padding: 1rem; border: 1px solid var(--fm-line); background: var(--fm-surface); }

.fm-footer { margin-top: 5rem; padding: 3rem 0 2rem; background: var(--fm-surface); border-top: 1px solid var(--fm-line); }
.fm-footer__top { display: grid; gap: 2rem; align-items: start; }
.fm-footer__motto { margin: .75rem 0 0; font-size: .9375rem; color: var(--fm-muted); max-width: 24rem; }
.fm-footer nav { display: flex; flex-wrap: wrap; gap: .75rem 2rem; }
.fm-footer nav a { color: var(--fm-muted); font-size: .9rem; }
.fm-footer nav a:hover { color: var(--fm-accent); }
.fm-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--fm-line); font-size: .8rem; color: var(--fm-muted); }
@media (min-width: 860px) { .fm-footer__top { grid-template-columns: 1fr auto; } }
@media (max-width: 599px) {
  .fm-header__bar { gap: .5rem; }
  .fm-header__tools { gap: .4rem; }
  .fm-wordmark { font-size: 2rem; }
  .fm-wordmark .fm-red { font-size: .75rem; }
  .fm-hero { padding-top: 2.25rem; }
  .fm-hero__actions { gap: 1rem; }
  .fm-hero__actions .fm-btn { padding-left: 1.1rem; padding-right: 1.1rem; }
  .fm-hero__stats { gap: .8rem; }
  .fm-section { margin-top: 3.5rem; }
  .fm-head { align-items: flex-start; }
  .fm-values dd { margin-left: 0; }
  .fm-archive-head { padding-top: 2rem; }
  .fm-viewer__foot { font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  * { scrollbar-color: auto; }
  .fm-btn, .fm-lang a[aria-current], .fm-circle, .fm-frame, .fm-fields a { border: 1px solid ButtonText; }
  .fm-gold { color: LinkText; }
}
@media print {
  body { background: white; color: black; }
  .fm-header, .fm-tabs, .fm-footer { display: none !important; }
  .fm-gold { color: black; }
}
