/* Sonshine & Sweets Cakery - shared styles */
:root {
  --teal: #0C585C;
  --teal-dark: #083F42;
  --teal-soft: #E3F0EE;
  --aqua: #83C2C0;
  --gold: #DBA63E;
  --gold-text: #8A5A10;
  --sunflower: #F2C14E;
  --butter: #F6D184;
  --butter-soft: #FBEFD2;
  --cocoa: #5B3A24;
  --cream: #FDF8EF;
  --paper: #FFFFFF;
  --ink: #23302F;
  --muted: #4A5857;
  --line: #E4D9C3;
  --error: #A3261B;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(12, 88, 92, 0.10);
  --max: 1160px;
  --font-body: "Mulish", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-head: "Marcellus", Georgia, "Times New Roman", serif;
  --font-script: "Great Vibes", "Brush Script MT", cursive;
}

*, *::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;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; color: var(--teal); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }

/* Accessibility helpers */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--teal); color: var(--cream); padding: 12px 18px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--cream); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--gold-text); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--teal { background: var(--teal); color: var(--cream); }
.section--teal h2, .section--teal h3 { color: var(--cream); }
.section--teal a:not(.btn) { color: var(--butter); }
.section--butter { background: var(--butter-soft); }
.section--white { background: var(--paper); }
.script { font-family: var(--font-script); font-weight: 400; color: var(--teal); font-size: 1.6em; line-height: 1; }
.eyebrow { font-family: var(--font-head); letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; color: var(--gold-text); margin-bottom: .6em; display: block; }
.section--teal .eyebrow { color: var(--butter); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.divider { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 auto 18px; color: var(--gold); }
.divider::before, .divider::after { content: ""; height: 2px; width: 56px; background: var(--gold); border-radius: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 800; font-size: 1rem; letter-spacing: .02em;
  text-decoration: none; cursor: pointer; border: 2px solid transparent; line-height: 1.2;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: var(--cream); }
.btn-primary:hover { background: var(--teal-dark); color: var(--cream); }
.btn-sun { background: var(--butter); color: var(--teal-dark); border-color: var(--butter); }
.btn-sun:hover { background: var(--sunflower); color: var(--teal-dark); }
.btn-outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: var(--cream); }
.section--teal .btn-outline { color: var(--cream); border-color: var(--cream); }
.section--teal .btn-outline:hover { background: var(--cream); color: var(--teal); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

/* Header */
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 230px; height: auto; }
.nav-toggle {
  display: none; background: transparent; border: 2px solid var(--teal); color: var(--teal);
  border-radius: 10px; min-height: 44px; min-width: 44px; padding: 8px 12px; font-weight: 800; cursor: pointer;
  font-family: var(--font-body); font-size: .95rem;
}
.nav-toggle svg { vertical-align: middle; margin-right: 6px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; color: var(--teal); font-weight: 700;
}
.site-nav a:hover { background: var(--teal-soft); }
.site-nav a[aria-current="page"] { background: var(--teal-soft); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.site-nav .nav-cart a { background: var(--teal); color: var(--cream); }
.site-nav .nav-cart a:hover { background: var(--teal-dark); }
.cart-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 6px;
  margin-left: 8px; border-radius: 999px; background: var(--butter); color: var(--teal-dark); font-size: .85rem; font-weight: 800;
}

@media (max-width: 900px) {
  .brand img { width: 190px; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 10px 16px 18px; gap: 4px; }
  .site-nav a { width: 100%; border-radius: 10px; padding: 12px 14px; }
}

