/* Plainly Press — shared stylesheet */

:root {
  --cream:  #FBF7EF;
  --paper:  #FFFDF8;
  --green:  #175049;
  --green-d:#0F3B36;
  --ink:    #263331;
  --muted:  #64716E;
  --line:   #D7E0DB;
  --mint:   #E7EFE7;
  --sky:    #E8F1F4;
  --sand:   #F8E8DC;
  --clay:   #9A4A3C;
  --radius: 14px;
  --maxw:   1080px;
  --serif:  "Noto Serif", Georgia, "Times New Roman", serif;
  --sans:   -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--green-d); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.2; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.16rem; }
p  { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .45em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny  { font-size: .78rem; }
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }

/* ---------------------------------------------------------- header */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.brand span { font-family: var(--serif); font-weight: 700; font-size: 1.22rem; color: var(--green); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--green); text-decoration: underline; }
@media (max-width: 620px) {
  .nav a.hide-sm { display: none; }
  .site-header .wrap { min-height: 60px; }
}

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--green); color: #fff !important;
  font-family: var(--sans); font-size: 1.02rem; font-weight: 600;
  padding: 15px 30px; border-radius: 10px;
  text-decoration: none !important; text-align: center;
  transition: background .15s ease, transform .1s ease;
}
.btn:hover { background: var(--green-d); }
.btn:active { transform: translateY(1px); }
.btn-lg { font-size: 1.1rem; padding: 18px 38px; }
.btn-block { display: block; width: 100%; }
.btn-ghost {
  background: transparent; color: var(--green) !important;
  border: 1.5px solid var(--green);
}
.btn-ghost:hover { background: var(--mint); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------------------------------------------------------- sections */
section { padding: 62px 0; }
section.tight { padding: 40px 0; }
.band-mint  { background: var(--mint); }
.band-sky   { background: var(--sky); }
.band-paper { background: var(--paper); }
.band-green { background: var(--green); color: var(--cream); }
.band-green h1, .band-green h2, .band-green h3 { color: var(--cream); }
.band-green a { color: #fff; }

.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--green); margin-bottom: 14px;
}
.band-green .eyebrow { color: #A9CFC8; }

.lede { font-size: 1.16rem; color: var(--muted); max-width: 62ch; }

/* ---------------------------------------------------------- layout helpers */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 30px; } }

