@font-face {
  font-family: "Barlow Condensed";
  src: url("/site/modules/BedlineHome/assets/BarlowCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --pine: #172e26;
  --dark: #12261f;
  --forest: #264a3b;
  --paper: #faf7ee;
  --white: #fffdf7;
  --ink: #20382d;
  --muted: #4d6157;
  --gold: #f4cc78;
  --gold-ink: #79541b;
  --border: #ccd3c6;
  --soft: #e9eee4;
  --display: "Barlow Condensed", Impact, "Arial Narrow", sans-serif;
  --body: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  color-scheme: light;
  font: 16px/1.58 var(--body);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #a56a26; outline-offset: 3px; }
.skip { position: fixed; z-index: 10; top: 8px; left: 8px; transform: translateY(-180%); padding: .6em 1em; background: var(--white); color: var(--ink); }
.skip:focus { transform: none; }
.wrap { width: min(1150px,calc(100% - 80px)); margin-inline: auto; }
.mast, .site-foot { background: var(--dark); color: var(--white); }
.mast-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.mast nav, .site-foot nav { display: flex; flex-wrap: wrap; gap: .55em 1.42em; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.42rem/1 var(--display); text-decoration: none; text-transform: uppercase; letter-spacing: .025em; width: max-content; }
.brand img { flex: 0 0 auto; }
.mast nav a, .site-foot nav a { font-size: .91rem; text-decoration: none; }
.mast nav a:hover, .site-foot nav a:hover { text-decoration: underline; }

.answer { padding: 16px 0 28px; border-top: 4px solid var(--gold); }
.breadcrumb { display: flex; gap: .55em; flex-wrap: wrap; align-items: center; margin-bottom: clamp(13px,2vw,29px); font-size: .82rem; color: var(--muted); }
.dictionary-hero { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: clamp(24px, 4.25vw, 62px); align-items: center; }
.definition { border-left: 4px solid var(--gold); padding-left: clamp(12px,2.4vw,25px); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font: 700 1rem/.99 var(--display); letter-spacing: -.01em; }
h1 { font-size: clamp(3.35rem, 6.2vw, 6.35rem); max-width: 12ch; margin-bottom: 16px; }
h2 { font-size: clamp(2.5rem, 4.5vw, 4.05rem); }
h3 { font-size: clamp(1.55rem, 2.9vw, 2.3rem); }
h2 em { font-style: normal; }
.definition-lead { margin-bottom: .68em; font-size: clamp(1.04rem,1.55vw,1.25rem); font-weight: 700; line-height: 1.45; }
.definition-lead + p { color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .56em .91em; font-size: .88rem; font-weight: 700; line-height: 1.15; border: 1px solid transparent; border-radius: 3px; text-decoration: none; }
.button.primary { background: var(--gold); color: var(--dark); }
.button.primary:hover { background: #ffdf98; }
.button.secondary { border-color: #738678; }
.button.secondary:hover { background: #e7e9df; }
.hero-photo { margin: 0; background: #ebece1; }
.hero-photo > img { width: 100%; aspect-ratio: 1.56; object-fit: cover; object-position: 71% 52%; }
.hero-photo figcaption { padding: 8px 12px; color: var(--muted); font-size: .84rem; border-bottom: 1px solid var(--border); }
.word-panel { margin-top: 28px; background: var(--soft); border: 1px solid var(--border); display: grid; grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr); gap: 12px 22px; padding: clamp(14px, 2.35vw, 27px); scroll-margin-top: 16px; }
.word-copy h2 { font-size: clamp(2rem,3.3vw,3.05rem); }
.spelling { margin: .45em 0 .2em; font-size: clamp(1.27rem,2.05vw,1.6rem); font-weight: 700; letter-spacing: .055em; color: var(--gold-ink); }
.word-copy p:last-child { color: var(--muted); font-size: .95rem; }
.audio-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px 16px; }
.audio-pair > div { min-width: 0; margin: 0; border-left: 2px solid var(--border); padding-left: 12px; }
.audio-pair h3 { font-size: clamp(1.65rem,3vw,2.4rem); }
.audio-pair p { margin: .25em 0 .55em; font-size: .86rem; color: var(--muted); }
audio { width: 100%; min-width: 0; max-width: 300px; height: 42px; display: block; }
.word-source { grid-column: 1 / -1; font-size: .87rem; border-top: 1px solid var(--border); padding-top: 8px; color: var(--muted); }

.stage { padding-block: clamp(33px,5.2vw,67px); scroll-margin-top: 15px; }
.intro { max-width: 66ch; margin-top: 10px; font-size: 1.07rem; color: var(--muted); }
.recognition { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; margin-top: 21px; }
.recognition article { min-width: 0; border: 1px solid var(--border); background: var(--white); }
.recognition img { width: 100%; aspect-ratio: 820 / 362; object-fit: contain; }
.recognition article > div { padding: 13px 15px 15px; }
.recognition h3 { font-size: clamp(1.5rem,2.5vw,2.05rem); }
.recognition p { margin: 7px 0 9px; color: var(--muted); }
.recognition a { font-size: .92rem; font-weight: 700; }
.case-band { background: var(--soft); border-block: 1px solid var(--border); }
.case-list { display: grid; gap: 1px; margin-top: 22px; background: var(--border); border: 1px solid var(--border); }
.scenario { display: grid; grid-template-columns: minmax(0,.5fr) minmax(0,1.5fr); align-items: start; gap: clamp(12px,2vw,25px); padding: 14px; background: var(--white); }
.scenario img { width: 100%; aspect-ratio: 1.9; object-fit: cover; }
.scenario h3 + p { margin: 7px 0; color: var(--muted); }
.scenario details { margin-top: 10px; border-top: 1px solid #e0e7dd; padding-top: 7px; }
.scenario summary { cursor: pointer; font-weight: 700; }
.scenario details p { color: var(--muted); margin-top: 7px; max-width: 78ch; }
.shop-row { margin-top: 17px; padding: 10px 0 2px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 17px; }
.shop-row p { max-width: 70ch; }
.next-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 18px; gap: 14px; }
.next-list a { display: flex; gap: 10px; min-height: 49px; justify-content: space-between; align-items: center; font-weight: 700; padding: 10px 0; border-top: 2px solid #9bad9d; }
.next-list span:last-child { color: var(--gold-ink); flex: 0 0 auto; }
.further-reading { font-size: .87rem; color: var(--muted); margin-top: 15px; }
.site-foot { padding-block: 10px; }

@media (max-width: 960px) {
  .wrap { width: calc(100% - 48px); }
  .dictionary-hero { gap: 18px; }
  .word-panel { grid-template-columns: minmax(0,.79fr) minmax(0,1.21fr); gap: 9px; }
  .audio-pair > div { padding-left: 8px; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 28px); }
  .mast-inner, .footer-inner { align-items: start; flex-direction: column; gap: 10px; padding-block: 12px; }
  .mast nav, .site-foot nav { gap: .43em .88em; }
  .mast nav a, .site-foot nav a { font-size: .84rem; }
  .dictionary-hero, .word-panel { grid-template-columns: minmax(0,1fr); }
  .hero-photo > img { aspect-ratio: 1.78; }
  .word-panel { margin-top: 18px; gap: 11px; }
  .recognition { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .recognition img { aspect-ratio: 2.75; object-position: center; background: #e8eee1; }
  .scenario { grid-template-columns: minmax(0,.68fr) minmax(0,1.32fr); gap: 10px; }
  .next-list { grid-template-columns: minmax(0,1fr); gap: 1px; }
}
@media (max-width: 410px) {
  .audio-pair { gap: 13px; grid-template-columns: minmax(0,1fr); }
  .audio-pair h3 { font-size: 1.8rem; }
  .scenario { grid-template-columns: minmax(0,1fr); }
  .scenario img { aspect-ratio: 2.3; }
  .recognition img { aspect-ratio: 820 / 362; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
