/* -------------------------------------------------------------------------
   Gemwag — standard pages (Natural Organic)
   Scope: /wish/ and the six wish pages, policy pages, FAQ, Contact,
   Size Guide, About, Our Craft. Loaded only on those templates.

   Rules taken from the StyleKit "Natural Organic" reference:
   warm cream ground, five earth colours, irregular organic radii, soft-serif
   display, slow 500–700ms easing, no pure black, no cold blue/purple, no
   perfect circles or squares.
   ------------------------------------------------------------------------- */

.gwp-main {
  background: var(--gw-cream);
  padding-bottom: 8px;
}

.gwp-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 46px;
}

.gwp-main *,
.gwp-main *::before,
.gwp-main *::after { box-sizing: border-box; }

/* ---------- Hero ---------- */
.gwp-hero {
  position: relative;
  padding: 54px 0 46px;
  overflow: clip;
}

/* Soft organic wash behind the headline — painted, not a gradient band. */
.gwp-hero::before {
  content: "";
  position: absolute;
  inset: -120px -10% auto -18%;
  height: 460px;
  background:
    radial-gradient(46% 62% at 22% 44%, rgba(212, 163, 115, .20), transparent 70%),
    radial-gradient(40% 58% at 72% 30%, rgba(139, 157, 119, .18), transparent 72%);
  border-radius: var(--gw-blob-a);
  pointer-events: none;
  z-index: 0;
}

.gwp-hero-in {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 64px;
  align-items: center;
}

.gwp-hero-flat .gwp-hero-in {
  grid-template-columns: minmax(0, 1fr);
  max-width: 860px;
}

/* Breadcrumb */
.gwp-crumbs { margin-bottom: 26px; }
.gwp-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.gwp-crumbs li { display: flex; align-items: center; gap: 9px; color: var(--gw-quiet); }
.gwp-crumbs li + li::before {
  content: "";
  width: 14px;
  height: 1px;
  background: rgba(92, 64, 51, .3);
}
.gwp-crumbs a { color: var(--gw-quiet); text-decoration: none; transition: color .55s var(--gw-ease); }
.gwp-crumbs a:hover { color: var(--gw-moss); }
.gwp-crumbs [aria-current] { color: var(--gw-moss); font-weight: 600; }

/* Headline */
.gwp-h1 {
  font-family: var(--gw-font-display);
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.16;
  letter-spacing: -.02em;
  font-weight: 500;
  color: var(--gw-earth);
  margin: 12px 0 0;
  text-wrap: balance;
}

.gwp-lead {
  font-size: 17px;
  line-height: 1.72;
  color: var(--gw-bark);
  max-width: 58ch;
  margin: 22px 0 0;
}

/* Hero illustration — organic frame, same geometry as the product cards */
.gwp-hero-mark {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  justify-self: end;
  border-radius: var(--gw-blob-b);
  display: grid;
  place-items: center;
  box-shadow: 0 26px 60px -34px rgba(92, 64, 51, .42);
}

.gwp-collar {
  width: 68%;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(92, 64, 51, .16));
}

.gwp-marknote {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gw-moss);
  background: rgba(250, 246, 241, .84);
  border-radius: var(--gw-r-pill);
  padding: 6px 14px;
  white-space: nowrap;
}

/* ---------- Reading column ---------- */
.gwp-body { padding: 10px 0 8px; }

.gwp-prose {
  max-width: 72ch;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--gw-bark);
}

.gwp-prose > *:first-child { margin-top: 0; }

.gwp-prose p { margin: 0 0 20px; }

.gwp-prose h2 {
  font-family: var(--gw-font-display);
  font-size: clamp(25px, 2.3vw, 33px);
  line-height: 1.28;
  letter-spacing: -.02em;
  font-weight: 500;
  color: var(--gw-earth);
  margin: 52px 0 14px;
}

.gwp-prose h3 {
  font-family: var(--gw-font-display);
  font-size: 21px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--gw-earth);
  margin: 34px 0 10px;
}

.gwp-prose ul,
.gwp-prose ol {
  margin: 0 0 22px;
  padding-left: 22px;
}
.gwp-prose li { margin: 8px 0; }
.gwp-prose li::marker { color: var(--gw-sage); }

.gwp-prose a {
  color: var(--gw-earth);
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 157, 119, .6);
  transition: color .55s var(--gw-ease), border-color .55s var(--gw-ease);
}
.gwp-prose a:hover { color: var(--gw-moss); border-bottom-color: var(--gw-moss); }