/* ---------------------------------------------------------- cards */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card-mint { background: var(--mint); border-color: #CFDFCF; }
.card-sky  { background: var(--sky);  border-color: #CFE0E6; }
.card-sand { background: var(--sand); border-color: #EBD6C6; }

.shot { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }

.chip {
  display: inline-block; background: var(--mint); color: var(--green);
  font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 13px; border-radius: 999px; margin: 0 7px 7px 0;
}

/* ---------------------------------------------------------- price block */
.price-box {
  background: var(--paper); border: 2px solid var(--green);
  border-radius: 18px; padding: 32px; text-align: center;
}
.price { font-family: var(--serif); font-size: 3rem; font-weight: 700; color: var(--green); line-height: 1; }
.price sup { font-size: 1.4rem; top: -1.1em; }
.price-note { color: var(--muted); font-size: .9rem; margin-top: 8px; }

/* ---------------------------------------------------------- checklist */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li {
  position: relative; padding-left: 30px; margin-bottom: .7em;
}
.checks li::before {
  content: ""; position: absolute; left: 4px; top: .52em;
  width: 7px; height: 12px; border: solid var(--green);
  border-width: 0 2.2px 2.2px 0; transform: rotate(45deg);
}

/* ---------------------------------------------------------- forms */
.field { margin-bottom: 14px; text-align: left; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%; font-family: var(--sans); font-size: 1rem;
  padding: 14px 15px; border: 1.5px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,80,73,.12); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formmsg { margin-top: 14px; font-size: .92rem; }
.formmsg.ok  { color: var(--green); }
.formmsg.err { color: var(--clay); }

/* ---------------------------------------------------------- faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 17px 34px 17px 0;
  font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%); font-size: 1.4rem; color: var(--green); font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); padding-right: 30px; }

/* ---------------------------------------------------------- notice */
.notice {
  background: var(--sand); border: 1px solid #EBD6C6;
  border-radius: var(--radius); padding: 18px 20px; font-size: .92rem;
}
.notice strong { color: var(--clay); }

/* ---------------------------------------------------------- footer */
.site-footer {
  background: var(--green); color: #BFD6D1;
  padding: 46px 0 34px; font-size: .9rem; margin-top: 0;
}
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
@media (max-width: 700px) { .site-footer .cols { grid-template-columns: 1fr; gap: 22px; } }
.site-footer h4 { color: var(--cream); font-size: .82rem; letter-spacing: .09em; text-transform: uppercase; font-family: var(--sans); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { width: 32px; height: 32px; }
.footer-brand span { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: var(--cream); }
.legal-line {
  border-top: 1px solid rgba(255,255,255,.16);
  margin-top: 30px; padding-top: 20px; font-size: .8rem; color: #9FBDB7;
}

/* ---------------------------------------------------------- doc pages */
.doc { max-width: 760px; }
.doc h2 { margin-top: 2em; font-size: 1.35rem; }
.doc h3 { margin-top: 1.6em; }
.doc ul { color: var(--ink); }
.updated { color: var(--muted); font-size: .88rem; margin-bottom: 2.2em; }

@media print { .site-header, .site-footer, .btn { display: none; } }

/* ==========================================================================
   Product gallery — swipeable on touch, arrows and dots on desktop
   ========================================================================== */

.gallery { position: relative; }

.gal-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: var(--radius);
}
.gal-track::-webkit-scrollbar { display: none; }

.gal-slide {
  /* On phones each slide is slightly narrower than the track, so a sliver of
     the next image peeks in. That sliver is what tells people to swipe. */
  flex: 0 0 87%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transition: opacity .2s ease;
}
@media (min-width: 861px) { .gal-slide { flex: 0 0 100%; } }
.gal-slide {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}
.gal-slide img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

/* arrows — pointer devices only; touch users swipe */
.gal-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 253, 248, .94);
  border: 1px solid var(--line);
  color: var(--green); font-size: 20px; line-height: 1;
  cursor: pointer; z-index: 2; display: none;
  align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(23, 80, 73, .12);
  transition: background .15s, opacity .15s;
}
.gal-arrow:hover { background: #fff; }
.gal-arrow[disabled] { opacity: .3; cursor: default; }
.gal-prev { left: 10px; }
.gal-next { right: 10px; }
@media (hover: hover) and (pointer: fine) {
  .gal-arrow { display: flex; }
}

.gal-below {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin-top: 14px;
}
.gal-dots { display: flex; gap: 7px; align-items: center; }
.gal-dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px;
  background: var(--line); cursor: pointer; transition: all .18s ease;
}
.gal-dot.on { background: var(--green); width: 24px; }
.gal-count { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.gal-hint {
  font-size: .82rem; color: var(--green); font-weight: 600;
  display: inline-flex; align-items: center; gap: 5px;
}
.gal-hint::after { content: "›  ›"; letter-spacing: -2px; opacity: .65; }
@media (hover: hover) and (pointer: fine) { .gal-hint { display: none; } }

.gal-caption {
  margin: 12px 0 0; font-size: .92rem; color: var(--muted);
  text-align: center; min-height: 1.5em;
}

/* thumbnails, desktop only */
.gal-thumbs { display: none; gap: 8px; margin-top: 14px; }
@media (min-width: 861px) { .gal-thumbs { display: flex; } }
.gal-thumb {
  flex: 1 1 0; padding: 0; border: 1.5px solid var(--line); background: var(--paper);
  border-radius: 8px; overflow: hidden; cursor: pointer; transition: border-color .15s;
}
.gal-thumb img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.gal-thumb.on { border-color: var(--green); }

/* ---------------------------------------------------------- hero layout */
/* Desktop: gallery fills the left column, copy stacks on the right.
   Phones: headline, then the picture, then the price and button — so the
   product is visible without scrolling past a wall of text. */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "gal head" "gal buy";
  gap: 0 46px;
  align-items: start;
}
.hero-head { grid-area: head; }
.gallery   { grid-area: gal; }
.hero-buy  { grid-area: buy; }
.hero-head h1 { margin-bottom: .35em; }
.hero-head p:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "gal" "buy";
    gap: 20px;
  }
  .hero-head h1 { font-size: clamp(1.85rem, 8.4vw, 2.5rem); }
  .hero-buy .lede { font-size: 1.04rem; }
}

/* ------------------------------------------------- sticky mobile buy bar */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; gap: 12px;
  background: var(--paper); border-top: 1px solid var(--line);
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 18px rgba(23, 80, 73, .10);
  transform: translateY(115%);
  transition: transform .22s ease;
}
.buybar.show { transform: none; }
.buybar .bb-price { font-family: var(--serif); font-weight: 700; font-size: 1.22rem; line-height: 1.1; }
.buybar .bb-sub { font-size: .72rem; color: var(--muted); }
.buybar .btn { flex: 1 1 auto; padding: 14px 18px; }
@media (min-width: 861px) { .buybar { display: none; } }
body.has-buybar { padding-bottom: 76px; }
@media (min-width: 861px) { body.has-buybar { padding-bottom: 0; } }
