/* Sea of Wood LLC — shared styles
   Seed 3-3-5-7-1-5-7: bright vivid bookshop colours (jacket green, coral, sunflower, shelf amber) ·
   pale mint tint of the main green as the base · editorial columns with a narrow side rail ·
   rounded soft sans · logo left, nav right, thin rule · category index column + item rows ·
   diagonal section dividers · motif: wavy wood-grain lines */

@font-face { font-family: "Grain Rounded"; src: url("fonts/grain-rounded-400.woff") format("woff"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Grain Rounded"; src: url("fonts/grain-rounded-700.woff") format("woff"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Grain Rounded"; src: url("fonts/grain-rounded-800.woff") format("woff"); font-weight: 800 900; font-style: normal; font-display: swap; }

:root {
  --mint: #e9f7f1;
  --mint-2: #d4efe4;
  --white: #ffffff;
  --ink: #10241d;
  --muted: #3c574d;
  --green: #0b9e72;
  --green-deep: #08694c;
  --forest: #074a36;
  --coral: #f05a3c;
  --coral-text: #b9361b;
  --sun: #ffc533;
  --wood: #d98c16;
  --rule: 1px solid rgba(16, 36, 29, 0.22);
  --font: "Grain Rounded", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
  --rail: 290px;
  --slant: clamp(1.5rem, 4vw, 3.5rem);
  --grain: url("assets/motif-grain.svg") 0 0 / 160px 48px repeat;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--mint);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
strong { font-weight: 700; }

h1, h2, h3 { font-weight: 800; line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 5.8vw, 4.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.08rem; font-weight: 700; line-height: 1.3; letter-spacing: 0; }
p { margin: 0 0 1em; }

a { color: var(--green-deep); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { color: var(--coral-text); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
section { padding-block: clamp(2.5rem, 5vw, 4rem); }
.flush-top { padding-top: 0; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: 0.55rem 1rem; background: var(--sun); color: var(--ink); font-weight: 700; border-radius: 6px; }
.skip-link:focus { top: 1rem; }

/* ---------- header: logo left, nav right, thin rule ---------- */
.site-header { background: var(--white); border-bottom: var(--rule); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 2rem; padding-block: 0.75rem; }
.brand { display: flex; align-items: center; gap: 0.85rem; color: var(--ink); text-decoration: none; }
.brand img { width: 64px; height: auto; flex: none; border-radius: 10px; }
.brand-name { font-weight: 800; font-size: clamp(1.35rem, 2.4vw, 1.65rem); line-height: 1.1; }
.brand:hover .brand-name { color: var(--green-deep); }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 0.2rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: inline-block; padding: 0.45rem 0 0.4rem; border-bottom: 3px solid transparent; color: var(--ink); font-weight: 700; text-decoration: none; }
.main-nav a:hover { color: var(--green-deep); border-bottom-color: var(--mint-2); }
.main-nav a[aria-current="page"] { color: var(--green-deep); border-bottom-color: var(--coral); }

/* ---------- shared parts ---------- */
.kicker { margin: 0 0 0.45rem; color: var(--coral-text); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; }
.tag { display: inline-block; margin: 0 0 1rem; padding: 0.35rem 0.8rem; border-radius: 8px; background: var(--sun); color: var(--ink); font-weight: 700; font-size: 0.93rem; line-height: 1.35; }
.lede { font-size: clamp(1.12rem, 1.9vw, 1.28rem); color: var(--muted); max-width: 46ch; }

.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.4rem;
  font-weight: 800; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center;
  max-width: 100%; overflow-wrap: anywhere;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: skewX(-12deg); border-radius: 4px; }
.btn-green { color: var(--white); }
.btn-green::before { background: var(--green-deep); }
.btn-green:hover { color: var(--white); }
.btn-green:hover::before { background: var(--forest); }
.btn-line { color: var(--ink); }
.btn-line::before { border: 2px solid var(--ink); }
.btn-line:hover { color: var(--ink); }
.btn-line:hover::before { background: var(--white); }
.btn-sun { color: var(--ink); }
.btn-sun::before { background: var(--sun); }
.btn-sun:hover { color: var(--ink); }
.btn-sun:hover::before { background: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem 1.2rem; margin-top: 1.5rem; padding-left: 0.4rem; }

/* ---------- editorial layout: narrow rail + main column ---------- */
.layout { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; }
.layout > .rail { grid-column: 1; grid-row: 1; padding-right: clamp(1.25rem, 3vw, 2.5rem); border-right: var(--rule); }
.layout > .main { grid-column: 2; grid-row: 1; min-width: 0; }
.rail h2 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.rail-block + .rail-block { margin-top: 1.5rem; padding-top: 1.25rem; border-top: var(--rule); }
.rail p { color: var(--muted); }
.rail address { font-style: normal; font-weight: 700; }
.mini-hours { margin: 0; }
.mini-hours div { padding: 0.3rem 0; font-size: 0.95rem; line-height: 1.4; }
.mini-hours div + div { border-top: 1px dashed rgba(16, 36, 29, 0.18); }
.mini-hours dt { font-weight: 700; }
.mini-hours dd { margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- home ---------- */
.front { padding-top: clamp(2rem, 5vw, 3.5rem); }
.front h1 { max-width: 14ch; }
.hero-art { display: block; width: 100%; max-width: 680px; margin-top: 1.5rem; }

.diag { position: relative; padding-block: calc(var(--slant) + clamp(2.25rem, 4.5vw, 3.5rem)); clip-path: polygon(0 var(--slant), 100% 0, 100% calc(100% - var(--slant)), 0 100%); }
.band-forest { background: var(--forest) var(--grain); color: var(--white); }
.band-forest h2 { color: var(--white); }
.band-forest .kicker { color: var(--sun); }
.band-forest p { color: #d6efe5; }
.band-forest a:not(.btn) { color: var(--sun); }
.band-forest :focus-visible { outline-color: var(--sun); }
.band-sun { background: var(--sun); }
.band-sun .kicker { color: var(--ink); }
.spot-grid { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr) auto; gap: 1rem clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
.spot-grid .kicker { margin: 0; }
.spot-grid h2 { margin-bottom: 0.3rem; }
.spot-grid p { margin: 0; }

.shelves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 3vw, 2.5rem); list-style: none; margin: 1.25rem 0 0; padding: 0; }
.shelves li { border-top: var(--rule); }
.shelves a { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 1rem; align-items: center; padding: 1rem 0; color: var(--ink); text-decoration: none; }
.shelves a:hover .shelf-name { color: var(--green-deep); text-decoration: underline; text-decoration-thickness: 2px; }
.shelves img { width: 56px; height: 56px; }
.shelf-name { display: block; font-weight: 800; font-size: 1.12rem; line-height: 1.25; }
.shelf-count { color: var(--muted); font-size: 0.93rem; }

.svc { columns: 2; column-gap: clamp(1.5rem, 3vw, 2.5rem); list-style: none; margin: 1.25rem 0 0; padding: 0; }
.svc li { break-inside: avoid; padding: 0.8rem 0; border-top: var(--rule); color: var(--muted); }
.svc strong { color: var(--ink); }
.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 3rem; align-items: center; }
.visit-grid h2 { margin-bottom: 0.25rem; }
.visit-grid address { font-style: normal; font-weight: 700; }
.visit-grid .btn-row { margin-top: 0; }

