﻿* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 'Figtree', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: 'Young Serif', Georgia, serif; font-weight: 400; line-height: 1.08; margin: 0; text-wrap: balance; }
[data-pending] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.hand { font-family: 'Caveat', cursive; font-weight: 600; color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 16px; padding: 14px 24px; border-radius: var(--r-btn); background: var(--ink); color: var(--paper); box-shadow: 0 5px 0 var(--red); transition: transform .15s ease, box-shadow .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--red); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--red); }
.btn--light { background: var(--white); color: var(--ink); box-shadow: 0 5px 0 var(--ink); }
.btn--light:hover { box-shadow: 0 7px 0 var(--ink); }
.btn--light:active { box-shadow: 0 2px 0 var(--ink); }
.btn--butter { background: var(--butter); color: var(--ink); box-shadow: 0 5px 0 #A67C14; }
.btn--butter:hover { box-shadow: 0 7px 0 #A67C14; }
.btn--butter:active { box-shadow: 0 2px 0 #A67C14; }
.link { position: relative; font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; border-bottom: 2px solid currentColor; padding-bottom: 2px; }

.link::after { content: ""; position: absolute; inset: -14px -10px; }

/* header */
header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.nav__brand img { height: 52px; width: auto; }
.nav nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; font-weight: 500; }
.nav nav a { text-decoration: none; }
.nav nav a:hover { color: var(--red); }
.nav .btn { padding: 11px 20px; font-size: 15px; }
.menu-btn { display: none; font: 700 15px 'Figtree', sans-serif; color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: var(--r-btn); padding: 8px 14px; cursor: pointer; }

/* footer */
footer { background: var(--ink); color: var(--sage-pale); padding: 70px 0 40px; }
.foot__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--ink-soft); }
.logo-chip { background: var(--paper); display: inline-block; padding: 10px 16px; border-radius: 18px; }
.logo-chip img { height: 44px; width: auto; }
footer p { max-width: 36ch; margin: 18px 0 0; font-size: 15px; }
.foot__h { font-family: 'Young Serif', Georgia, serif; font-weight: 400; color: var(--paper); font-size: 20px; margin: 0 0 14px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
footer ul a { text-decoration: none; }
footer ul a:hover { color: var(--butter); }
.foot__bottom { padding-top: 26px; font-size: 14px; }

@media (max-width: 900px) {
  .wrap { padding: 0 18px; }
  .nav { position: relative; gap: 10px; }
  .nav__brand { display: flex; align-items: center; min-height: 44px; }
  .nav__brand img { height: 38px; }
  .nav .btn { padding: 12px 14px; min-height: 44px; font-size: 14px; margin-left: auto; }
  .menu-btn { display: inline-block; min-height: 44px; padding: 10px 16px; }
  .nav nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-radius: 0 0 var(--r-photo) var(--r-photo); box-shadow: var(--shadow); padding: 12px 18px 20px; }
  .nav nav.is-open { display: block; }
  .nav nav ul { flex-direction: column; gap: 4px; }
  .nav nav a { display: block; padding: 12px 4px; font-size: 18px; }
  .foot__top { grid-template-columns: 1fr; }
  footer ul { gap: 0; }
  footer li a { display: block; padding: 11px 0; }
}

/* "Request by email" box (js/email-choice.js) */
.email-box { position: fixed; inset: 0; margin: auto; width: min(380px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 30px 24px 26px; border: 0; border-radius: 28px; background: var(--paper); color: var(--ink); text-align: center; box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .45); }
.email-box::backdrop { background: rgba(20, 45, 29, .62); }
.email-box h2 { margin: 0; padding: 0 24px; font-size: 24px; color: var(--ink); }
.email-box h2:focus { outline: none; }
.email-box__to { margin: 6px 0 12px; font-size: 16px; color: var(--ink-soft); overflow-wrap: anywhere; }
.email-box__opt { display: block; box-sizing: border-box; width: 100%; margin-top: 10px; padding: 13px 16px; border: 2px solid var(--ink); border-radius: var(--r-btn); background: var(--white); color: var(--ink); font: 700 16px/1.3 'Figtree', sans-serif; text-align: center; text-decoration: none; cursor: pointer; }
.email-box__opt:hover { background: var(--sage-pale); }
.email-box__opt--main, .email-box__opt--main:hover { background: var(--ink); color: var(--paper); }
.email-box__close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; }
.email-box__close:hover { background: var(--sage-pale); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
