:root {
  --gew-primary: #ffb7a0;
  --gew-secondary: #ffd4a3;
  --gew-accent: #ff8c42;
  --gew-bg: #fff9f5;
  --gew-ink: #2a241f;
  --gew-stone: #3a322c;
  --gew-stone-2: #4d433b;
  --gew-line: #e4d2c4;
  --gew-page: 1120px;
  --gew-header: 76px;
}

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

html { scroll-padding-top: calc(var(--gew-header) + 12px); }

body {
  margin: 0;
  background: var(--gew-bg);
  color: var(--gew-ink);
  font-family: "IBM Plex Sans", "Noto Sans", sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  background:
    radial-gradient(ellipse at 12% 8%, rgba(255, 183, 160, 0.55), transparent 42%),
    radial-gradient(ellipse at 90% 0%, rgba(255, 212, 163, 0.4), transparent 36%),
    repeating-linear-gradient(115deg, transparent 0 18px, rgba(58, 50, 44, 0.025) 18px 19px);
}

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

a { color: #9a4e1c; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

.gewVisually {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

h1, h2, h3, .gewLogo-word {
  font-family: Fraunces, Georgia, serif;
  font-weight: 620;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 { font-size: clamp(2rem, 4vw, 3.3rem); margin: 0 0 0.6rem; }
h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); margin: 0 0 0.7rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.4rem; }

p { margin: 0 0 0.9rem; }

.gewWrap {
  width: min(var(--gew-page), calc(100% - 40px));
  margin: 0 auto;
}

.gewHeader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--gew-header);
  background: var(--gew-stone);
  color: #fff6ee;
}

.gewHeader-bar {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
}

.gewNav {
  display: flex;
  align-items: center;
  gap: 8px 18px;
  margin-right: auto;
}

.gewNav-link {
  color: #fff6ee;
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
  padding: 8px 0;
}

.gewNav-link::after,
.gewProse a::after,
.gewFooter a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background: var(--gew-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.gewFooter a { position: relative; }

.gewNav-link:hover::after,
.gewNav-link:focus-visible::after,
.gewProse a:hover::after,
.gewFooter a:hover::after {
  transform: scaleX(1);
}

.gewHeader-logo {
  width: 180px;
  height: 45px;
  flex: 0 0 auto;
}

.gewHeader-logo img { width: 180px; height: 45px; }

.gewBtn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  border: 0;
  border-radius: 4px;
  background: var(--gew-accent);
  color: #2a241f;
  font: inherit;
  font-weight: 620;
  text-decoration: none;
  cursor: pointer;
}

.gewBtn-ghost {
  background: transparent;
  color: #fff6ee;
  box-shadow: inset 0 0 0 1.5px #ffd4a3;
}

.gewBtn-ink {
  background: var(--gew-stone);
  color: #fff6ee;
}

.gewRipple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 249, 245, 0.55);
  animation: gew-ripple 0.6s ease-out;
  pointer-events: none;
  z-index: 1;
}

@keyframes gew-ripple {
  to { transform: scale(4); opacity: 0; }
}

.gewBurger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: 8px;
  border: 0;
  background: transparent;
  color: #fff6ee;
  cursor: pointer;
  flex: 0 0 auto;
}

.gewBurger span,
.gewBurger span::before,
.gewBurger span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.gewBurger span::before,
.gewBurger span::after {
  content: "";
  position: absolute;
  left: 0;
}

.gewBurger span::before { top: -6px; }
.gewBurger span::after { top: 6px; }

.gewDrawer,
.gewScrim {
  position: fixed;
  z-index: 50;
}

.gewScrim {
  inset: 0;
  background: rgba(42, 36, 31, 0.45);
}

.gewDrawer {
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(85vw, 400px);
  background: #fff9f5;
  color: var(--gew-ink);
  padding: 18px 22px 32px;
  overflow: auto;
  box-shadow: -12px 0 40px rgba(42, 36, 31, 0.18);
}

.gewDrawer-close {
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--gew-secondary);
  font-size: 1.4rem;
  cursor: pointer;
}

.gewDrawer-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.gewDrawer-list a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--gew-line);
  color: var(--gew-ink);
  text-decoration: none;
  font-size: 1.15rem;
}

body.gew-lock { overflow: hidden; }

.gewMain { position: relative; z-index: 1; padding-top: var(--gew-header); }

.gewHero {
  background:
    linear-gradient(160deg, #4d433b 0%, #3a322c 55%, #2a241f 100%);
  color: #fff6ee;
  padding: 48px 0 36px;
}

.gewHero h1 { color: #fff6ee; }

.gewHero-lead { max-width: 40rem; color: #ffd4a3; }

.gewMosaic {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  grid-template-rows: 180px 150px;
  gap: 12px;
  margin-top: 28px;
}

.gewMosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.gewMosaic img:first-child { grid-row: 1 / span 2; }
.gewMosaic img:nth-child(2) { grid-column: 2 / span 2; }

.gewHero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.gewLine {
  position: relative;
  margin: 28px 0 64px;
  padding-left: 0;
}

.gewLine::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--gew-accent), var(--gew-primary));
}

.gewNode {
  width: min(46%, 520px);
  margin: 0 0 28px;
  position: relative;
}