/* Hero */
.hero { background: var(--cream); padding: 56px 0 72px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 .script { display: block; font-size: 1.35em; margin-bottom: .1em; }
.hero-photo { position: relative; }
.hero-photo img { border-radius: 28px; box-shadow: var(--shadow); aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; }
.hero-badge {
  position: absolute; left: -18px; bottom: -18px; background: var(--teal); color: var(--cream);
  padding: 14px 18px; border-radius: 16px; box-shadow: var(--shadow); max-width: 240px; font-size: .95rem; line-height: 1.4;
}
.hero-badge strong { color: var(--butter); display: block; font-family: var(--font-head); font-weight: 400; font-size: 1.1rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; color: var(--muted); font-size: .98rem; padding: 0; list-style: none; }
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta svg { flex: none; color: var(--gold-text); }
@media (max-width: 900px) {
  .hero { padding: 36px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-badge { left: 12px; bottom: -16px; }
}

/* Page hero (inner pages) */
.page-hero { background: var(--teal); color: var(--cream); padding: 56px 0 50px; text-align: center; }
.page-hero h1 { color: var(--cream); margin-bottom: .25em; }
.page-hero p { color: #E6F1EF; max-width: 60ch; margin: 0 auto; font-size: 1.1rem; }
.page-hero .eyebrow { color: var(--butter); }
.page-hero a:not(.btn) { color: var(--butter); }

/* Cards */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: center; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { margin: 0; color: var(--muted); }
.card-price { font-weight: 800; color: var(--teal); }
.card-body .btn { margin-top: auto; align-self: flex-start; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 22px 22px 22px 78px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 20px; top: 20px; width: 42px; height: 42px; border-radius: 50%;
  background: var(--butter); color: var(--teal-dark); font-family: var(--font-head); font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
}
.steps h3 { margin: 0 0 4px; font-size: 1.2rem; }
.steps p { margin: 0; color: var(--muted); }
.feature-photo img { border-radius: 24px; box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.verse { font-family: var(--font-head); font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.5; max-width: 34ch; margin: 0 auto .6em; }
.verse-ref { color: var(--butter); letter-spacing: .16em; text-transform: uppercase; font-size: .9rem; }
.notice {
  background: var(--butter-soft); border: 1px solid var(--butter); border-radius: var(--radius);
  padding: 16px 18px; color: var(--ink);
}
.notice strong { color: var(--teal-dark); }
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }

/* Menu / shop */
.menu-nav { position: sticky; top: 76px; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.menu-nav ul { list-style: none; margin: 0; padding: 10px 0; display: flex; gap: 8px; overflow-x: auto; }
.menu-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; white-space: nowrap; background: var(--cream); }
.menu-nav a:hover { border-color: var(--teal); }
@media (max-width: 900px) { .menu-nav { top: 76px; } }
.menu-section { scroll-margin-top: 150px; }
.menu-head { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: center; margin-bottom: 26px; }
.menu-head img { border-radius: 20px; box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (max-width: 860px) { .menu-head { grid-template-columns: 1fr; } }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.product {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px;
}
.product h3 { margin: 0; }
.product .price { font-weight: 800; color: var(--teal); font-size: 1.1rem; }
.product .desc { color: var(--muted); margin: 0; font-size: .98rem; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend { font-weight: 800; font-size: .95rem; color: var(--ink); }
.field .hint { font-size: .88rem; color: var(--muted); }
select, input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"], textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid #9AAFAD; border-radius: 10px;
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
}
textarea { min-height: 110px; resize: vertical; }
select:focus, input:focus, textarea:focus { border-color: var(--teal); }
.qty-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.qty-row .field { width: 110px; }
.qty-row .btn { flex: 1; min-width: 160px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.radio-group { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-card { position: relative; flex: 1; min-width: 200px; }
.radio-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio-card label {
  display: block; padding: 14px 16px; border: 2px solid #9AAFAD; border-radius: 12px; cursor: pointer; background: var(--paper);
  font-weight: 700; min-height: 48px;
}
.radio-card label span { display: block; font-weight: 400; color: var(--muted); font-size: .92rem; }
.radio-card input:checked + label { border-color: var(--teal); background: var(--teal-soft); box-shadow: inset 0 0 0 1px var(--teal); }
.radio-card input:focus-visible + label { outline: 3px solid var(--gold-text); outline-offset: 2px; }

table.price-table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 1rem; }
.price-table caption { text-align: left; font-family: var(--font-head); color: var(--teal); font-size: 1.25rem; padding: 0 0 10px; }
.price-table th, .price-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table thead th { background: var(--teal); color: var(--cream); font-weight: 700; }
.price-table tbody tr:nth-child(even) { background: #FBF7EE; }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; }
.table-wrap { overflow-x: auto; margin-bottom: 28px; border-radius: var(--radius); }
.tables-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .tables-grid { grid-template-columns: 1fr; } }
.options-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.option-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.option-box h3 { font-size: 1.2rem; }
.option-box ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.option-box p { color: var(--muted); font-size: .95rem; margin: .6em 0 0; }

/* Toast / live region */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(140%);
  background: var(--teal-dark); color: var(--cream); padding: 14px 18px; border-radius: 12px; box-shadow: var(--shadow);
  z-index: 300; max-width: calc(100% - 32px); display: flex; gap: 14px; align-items: center;
  visibility: hidden; transform: translateX(-50%) translateY(calc(100% + 48px)); transition: transform .25s ease, visibility .25s;
}
.toast.is-visible { visibility: visible; transform: translateX(-50%) translateY(0); }
.toast a { color: var(--butter); font-weight: 800; }

/* Cart */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-item h3 { font-family: var(--font-body); font-weight: 800; font-size: 1.05rem; color: var(--ink); margin: 0; }
.cart-item .meta { color: var(--muted); font-size: .93rem; margin: 2px 0 0; }
.cart-item .tag { display: inline-block; margin-top: 6px; background: var(--butter-soft); color: var(--cocoa); border: 1px solid var(--butter); border-radius: 999px; padding: 2px 10px; font-size: .82rem; font-weight: 700; }
.cart-item .line-total { font-weight: 800; color: var(--teal); text-align: right; }
.cart-item-controls { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qty-stepper { display: inline-flex; align-items: center; border: 2px solid #9AAFAD; border-radius: 999px; overflow: hidden; }
.qty-stepper button { background: var(--paper); border: 0; min-width: 44px; min-height: 44px; font-size: 1.2rem; font-weight: 800; color: var(--teal); cursor: pointer; }
.qty-stepper button:hover { background: var(--teal-soft); }
.qty-stepper output { min-width: 36px; text-align: center; font-weight: 800; }
.link-btn { background: none; border: 0; color: var(--error); text-decoration: underline; cursor: pointer; font: inherit; font-weight: 700; min-height: 44px; padding: 0 8px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; }
.summary-row.total { border-top: 2px solid var(--line); margin-top: 6px; padding-top: 14px; font-weight: 800; font-size: 1.15rem; color: var(--teal); }
.summary-note { font-size: .92rem; color: var(--muted); }
.form-stack { display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: var(--teal); }
.error-msg { color: var(--error); font-weight: 700; }
.empty-cart { text-align: center; padding: 30px 10px; }

/* Prose (policy pages) */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.3em; }
.prose li { margin-bottom: .4em; }

/* Footer */
.site-footer { background: var(--teal-dark); color: #E6F1EF; padding: 56px 0 28px; }
.site-footer a:not(.btn) { color: var(--butter); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo img { width: 210px; }
.site-footer h2 { color: var(--butter); font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .8em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer li a { display: inline-block; min-height: 32px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.18); margin-top: 36px; padding-top: 20px; font-size: .9rem; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.cottage { font-size: .9rem; color: #D5E6E3; margin-top: 14px; }
.social { display: flex; gap: 10px; margin-top: 12px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.1); color: var(--butter); }
.social a:hover { background: rgba(255,255,255,.2); }

/* Shop grid + product cards (whole card is one link) */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.product-card { position: relative; transition: transform .15s ease, box-shadow .15s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(12, 88, 92, 0.16); }
.product-card h3 { font-size: 1.3rem; }
.product-card .card-link { color: var(--teal); text-decoration: none; }
.product-card .card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.product-card .card-link:focus-visible { outline: none; }
.product-card:focus-within { outline: 3px solid var(--gold-text); outline-offset: 3px; }
.product-card .btn { pointer-events: none; }
.card-placeholder { background: var(--butter-soft); display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; }

/* Breadcrumb */
.breadcrumb { background: var(--paper); border-bottom: 1px solid var(--line); font-size: .95rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 12px 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before { content: "/"; margin: 0 10px; color: var(--muted); }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 32px; }
.breadcrumb [aria-current] { color: var(--muted); }

/* Product page */
.product-page { padding-top: 44px; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.product-media { position: sticky; top: 100px; }
.product-media img, .product-media .card-placeholder { border-radius: 24px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.product-media .card-placeholder svg { width: 45%; height: auto; }
.product-info h1 { margin-bottom: .2em; }
.product-price { font-size: 1.35rem; font-weight: 800; color: var(--teal); margin-bottom: .6em; }
.product-info .product { margin: 18px 0; }
@media (max-width: 860px) {
  .product-layout { grid-template-columns: 1fr; gap: 28px; }
  .product-media { position: static; }
  .product-media img, .product-media .card-placeholder { aspect-ratio: 4 / 3; }
}

/* Intake form */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .quote-layout { grid-template-columns: 1fr; } }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-top: 8px; }
.check-grid .check { align-items: center; min-height: 44px; padding: 8px 12px; border: 2px solid #9AAFAD; border-radius: 10px; background: var(--paper); cursor: pointer; }
.check-grid .check input { margin-top: 0; }
.check-grid .check:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
legend h3 { font-size: 1.2rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[aria-invalid="true"] { border-color: var(--error) !important; }

/* Photo upload */
.upload-field input[type="file"] { min-height: 48px; padding: 10px; border: 2px dashed #9AAFAD; border-radius: 10px; background: var(--paper); width: 100%; font: inherit; }
.upload-field input[type="file"]::file-selector-button { font: inherit; font-weight: 800; border: 0; border-radius: 999px; background: var(--teal); color: var(--cream); padding: 10px 18px; margin-right: 12px; cursor: pointer; }
.upload-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.upload-list li { display: flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px 6px 6px; font-size: .9rem; max-width: 100%; }
.upload-list img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.upload-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }

/* Link in bio page (links.html) */
.links-page {
  background:
    radial-gradient(120% 60% at 50% -10%, var(--butter-soft) 0%, rgba(251, 239, 210, 0) 70%),
    var(--cream);
  min-height: 100vh;
}
.lk-wrap { max-width: 480px; margin: 0 auto; padding: 28px 16px 32px; }
.lk-head { text-align: center; margin-bottom: 22px; }
.lk-head h1 { margin: 0 auto 10px; width: 190px; }
.lk-head h1 img { width: 100%; height: auto; }
.lk-intro { margin: 0 0 4px; font-size: 1.02rem; color: var(--ink); }
.lk-script { font-family: var(--font-script); font-size: 1.7rem; color: var(--gold-text); margin: 0; line-height: 1.2; }
#links:focus { outline: none; }
.lk-heading { font-size: 1.15rem; text-align: center; margin: 24px 0 10px; color: var(--teal); }
.lk-list, .lk-grid, .lk-info ul { list-style: none; margin: 0; padding: 0; }
.lk-list { display: grid; gap: 12px; }
.lk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lk {
  display: flex; align-items: center; gap: 14px;
  min-height: 64px; padding: 12px 16px;
  background: var(--paper); color: var(--teal-dark);
  border: 2px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); text-decoration: none;
  transition: transform .15s ease, border-color .15s ease;
}
.lk:hover { color: var(--teal-dark); border-color: var(--teal); transform: translateY(-1px); }
.lk:focus-visible { outline: 3px solid var(--gold-text); outline-offset: 3px; border-radius: var(--radius); }
.lk-ico { flex: 0 0 auto; color: var(--teal); }
.lk-text { display: flex; flex-direction: column; min-width: 0; }
.lk-label { font-weight: 800; font-size: 1.05rem; line-height: 1.25; }
.lk-sub { font-size: .9rem; color: var(--muted); line-height: 1.35; overflow-wrap: anywhere; }
.lk-primary { background: var(--teal); border-color: var(--teal); color: var(--cream); }
.lk-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--cream); }
.lk-primary .lk-ico, .lk-primary .lk-sub { color: var(--cream); }
.lk-sun { background: var(--butter); border-color: var(--butter); }
.lk-sun:hover { background: var(--sunflower); border-color: var(--sunflower); }
.lk-sun .lk-ico { color: var(--teal-dark); }
.lk-sun .lk-sub { color: var(--teal-dark); }
.lk-grid li { display: flex; }
.lk-grid .lk { flex: 1; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 104px; }
.lk-info { margin-top: 8px; background: var(--teal-soft); border-radius: var(--radius); padding: 4px 18px 16px; }
.lk-info .lk-heading { margin-top: 14px; }
.lk-info li { padding-left: 26px; position: relative; margin: 6px 0; font-size: .98rem; }
.lk-info li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.lk-foot { text-align: center; margin-top: 26px; font-size: .88rem; color: var(--muted); }
.lk-foot .cottage { font-size: .8rem; color: var(--muted); margin-top: 0; }
.lk-foot p { margin: 0 0 8px; }
.lk-legal { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; }
.lk-legal a { display: inline-block; padding: 10px 2px; min-height: 44px; font-weight: 700; }
@media (max-width: 340px) { .lk-grid { grid-template-columns: 1fr; } .lk-grid .lk { flex-direction: row; align-items: center; min-height: 64px; } }