.gwp-prose strong { color: var(--gw-earth); font-weight: 600; }

.gwp-prose hr {
  border: 0;
  height: 1px;
  background: rgba(92, 64, 51, .14);
  margin: 40px 0;
}

.gwp-prose blockquote {
  margin: 30px 0;
  padding: 0 0 0 22px;
  border: 0 !important;
  border-left: 2px solid var(--gw-tan) !important;
  font-family: var(--gw-font-display);
  font-size: 20px;
  line-height: 1.6;
  color: var(--gw-earth);
}
.gwp-prose blockquote p:last-child { margin-bottom: 0; }

/* Tables (shipping rates, size rows) */
.gwp-tablewrap {
  overflow-x: auto;
  margin: 26px 0 30px;
  border: 1px solid rgba(92, 64, 51, .12);
  border-radius: var(--gw-r-sm);
  background: #fffdfa;
}
.gwp-tablewrap table { margin: 0; min-width: 420px; }
.gwp-tablewrap th:first-child,
.gwp-tablewrap td:first-child { padding-left: 22px; }
.gwp-tablewrap th:last-child,
.gwp-tablewrap td:last-child { padding-right: 22px; }

.gwp-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0 30px;
  font-size: 14.5px;
}
.gwp-prose th,
.gwp-prose td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(92, 64, 51, .12);
  vertical-align: top;
}
.gwp-prose thead th {
  font-family: var(--gw-font-body);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gw-moss);
  border-bottom: 1px solid rgba(92, 64, 51, .24);
}
.gwp-prose tbody tr:last-child td { border-bottom: 0; }

/* ---------- Content cards (raw HTML blocks in the editor) ---------- */

/* Quick-answer summary at the top of a policy page */
.gwp-summary {
  background: var(--gw-linen);
  border-radius: var(--gw-r-md);
  padding: 26px 30px;
  margin: 0 0 40px;
}
.gwp-summary > p:first-child {
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gw-moss);
  font-weight: 600;
  margin: 0 0 12px;
}
.gwp-summary ul { margin: 0; padding-left: 20px; }
.gwp-summary li { margin: 7px 0; }
.gwp-summary p { margin: 0 0 10px; }
.gwp-summary > *:last-child { margin-bottom: 0; }

/* "Waiting on the client" — deliberately visible, never disguised as copy */
.gwp-pending {
  background: #f7efe1;
  border: 1px solid rgba(176, 123, 91, .34);
  border-radius: var(--gw-r-sm);
  padding: 20px 24px;
  margin: 26px 0 30px;
  font-size: 14px;
  line-height: 1.7;
  color: #6a4a33;
}
.gwp-pending > p:first-child {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #8a5a33;
  font-weight: 700;
  margin: 0 0 10px;
}
.gwp-pending ul { margin: 8px 0 0; padding-left: 20px; }
.gwp-pending li { margin: 5px 0; }
.gwp-pending > *:last-child { margin-bottom: 0; }

/* ---------- Sections ---------- */
.gwp-sec { padding: 64px 0 0; }

.gwp-sechead { margin-bottom: 30px; }
.gwp-sechead h2 {
  font-family: var(--gw-font-display);
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.24;
  letter-spacing: -.02em;
  font-weight: 500;
  color: var(--gw-earth);
  margin: 12px 0 0;
  text-wrap: balance;
}

/* ---------- Wish grid (hub) ---------- */
.gwp-wgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.gwp-wcard {
  display: flex;
  flex-direction: column;
  background: #fffdfa;
  border: 1px solid rgba(92, 64, 51, .10);
  border-radius: var(--gw-r-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .6s var(--gw-ease), box-shadow .6s var(--gw-ease), border-color .6s var(--gw-ease);
}
.gwp-wcard:hover {
  transform: translateY(3px);
  border-color: rgba(139, 157, 119, .5);
  box-shadow: 0 22px 44px -30px rgba(92, 64, 51, .55);
}

.gwp-wart {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: 0 0 var(--gw-r-md) var(--gw-r-md);
}
.gwp-wart .gwp-collar { width: 54%; }

.gwp-wbody { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 4px; }
.gwp-wbody b {
  font-family: var(--gw-font-display);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--gw-earth);
  line-height: 1.3;
}
.gwp-wbody small { font-size: 13px; color: var(--gw-quiet); line-height: 1.6; }
.gwp-wmeta {
  margin-top: 10px;
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gw-moss);
}