.gewNode:nth-child(odd) { margin-right: auto; }
.gewNode:nth-child(even) { margin-left: auto; }

.gewNode::before {
  content: "";
  position: absolute;
  top: 28px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gew-accent);
  border: 3px solid var(--gew-bg);
}

.gewNode:nth-child(odd)::before { right: -8px; }
.gewNode:nth-child(even)::before { left: -8px; }

.gewCard {
  background: #fff;
  padding: 18px 18px 16px;
  -webkit-mask:
    radial-gradient(circle 12px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 12px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle 12px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 12px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
}

.gewRank-head {
  display: flex;
  gap: 14px;
  align-items: center;
}

.gewRank-icon {
  width: 72px;
  height: 72px;
  border-radius: 22%;
  flex: 0 0 auto;
}

.gewRank-still {
  margin: 14px 0;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.gewFacts { font-size: 0.92rem; color: #5c5148; }
.gewTag {
  display: inline-block;
  margin: 4px 6px 0 0;
  padding: 2px 8px;
  background: var(--gew-secondary);
  border-radius: 999px;
  font-size: 0.78rem;
}

.gewRank-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.gewBar { margin: 10px 0 16px; }
.gewBar-label { display: flex; justify-content: space-between; font-size: 0.92rem; }
.gewBar-track { height: 10px; background: #f3e6dc; border-radius: 99px; overflow: hidden; }
.gewBar-fill { height: 100%; background: var(--gew-accent); }

.gewFaq-item { border-top: 1px solid var(--gew-line); }
.gewFaq-item button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 620;
  padding: 14px 0;
  cursor: pointer;
  min-height: 44px;
}
.gewFaq-panel { padding: 0 0 12px; }

.gewTable-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--gew-line); vertical-align: top; }

.gewCta {
  background: var(--gew-secondary);
  padding: 36px 0;
}

.gewFooter {
  background: var(--gew-stone);
  color: #fff6ee;
  text-align: center;
  padding: 36px 0 28px;
  position: relative;
  z-index: 1;
}

.gewFooter-logo { width: 180px; height: 45px; margin: 0 auto 10px; }
.gewFooter-logo img { width: 180px; height: 45px; margin: 0 auto; }
.gewFooter-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin: 14px 0; }
.gewFooter a { color: #ffd4a3; text-decoration: none; }
.gewFine { font-size: 0.85rem; color: #e7d5c8; max-width: 46rem; margin: 0 auto 8px; }

.gewProse { padding: 36px 0 64px; max-width: 760px; }
.gewProse-wide { max-width: none; }

.gewCrumb {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: 22px;
  font-size: 0.88rem;
}
.gewCrumb a { color: #9a4e1c; }

.gewTopic { margin: 28px 0; }
.gewTopic-row {
  display: grid;
  grid-template-columns: 9rem 1fr 8rem;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gew-line);
  text-decoration: none;
  color: inherit;
}
.gewTopic-row strong { font-family: Fraunces, Georgia, serif; }

.gewForm { display: grid; gap: 12px; }
.gewForm label { display: grid; gap: 6px; font-weight: 620; }
.gewForm input, .gewForm textarea {
  font: inherit;
  padding: 12px;
  border: 1px solid var(--gew-line);
  background: #fff;
  border-radius: 4px;
  min-height: 44px;
}
.gewForm textarea { min-height: 140px; }

.gewCookie {
  position: fixed;
  z-index: 60;
  right: 16px;
  bottom: 16px;
  width: min(340px, calc(100vw - 32px));
  background: #fff;
  color: var(--gew-ink);
  padding: 16px;
  border: 1px solid var(--gew-line);
  box-shadow: 0 12px 30px rgba(42, 36, 31, 0.12);
}

.gewAlpha { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 24px; }
.gewAlpha a { min-width: 36px; text-align: center; }

.gew-in { animation: gew-k-blur 0.5s ease both; }
@keyframes gew-k-blur { from { filter: blur(8px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .gew-in, .gewRipple { animation: none; }
}

@media (max-width: 900px) {
  .gewLine::before { left: 16px; }
  .gewNode, .gewNode:nth-child(odd), .gewNode:nth-child(even) {
    width: auto;
    margin-left: 36px;
  }
  .gewNode::before, .gewNode:nth-child(odd)::before, .gewNode:nth-child(even)::before {
    left: -28px;
    right: auto;
  }
  .gewMosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 140px 120px 120px;
  }
  .gewMosaic img:first-child { grid-row: auto; grid-column: 1 / -1; height: 180px; }
  .gewMosaic img:nth-child(2) { grid-column: auto; }
  .gewTopic-row { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 1024px) {
  .gewNav { display: none; }
  .gewHeader-cta { display: none; }
  .gewHeader-logo { margin-right: auto; }
}

@media (max-width: 700px) {
  .gewHeader-logo, .gewHeader-logo img, .gewFooter-logo, .gewFooter-logo img {
    width: 120px;
    height: 30px;
  }
  .gewHero-actions .gewBtn, .gewRank-actions .gewBtn, .gewCta .gewBtn { width: 100%; }
  .gewWrap { width: min(var(--gew-page), calc(100% - 28px)); }
}
