:root {
  --ink: #12332b;
  --text: #25322e;
  --muted: #5d6b65;
  --bg: #f6f1e9;
  --sand: #e8d9c0;
  --sand-soft: #efe5d3;
  --surface: #fffdf9;
  --accent: #d9622b;
  --accent-deep: #b84a18;
  --accent-ink: #ffffff;
  --border: #ddd1bb;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --wrap: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-deep); }
img { max-width: 100%; }
em { font-style: italic; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); letter-spacing: -.015em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.05; margin: 0 0 .75rem; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.1; margin: 2.5rem 0 1rem; }
h3 { line-height: 1.2; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
main { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem 3rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.button, button[type="submit"] {
  --s: 1;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 22px -8px rgba(217,98,43,.65), 0 2px 4px rgba(18,51,43,.12);
  transform: translate(var(--mx, 0px), var(--my, 0px)) scale(var(--s));
  transition: transform .45s var(--spring), box-shadow .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.button::before, button[type="submit"]::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  transform: translateX(-101%); transition: transform .5s var(--ease);
}
.button:hover, button[type="submit"]:hover { --s: 1.04; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 18px 30px -10px rgba(217,98,43,.6), 0 3px 6px rgba(18,51,43,.14); color: var(--accent-ink); }
.button:hover::before, button[type="submit"]:hover::before { transform: translateX(0); }
.button:active, button[type="submit"]:active {
  --s: .94; transition-duration: .08s;
  box-shadow: 0 0 0 rgba(0,0,0,0) inset, 0 1px 2px rgba(18,51,43,.25);
}
.button:focus-visible, button[type="submit"]:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px rgba(217,98,43,.35); }
button[disabled] { opacity: .6; cursor: progress; }
.ripple {
  position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; background: rgba(255,255,255,.55);
  transform: translate(-50%, -50%) scale(0); animation: ripple .65s var(--ease) forwards;
}
@keyframes ripple { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }

.button-ghost, .button-ghost-dark {
  background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink);
}
.button-ghost::before, .button-ghost-dark::before { background: var(--ink); }
.button-ghost:hover, .button-ghost-dark:hover { color: var(--bg); box-shadow: inset 0 0 0 2px var(--ink), 0 14px 26px -12px rgba(18,51,43,.5); }
.button-ghost:active, .button-ghost-dark:active { box-shadow: inset 0 0 0 2px var(--ink), 0 1px 2px rgba(18,51,43,.2); }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(246,241,233,.88); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(18,51,43,.08); transition: background .3s ease, box-shadow .3s ease; }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-top: .9rem; padding-bottom: .9rem; transition: padding .3s var(--ease); }
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; letter-spacing: -.02em; text-decoration: none; color: var(--ink); }
.brand em { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a:not(.button) { position: relative; color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav a:not(.button)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.site-nav a:not(.button):hover::after, .site-nav a:not(.button):focus-visible::after { transform: scaleX(1); }
.site-nav .button { padding: .55rem 1.15rem; }
.nav-toggle, .nav-toggle-label { display: none; }

.site-footer { margin-top: 5rem; background: var(--ink); color: #c9d6d0; padding: 4.5rem 0 2rem; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem; }
.footer-mark { font-family: var(--serif); font-size: 2rem; color: #fff; margin: 0 0 .75rem; }
.footer-mark em { color: #f0a47f; }
.footer-brand p:last-child { max-width: 26rem; margin: 0; }
.footer-col h2 { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: #8fa89d; margin: 0 0 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.site-footer a { color: #e9efec; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease), color .2s; }
.site-footer a:hover, .site-footer a:focus-visible { background-size: 100% 1px; color: #fff; }
.site-footer :focus-visible { outline-color: #f0a47f; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .875rem; color: #8fa89d; }
.footer-base p { margin: 0; }

.modal { display: none; position: fixed; inset: 0; z-index: 50; align-items: center; justify-content: center; background: rgba(18, 51, 43, .62); backdrop-filter: blur(6px); padding: 1rem; overflow-y: auto; }
.modal:target { display: flex; animation: fade .3s var(--ease); }
.modal:target .modal-panel { animation: pop .5s var(--spring); }
.modal-panel { position: relative; background: var(--surface); border-radius: 22px; padding: 2rem; width: 100%; max-width: 34rem; box-shadow: 0 40px 80px -20px rgba(0,0,0,.45); }
.modal-panel h2 { margin-top: 0; }
.modal-close { position: absolute; top: 1.25rem; right: 1.5rem; color: var(--ink); font-weight: 600; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.94); } }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav-toggle-label { display: inline-block; padding: .45rem 1rem; border: 1.5px solid var(--ink); border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--ink); }
  .nav-toggle { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; }
  .nav-toggle:focus-visible + .nav-toggle-label { outline: 3px solid var(--accent); outline-offset: 2px; }
  .site-nav { display: none; flex-direction: column; align-items: flex-start; width: 100%; padding: 1rem 0 .5rem; gap: 1rem; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
}
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .button:hover, button[type="submit"]:hover { --s: 1; }
  .button:active, button[type="submit"]:active { --s: .97; }
}
