:root {
  color-scheme: light;
  --ink: #173f4a;
  --muted: #64736f;
  --paper: #f4efe5;
  --cream: #fffaf0;
  --gold: #d5932f;
  --line: rgba(23, 63, 74, .2);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; }
.masthead, main, footer { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.masthead { display: flex; justify-content: space-between; align-items: baseline; padding: 28px 0 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.brand { color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 1.4rem; text-transform: none; letter-spacing: 0; text-decoration: none; }
.intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: end; padding: clamp(56px, 9vw, 120px) 0 72px; }
.intro-copy { padding-bottom: 12px; }
.eyebrow { margin: 0 0 20px; color: var(--gold); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
h1 { max-width: 650px; margin: 0; font-size: clamp(3.4rem, 7vw, 7.4rem); line-height: .88; letter-spacing: -.045em; }
.intro-copy > p:last-child { max-width: 470px; margin: 28px 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.landscape { margin: 0; }
.landscape img { display: block; width: 100%; border-radius: 48% 48% 12px 12px; box-shadow: 0 24px 60px rgba(23, 63, 74, .12); }
.landscape figcaption { margin-top: 12px; color: var(--muted); font-size: .75rem; text-align: right; }
.rule { height: 1px; background: var(--line); }
.guestbook { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(56px, 9vw, 140px); padding: 88px 0 120px; }
h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: -.025em; }
.section-note { color: var(--muted); line-height: 1.6; }
form { display: grid; gap: 24px; margin-top: 34px; }
.field { display: grid; gap: 8px; }
label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
input, textarea { width: 100%; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 12px 0; font: inherit; font-size: 1rem; color: var(--ink); background: transparent; outline: none; }
textarea { resize: vertical; min-height: 120px; }
input:focus, textarea:focus { border-bottom-width: 2px; border-color: var(--gold); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #a33b2b; }
small { color: var(--muted); }
.field-error { color: #8b2e21; font-size: .84rem; font-weight: 600; }
button { justify-self: start; border: 0; border-radius: 999px; padding: 14px 22px; color: var(--cream); background: var(--ink); font: inherit; font-weight: 600; cursor: pointer; transition: transform .18s ease, background .18s ease; }
button:hover { transform: translateY(-2px); background: #235a67; }
button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.notice, .error-summary { margin-top: 24px; padding: 14px 18px; border-left: 3px solid var(--gold); background: rgba(255, 250, 240, .65); }
.error-summary { border-color: #a33b2b; }
.error-summary p { margin: 4px 0 0; }
.entries-heading { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.entries-heading span { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.message-list { list-style: none; margin: 0; padding: 0; }
.message-list li { padding: 28px 0; border-bottom: 1px solid var(--line); }
blockquote { margin: 0 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.45rem, 2.5vw, 2.15rem); line-height: 1.2; }
.message-list p, .empty { color: var(--muted); }
.message-list p { margin: 0; font-size: .82rem; }
.message-list strong { color: var(--ink); }
.empty { margin-top: 28px; font-family: Georgia, "Times New Roman", serif; font-size: 1.4rem; }
footer { display: flex; justify-content: space-between; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; letter-spacing: .08em; }
@media (max-width: 760px) {
  .masthead, main, footer { width: min(100% - 32px, 620px); }
  .masthead span { display: none; }
  .intro, .guestbook { grid-template-columns: 1fr; }
  .intro { gap: 42px; padding: 48px 0 56px; }
  h1 { font-size: clamp(3.25rem, 16vw, 5.4rem); }
  .landscape img { border-radius: 120px 120px 10px 10px; }
  .guestbook { gap: 72px; padding: 64px 0 88px; }
  footer { gap: 20px; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
