:root {
  --page: #fcfbf7;
  --cream: #f7f1e7;
  --ink: #45352d;
  --muted: #675e55;
  --accent: #94543d;
  --line: #e2d7ca;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 1rem/1.75 system-ui, sans-serif; }
.wrap { width: min(90%, 1120px); margin-inline: auto; }
header { position: sticky; top: 0; z-index: 3; background: var(--cream); border-bottom: 1px solid var(--line); }
.bar { min-height: 79px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { font: bold 1.42rem/1.05 Georgia, serif; white-space: nowrap; }
.brand small { display: block; margin-top: .45rem; letter-spacing: .20em; color: var(--accent); font: 600 .63rem/1 system-ui, sans-serif; letter-spacing: .20em; }
nav { display: flex; gap: clamp(.65rem, 1.45vw, 1.4rem); flex-wrap: wrap; font-size: .88rem; }
a { color: inherit; text-underline-offset: .24em; }
nav a, .brand, .button { text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--accent); text-decoration: underline; }
#menu { display: none; }
.skip { position: fixed; top: 0; left: 1rem; z-index: 5; background: white; padding: .5rem; transform: translateY(-110%); }
.skip:focus { transform: none; }
.hero { min-height: clamp(550px, 62vw, 690px); display: grid; align-items: center; color: white; background: linear-gradient(90deg,#241b14c9,#261a1280 64%,#261a1266), url("assets/binh-minh.jpg") center 52% / cover, #49382a; }
.hero-inner { width: min(86%, 850px); margin-inline: auto; padding-block: 4rem; }
.eyebrow { margin: 0 0 .85rem; font-size: .78rem; letter-spacing: .2em; color: var(--accent); font-weight: 600; }
.hero .eyebrow { color: #fff4e5; margin-bottom: 1.3rem; }
h1,h2,h3,.tagline { font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.16; margin: 0; }
h1 { font-size: clamp(2.75rem, 7.3vw, 5.9rem); letter-spacing: .025em; }
.tagline { font-size: clamp(1.5rem, 3.4vw, 2.4rem); font-style: italic; margin-top: 1rem; }
.intro { max-width: 670px; color: #fff9ef; margin: 1.05rem 0 1.6rem; }
button,.button { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: white; border: 1px solid var(--accent); border-radius: 99px; padding: .62rem 1.24rem; min-height: 44px; font: inherit; cursor: pointer; }
button:hover,.button:hover { background: #783e2a; color: white; }
:focus-visible { outline: 3px solid #507549; outline-offset: 4px; }
section { padding-block: clamp(3.5rem, 7.1vw, 6.5rem); }
.tint,.panel { background: var(--cream); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.27rem, 2.2vw, 1.8rem); }
p,ol,dl { margin: .7rem 0 0; color: var(--muted); }
.lead { margin: .8rem 0 2rem; }
.about { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.about h3 { margin-top: 1.65rem; font-size: 1.35rem; }
.about img { width: 100%; height: auto; border-radius: 14px; display: block; }
.grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.45rem; }
.grid article { background: var(--page); border-radius: 13px; overflow: hidden; border: 1px solid var(--line); }
.grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.grid article div,.panel,form { padding: clamp(1.25rem, 3vw, 2rem); }
.panel { border-radius: 12px; margin-top: 1.15rem; }
ol { padding-left: 1.35rem; }
.timer,.controls { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.timer { margin-top: 1rem; column-gap: 1.5rem; }
output { font: 2.15rem/1 system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.outline { background: transparent; color: var(--accent); }
form { max-width: 720px; background: var(--page); border-radius: 12px; border: 1px solid var(--line); }
label { display: block; margin-bottom: .35rem; font-weight: 600; }
input,select,textarea { width: 100%; margin-bottom: .95rem; border: 1px solid #bcb0a3; color: var(--ink); background: white; border-radius: 7px; padding: .7rem .85rem; font: inherit; }
textarea { resize: vertical; }
form button { width: 100%; margin-top: 1rem; }
#privacy,#form-status,#timer-status { font-size: .88rem; }
#form-status:empty { display: none; }
#saved { margin-top: 2rem; max-width: 720px; }
.entry { background: var(--page); border: 1px solid var(--line); border-radius: 10px; margin-top: .8rem; padding: 1rem; overflow-wrap: anywhere; }
.entry p { white-space: pre-wrap; }
.entry button { margin-top: .75rem; }
dl { margin-bottom: .8rem; display: grid; grid-template-columns: max-content 1fr; column-gap: 1rem; row-gap: .25rem; }
dt { font-weight: 600; }
dd { margin: 0; }
footer { background: #49382e; color: #fff8ef; padding-block: 2.4rem; }
footer h2 { font-size: 1.55rem; }
footer p,footer a { color: #eee0d4; }
footer a { display: inline-block; margin-top: .55rem; font-size: .85rem; }
@media (max-width: 920px) {
  #menu { display: inline-flex; }
  nav { display: none; position: absolute; top: 100%; inset-inline: 0; background: var(--cream); padding: .75rem 5% 1rem; border-bottom: 1px solid var(--line); }
  nav.open { display: grid; grid-template-columns: 1fr 1fr; }
  nav a { padding: .45rem 0; }
}
@media (max-width: 650px) {
  .about,.grid { grid-template-columns: 1fr; }
  .about img { max-height: 380px; object-fit: cover; }
  .hero { min-height: 525px; }
  dl { grid-template-columns: 1fr; row-gap: 0; }
  dd { margin-bottom: .5rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@font-face { font-family: "Grow Sans"; src: url("assets/fonts/NotoSans-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Grow Sans"; src: url("assets/fonts/NotoSans-Bold.woff") format("woff"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Grow Serif"; src: url("assets/fonts/NotoSerif-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Grow Serif"; src: url("assets/fonts/NotoSerif-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Grow Serif"; src: url("assets/fonts/NotoSerif-Italic.woff") format("woff"); font-style: italic; font-display: swap; }

body,.brand small,output { font-family: "Grow Sans", Arial, sans-serif; }
.brand,h1,h2,h3,.tagline { font-family: "Grow Serif", Georgia, serif; }
h1,h2,h3,.tagline { line-height: 1.28; overflow-wrap: break-word; }
.hero-inner { min-width: 0; }
.grid img { object-position: center; }
@media (max-width: 420px) {
  h1 { font-size: clamp(2rem, 10vw, 2.75rem); }
  .brand { font-size: 1.17rem; }
  .bar { gap: .65rem; }
}

.hero .tagline { color: #fff4e5; }