/* ---------- page heads ---------- */
.page-head { padding-block: clamp(2.25rem, 5vw, 3.25rem) calc(var(--slant) + clamp(1.5rem, 3vw, 2.25rem)); background: var(--mint-2) var(--grain); clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%); }
.page-head .lede { margin-bottom: 0; }

/* ---------- catalog: category index column + item rows ---------- */
.index { position: sticky; top: 1rem; }
.index ul { list-style: none; margin: 0; padding: 0; }
.index li + li { border-top: var(--rule); }
.index a { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 0.7rem; align-items: center; padding: 0.6rem 0; color: var(--ink); font-weight: 700; font-size: 0.95rem; line-height: 1.25; text-decoration: none; }
.index a:hover { color: var(--green-deep); }
.index img { width: 36px; height: 36px; }
.index .n { display: block; color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.index .star { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--sun); font-weight: 800; }

.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.5rem; list-style: none; margin: 0.75rem 0 0; padding: 0; }
.offers li { display: flex; flex-direction: column; align-items: flex-start; padding-top: 0.9rem; border-top: 4px solid var(--coral); }
.offers li:nth-child(2) { border-top-color: var(--green); }
.offers li:nth-child(3) { border-top-color: var(--sun); }
.offers h3 { margin-bottom: 0.3rem; }
.offers p { margin: 0 0 0.8rem; color: var(--muted); }
.offers .offer-price { margin: auto 0 0; color: var(--green-deep); font-weight: 800; font-size: 1.1rem; }
.offer-price .reg { color: var(--muted); font-weight: 400; font-size: 0.93rem; }