/* ---------- Product cards (wish pages) ---------- */
.gwp-pgrid {
  display: grid;
  /* auto-FILL (not auto-fit): a wish page with a single product must not
     stretch one card across the whole container. */
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1180px;
}

.gwp-pc {
  display: flex;
  flex-direction: column;
  background: #fffdfa;
  border: 1px solid rgba(92, 64, 51, .10);
  border-radius: var(--gw-r-md);
  padding: 14px 14px 20px;
  text-decoration: none;
  color: inherit;
  transition: transform .6s var(--gw-ease), border-color .6s var(--gw-ease), box-shadow .6s var(--gw-ease);
}
.gwp-pc:hover {
  transform: translateY(3px);
  border-color: rgba(139, 157, 119, .5);
  box-shadow: 0 22px 44px -30px rgba(92, 64, 51, .55);
}

.gwp-part {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border-radius: var(--gw-r-sm);
  margin-bottom: 16px;
}
.gwp-part .gwp-collar { width: 62%; }

.gwp-pinfo { display: flex; flex-direction: column; gap: 5px; padding: 0 8px; }
.gwp-pinfo b {
  font-family: var(--gw-font-display);
  font-size: 19px;
  line-height: 1.34;
  font-weight: 500;
  color: var(--gw-earth);
}
.gwp-pinfo small { font-size: 12px; line-height: 1.6; color: var(--gw-quiet); }
.gwp-price {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gw-earth);
  letter-spacing: .01em;
}
.gwp-price del {
  color: var(--gw-quiet);
  font-weight: 400;
  margin-left: 6px;
  font-size: 12.5px;
  text-decoration-thickness: 1px;
}
.gwp-price ins { background: none; text-decoration: none; }

/* ---------- FAQ ---------- */
.gwp-faq {
  max-width: 82ch;
  display: grid;
  gap: 12px;
}

.gwp-faq details {
  background: #fffdfa;
  border: 1px solid rgba(92, 64, 51, .12);
  border-radius: var(--gw-r-sm);
  padding: 4px 24px;
  transition: border-color .55s var(--gw-ease), background-color .55s var(--gw-ease);
}
.gwp-faq details[open] { border-color: rgba(139, 157, 119, .55); background: #fffefb; }

.gwp-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-family: var(--gw-font-display);
  font-size: 17.5px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--gw-earth);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: color .55s var(--gw-ease);
}
.gwp-faq summary::-webkit-details-marker { display: none; }
.gwp-faq summary:hover { color: var(--gw-moss); }

/* Plus / minus marker drawn in CSS — no icon font, no SVG sprite */
.gwp-faq summary::after {
  content: "";
  flex: 0 0 auto;
  margin-left: auto;
  margin-top: 6px;
  width: 15px;
  height: 15px;
  background:
    linear-gradient(var(--gw-moss), var(--gw-moss)) center / 100% 1.6px no-repeat,
    linear-gradient(var(--gw-moss), var(--gw-moss)) center / 1.6px 100% no-repeat;
  transition: transform .55s var(--gw-ease);
}
.gwp-faq details[open] summary::after { transform: rotate(45deg); }

.gwp-faq-body { padding: 0 0 20px; }
.gwp-faq-body p { margin: 0; font-size: 15px; line-height: 1.75; color: var(--gw-bark); max-width: 68ch; }

/* ---------- Sibling links ---------- */
.gwp-sib { padding: 56px 0 0; }
.gwp-siblinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.gwp-siblinks a {
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gw-bark);
  text-decoration: none;
  padding: 11px 20px;
  background: var(--gw-linen);
  border-radius: var(--gw-r-pill);
  transition: background-color .55s var(--gw-ease), color .55s var(--gw-ease), transform .55s var(--gw-ease);
}
.gwp-siblinks a:hover {
  background: var(--gw-sage);
  color: var(--gw-cream);
  transform: translateY(2px);
}

/* ---------- Help block ---------- */
.gwp-help { padding: 64px 0 0; }

.gwp-helpcard {
  background: linear-gradient(150deg, #f2ece1, #e9e0d4);
  border-radius: var(--gw-r-lg);
  padding: 48px 52px;
  position: relative;
  overflow: clip;
}
.gwp-helpcard::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at 40% 40%, rgba(139, 157, 119, .28), transparent 68%);
  border-radius: var(--gw-blob-a);
  pointer-events: none;
}
.gwp-helpcard h2 {
  font-family: var(--gw-font-display);
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.26;
  font-weight: 500;
  color: var(--gw-earth);
  margin: 12px 0 12px;
}
.gwp-helpcard p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--gw-bark);
  max-width: 62ch;
  margin: 0 0 26px;
}

