/* ==========================================================================
   Tay-sty Treat — cottage / woodland / floral theme
   Palette pulled from the logo: cream parchment, forest green script,
   honey-gold daisies, sage leaves, walnut dots.
   ========================================================================== */
:root {
  color-scheme: light;

  --cream: #fcedda;
  --linen: #fff8ee;
  --parchment: #f7e4c8;
  --oat: #efd9b8;
  --forest: #3f5a24;
  --forest-deep: #2c4119;
  --moss: #6b8a3a;
  --sage: #a9c48f;
  --sage-soft: #dfe9d3;
  --honey: #e8aa3b;
  --honey-deep: #c98a1e;
  --honey-soft: #f8e2b4;
  --walnut: #5b3f2a;
  --bark: #3b2a1e;
  --ink: #3b2a1e;
  --ink-soft: #6e5846;
  --rim: #766a5c;
  --berry: #a23b2c;
  --berry-soft: #f6d9d2;

  --font-script: 'Allison', 'Brush Script MT', cursive;
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(59 42 30 / 0.08), 0 8px 24px -8px rgb(59 42 30 / 0.22);
  --shadow-lift: 0 2px 4px rgb(59 42 30 / 0.1), 0 16px 36px -10px rgb(59 42 30 / 0.3);
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--cream);
  background-image: url('/assets/paper.svg');
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--forest-deep); }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--forest-deep); line-height: 1.2; margin: 0 0 0.4em; font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.script { font-family: var(--font-script); font-weight: 400; color: var(--forest); line-height: 1; }
.eyebrow { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 800; color: var(--honey-deep); margin-bottom: 0.4rem; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.vine { height: 44px; width: min(360px, 90%); margin: 1.2rem auto; background: url('/assets/vine.svg') center / contain no-repeat; }

/* ----- Wood bar ----------------------------------------------------------- */
.woodbar {
  background: url('/assets/wood.svg') center / cover, var(--walnut);
  color: var(--cream);
  font-size: 0.85rem;
  text-align: center;
  padding: 0.5rem var(--gutter);
  letter-spacing: 0.02em;
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / 0.15);
}
.woodbar strong { color: var(--honey-soft); }

/* ----- Buttons ------------------------------------------------------------ */
.btn {
  --bg: var(--forest);
  --fg: var(--linen);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0.65rem 1.3rem;
  font: 700 1rem/1.2 var(--font-sans);
  color: var(--fg); background: var(--bg);
  border: 2px solid var(--bg); border-radius: 999px;
  cursor: pointer; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  box-shadow: 0 3px 0 var(--forest-deep);
}
.btn:hover { transform: translateY(-1px); color: var(--fg); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--forest-deep); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-honey { --bg: var(--honey); --fg: var(--bark); box-shadow: 0 3px 0 var(--honey-deep); }
.btn-ghost { --bg: transparent; --fg: var(--forest); border-color: var(--forest); box-shadow: none; }
.btn-ghost:hover { background: var(--sage-soft); }
.btn-danger { --bg: var(--berry); box-shadow: 0 3px 0 #6e2419; }
.btn-sm { min-height: 36px; padding: 0.4rem 0.9rem; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ----- Cards / panels ----------------------------------------------------- */
.card {
  background: var(--linen);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgb(118 106 92 / 0.18);
}
.stitched { position: relative; }
.stitched::after {
  content: ''; position: absolute; inset: 8px; border-radius: calc(var(--radius) - 6px);
  border: 1.5px dashed rgb(107 138 58 / 0.35); pointer-events: none;
}

/* ----- Forms -------------------------------------------------------------- */
label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.3rem; color: var(--walnut); }
.field { margin-bottom: 1rem; }
.field .hint { font-weight: 400; color: var(--ink-soft); font-size: 0.82rem; }
input[type='text'], input[type='email'], input[type='tel'], input[type='password'], input[type='number'],
input[type='date'], input[type='datetime-local'], input[type='search'], select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.8rem;
  font: 1rem/1.4 var(--font-sans);
  color: var(--ink);
  background: #fffdf9;
  border: 1.5px solid var(--oat);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--moss); box-shadow: 0 0 0 3px rgb(169 196 143 / 0.45); }
textarea { min-height: 88px; resize: vertical; }
.check { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--forest); }

.alert { padding: 0.8rem 1rem; border-radius: var(--radius-sm); margin: 0 0 1rem; font-size: 0.95rem; }
.alert-error { background: var(--berry-soft); color: #6e2419; border: 1px solid #e3b3a8; }
.alert-ok { background: var(--sage-soft); color: var(--forest-deep); border: 1px solid var(--sage); }
.alert-honey { background: var(--honey-soft); color: var(--bark); border: 1px solid #ecc97f; }

/* ----- Pills & badges ----------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.2rem 0.6rem; border-radius: 999px;
  background: var(--sage-soft); color: var(--forest-deep);
}
.pill-honey { background: var(--honey-soft); color: #7a5210; }
.pill-berry { background: var(--berry-soft); color: #6e2419; }
.pill-oat { background: var(--oat); color: var(--walnut); }

/* ----- Footer ------------------------------------------------------------- */
.site-footer {
  margin-top: 4rem;
  background: url('/assets/wood.svg') center / cover, var(--walnut);
  color: var(--cream);
  padding: 2.5rem var(--gutter) 2rem;
  text-align: center;
}
.site-footer a { color: var(--honey-soft); }
.verse { max-width: 34rem; margin: 0 auto 1rem; font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; line-height: 1.5; }
.verse cite { display: block; font-style: normal; font-family: var(--font-sans); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--honey-soft); margin-top: 0.35rem; }
.page-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.1rem; }
.page-nav a { color: var(--cream); font-weight: 700; text-decoration: none; }
.page-nav a:hover, .page-nav a[aria-current='page'] { color: var(--honey-soft); text-decoration: underline; }

.footer-links { margin: 0.2rem 0 0.9rem; }
.cottage-notice { max-width: 34rem; margin: 0.6rem auto 0; font-size: 0.78rem; opacity: 0.8; }
.cross-mark { width: 44px; height: 44px; margin: 0 auto 0.6rem; background: var(--linen) url('/assets/cross.svg') center / 36px no-repeat; border-radius: 50%; }

/* ----- Dialog ------------------------------------------------------------- */
dialog {
  width: min(640px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  padding: 0; border: none; border-radius: var(--radius);
  background: var(--linen); color: var(--ink);
  box-shadow: var(--shadow-lift);
}
dialog::backdrop { background: rgb(59 42 30 / 0.45); backdrop-filter: blur(2px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--oat); position: sticky; top: 0; background: var(--linen); z-index: 1; }
.dialog-head h3 { margin: 0; }
.dialog-body { padding: 1.25rem; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--parchment); color: var(--walnut); font-size: 1.3rem; cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--oat); }

/* ----- Toast -------------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--forest-deep); color: var(--linen);
  padding: 0.75rem 1.2rem; border-radius: 999px; box-shadow: var(--shadow-lift);
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 100;
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--berry); }

.spinner { width: 22px; height: 22px; border: 3px solid var(--oat); border-top-color: var(--honey); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