.cat { padding-block: 0; scroll-margin-top: 1rem; }
.cat + .cat, .offers-block + .cat { margin-top: clamp(2.25rem, 4.5vw, 3.25rem); }
.cat-head { display: flex; align-items: center; gap: 0.9rem; padding-bottom: 0.6rem; border-bottom: 3px solid var(--ink); }
.cat-head img { width: 54px; height: 54px; flex: none; }
.cat-head h2 { margin: 0; font-size: clamp(1.35rem, 2.6vw, 1.85rem); }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.2rem 1.5rem; align-items: baseline; padding: 0.85rem 0; border-bottom: var(--rule); scroll-margin-top: 1rem; }
.row h3 { margin: 0; }
.row .desc { grid-column: 1; margin: 0; color: var(--muted); font-size: 0.97rem; }
.row .price { grid-column: 2; grid-row: 1; margin: 0; color: var(--green-deep); font-weight: 800; font-size: 1.12rem; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.row .price.quote { white-space: normal; max-width: 17rem; font-size: 0.98rem; color: var(--coral-text); }
.row .call { display: block; font-weight: 700; font-size: 0.9rem; }

.ask { margin-top: clamp(2.25rem, 4.5vw, 3.25rem); padding: clamp(1.25rem, 3vw, 1.75rem); border-radius: 10px; background: var(--white); }
.ask h2 { margin-bottom: 0.3rem; }
.ask p { margin: 0; color: var(--muted); }

/* ---------- about ---------- */
.facts { margin: 0; }
.facts div { padding: 0.65rem 0; }
.facts div + div { border-top: var(--rule); }
.facts dt { color: var(--coral-text); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.facts dd { margin: 0.1rem 0 0; font-weight: 700; line-height: 1.4; }
.story { max-width: 68ch; }
.story p { color: var(--muted); }
.story .kicker { color: var(--coral-text); }
.story .first { color: var(--ink); font-size: clamp(1.15rem, 2vw, 1.32rem); line-height: 1.6; }
.story .first::first-letter { float: left; margin: 0.08em 0.12em 0 0; color: var(--green-deep); font-weight: 800; font-size: 3.4em; line-height: 0.82; }
.why { list-style: none; margin: 1rem 0 0; padding: 0; max-width: 68ch; }
.why li { padding: 0.9rem 0 0.9rem 1.6rem; border-top: var(--rule); color: var(--muted); position: relative; }
.why li::before { content: ""; position: absolute; left: 0; top: 1.35rem; width: 0.8rem; height: 0.55rem; background: var(--coral); transform: skewX(-20deg); }
.why strong { color: var(--ink); }

/* ---------- contact ---------- */
.hours { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 10px; overflow: hidden; }
.hours caption { caption-side: top; text-align: left; padding-bottom: 0.6rem; font-weight: 800; font-size: 1.35rem; }
.hours th, .hours td { padding: 0.8rem 1.1rem; text-align: left; vertical-align: top; }
.hours thead th { background: var(--forest); color: var(--white); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.hours tbody tr + tr > * { border-top: var(--rule); }
.hours tbody th { font-weight: 700; }
.hours td { font-variant-numeric: tabular-nums; }
.hours .closed { color: var(--coral-text); font-weight: 700; }
.map-title { margin-top: clamp(2rem, 4vw, 2.75rem); }
.map-frame { display: block; width: 100%; height: 380px; border: 0; border-radius: 10px; background: var(--mint-2); }
.map-link { margin-top: 0.9rem; font-weight: 700; }
.rail .btn-row { flex-direction: column; align-items: flex-start; }

/* ---------- footer ---------- */
.site-footer { margin-top: clamp(1rem, 3vw, 2rem); padding-top: var(--slant); background: var(--forest) var(--grain); color: #cfe9de; font-size: 0.97rem; clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%); }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--sun); }
.site-footer :focus-visible { outline-color: var(--sun); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 0.8fr; gap: 2rem; padding-block: 2.2rem 1.5rem; }
.footer-name { margin: 0 0 0.35rem; font-weight: 800; font-size: 1.45rem; color: var(--white); }
.site-footer address { font-style: normal; }
.footer-title { margin: 0 0 0.5rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sun); }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { padding: 0.12rem 0; }
.footer-bottom { margin: 0; padding-block: 1rem 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.2); font-size: 0.86rem; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .layout > .rail, .layout > .main { grid-column: 1; grid-row: auto; }
  .layout > .rail { padding-right: 0; border-right: 0; }
  .layout > .main { order: -1; }
  .layout.rail-first > .main { order: 0; }
  .layout > .rail { padding-top: 1.25rem; border-top: var(--rule); }
  .layout.rail-first > .rail { padding-top: 0; border-top: 0; }
  .index { position: static; }
  .index ul { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .index li + li { border-top: 0; }
  .index a { display: inline-grid; grid-template-columns: 28px auto; padding: 0.35rem 0.75rem 0.35rem 0.4rem; border-radius: 8px; background: var(--white); }
  .index img, .index .star { width: 28px; height: 28px; }
  .index .n { display: none; }
  .spot-grid { grid-template-columns: 1fr; }
  .offers { grid-template-columns: 1fr; gap: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .brand img { width: 56px; }
  .main-nav ul { gap: 0.1rem 1.15rem; }
  .shelves { grid-template-columns: 1fr; }
  .svc { columns: 1; }
  .visit-grid { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .row .price { grid-column: 1; grid-row: auto; text-align: left; }
  .row .price.quote { max-width: none; }
  .hours th, .hours td { padding: 0.7rem 0.8rem; }
  .map-frame { height: 300px; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
}

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