.gwp-helpbtns { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }

.gwp-btn {
  display: inline-block;
  font-family: var(--gw-font-body);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: var(--gw-r-pill);
  background: var(--gw-earth);
  color: var(--gw-cream);
  border: 1px solid var(--gw-earth);
  transition: background-color .6s var(--gw-ease), transform .6s var(--gw-ease), color .6s var(--gw-ease);
}
.gwp-btn:hover { background: #463026; color: var(--gw-cream); transform: translateY(2px); }

.gwp-btn-ghost {
  background: transparent;
  color: var(--gw-earth);
  border-color: rgba(92, 64, 51, .38);
}
.gwp-btn-ghost:hover { background: rgba(92, 64, 51, .08); color: var(--gw-earth); }

/* ---------- Journal index (/journal/) ---------- */
.gwp-jgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
  max-width: 1180px;
}
.gwp-jcard {
  display: flex;
  flex-direction: column;
  background: var(--gw-linen);
  border: 1px solid rgba(92, 64, 51, .12);
  border-radius: var(--gw-r-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--gw-earth);
  transition: transform .6s var(--gw-ease), box-shadow .6s var(--gw-ease);
}
.gwp-jcard:hover { transform: translateY(2px); box-shadow: 0 14px 34px rgba(92, 64, 51, .12); }
.gwp-jpart {
  display: flex; align-items: center; justify-content: center;
  height: 190px;
  background: radial-gradient(circle at 50% 45%, #EDE0CE, #FAF6F1 74%);
  border-bottom: 1px solid rgba(92, 64, 51, .08);
}
.gwp-jpart .gwp-collar { width: 42%; }
.gwp-jbody { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.gwp-jmeta {
  font-family: var(--gw-font-body); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gw-moss); font-weight: 600;
}
.gwp-jbody b {
  font-family: var(--gw-font-display); font-size: 22px; line-height: 1.3;
  font-weight: 500; color: var(--gw-earth);
}
.gwp-jbody small { font-size: 14px; line-height: 1.65; color: var(--gw-bark); }
.gwp-jempty .gwp-pending { max-width: 720px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .gwp-wrap { padding: 0 30px; }
  .gwp-hero-in { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  /* Keep the reading order: breadcrumb → eyebrow → H1 → lead → illustration. */
  .gwp-hero-mark { justify-self: start; max-width: 320px; }
  .gwp-wgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gwp-helpcard { padding: 38px 32px; }
}

@media (max-width: 640px) {
  .gwp-wrap { padding: 0 20px; }
  .gwp-hero { padding: 34px 0 30px; }
  .gwp-hero::before { height: 320px; inset: -80px -30% auto -30%; }
  .gwp-hero-mark { max-width: 240px; }
  .gwp-h1 { font-size: clamp(30px, 8vw, 42px); }
  .gwp-lead { font-size: 15.5px; }
  .gwp-prose { font-size: 15.5px; line-height: 1.78; }
  .gwp-prose h2 { margin-top: 40px; }
  .gwp-wgrid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .gwp-sec { padding-top: 46px; }
  .gwp-faq details { padding: 2px 18px; }
  .gwp-faq summary { font-size: 16px; padding: 15px 0; }
  .gwp-helpcard { padding: 30px 24px; border-radius: var(--gw-r-md); }
  .gwp-helpbtns .gwp-btn { width: 100%; text-align: center; }
  /* A two-column rate table fits a 390px viewport — no horizontal scroll needed. */
  .gwp-tablewrap table { min-width: 0; }
  .gwp-tablewrap th, .gwp-tablewrap td { padding: 11px 14px; font-size: 13.5px; }
  .gwp-tablewrap th:first-child, .gwp-tablewrap td:first-child { padding-left: 16px; }
  .gwp-tablewrap th:last-child, .gwp-tablewrap td:last-child { padding-right: 16px; }
  .gwp-summary { padding: 22px 20px; }
  .gwp-pending { padding: 18px 18px; }
  .gwp-siblinks a { padding: 10px 16px; font-size: 10.5px; }
}

/* Respect the reduced-motion preference — the slow easing is decorative only. */
@media (prefers-reduced-motion: reduce) {
  .gwp-main *,
  .gwp-main *::before,
  .gwp-main *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
