:root {
  --bg: #F7F2EA;
  --card: #FFF9F2;
  --accent: #B86B32;
  --accent2: #D48C55;
  --sand: #E9C9A5;
  --text: #2C241E;
  --muted: #786B61;
  --spine: 168px;
  --radius: 18px;
  --font: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse at 12% 8%, rgba(233, 201, 165, 0.55), transparent 42%),
    radial-gradient(ellipse at 90% 20%, rgba(184, 107, 50, 0.12), transparent 40%),
    var(--bg);
  line-height: 1.55;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* spine_left */
.spine {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--spine);
  height: 100vh;
  padding: 28px 18px;
  background: linear-gradient(180deg, #fff9f2 0%, #f0e4d4 100%);
  border-right: 1px solid rgba(184, 107, 50, 0.18);
  display: flex;
  flex-direction: column;
  gap: 28px;
  z-index: 20;
}
.spine__brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--text);
}
.spine__brand span {
  display: block;
  font-family: var(--font);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.spine__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.spine__nav a {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
}
.spine__nav a:hover,
.spine__nav a.is-active {
  background: rgba(184, 107, 50, 0.12);
  color: var(--accent);
  text-decoration: none;
}
.spine__foot {
  margin-top: auto;
  font-size: 0.72rem;
  color: var(--muted);
}

.page {
  margin-left: var(--spine);
  padding: 0 40px 80px;
}

/* section intros — right_aligned_blocks */
.section-intro {
  max-width: 520px;
  margin: 72px 0 28px auto;
  text-align: right;
}
.section-intro h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 8px;
  font-weight: 500;
}
.section-intro p {
  margin: 0;
  color: var(--muted);
}

/* hero split_asymmetric */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  min-height: 78vh;
  padding: 48px 0 24px;
}
.hero__copy h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  line-height: 1.05;
  margin: 0 0 10px;
  font-weight: 500;
}
.hero__copy .line2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero__copy .tagline {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34ch;
  margin-bottom: 22px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
}
.btn--fill {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #fff;
}
.btn--ghost {
  background: var(--card);
  color: var(--accent);
  border-color: rgba(184, 107, 50, 0.35);
}
.hero__visual {
  position: relative;
  min-height: 360px;
}
.hero__visual img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 28px 8px 28px 8px;
  box-shadow: 0 18px 40px rgba(44, 36, 30, 0.12);
}
.hero__visual::after {
  content: "";
  position: absolute;
  inset: auto -16px -16px auto;
  width: 42%;
  height: 42%;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--sand), transparent);
  z-index: -1;
}

/* cork_notes features */
.cork {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(184, 107, 50, 0.04) 0 2px,
      transparent 2px 14px
    ),
    linear-gradient(180deg, #e8d5b8, #dcc3a0);
  border-radius: 24px;
  padding: 36px 28px 44px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px;
  box-shadow: inset 0 0 0 1px rgba(44, 36, 30, 0.08);
}
.note {
  background: var(--card);
  border-radius: 4px 4px 10px 10px;
  padding: 18px 18px 22px;
  box-shadow: 2px 6px 0 rgba(44, 36, 30, 0.08);
  transform: rotate(-1.2deg);
  position: relative;
}
.note:nth-child(2) { transform: rotate(1.4deg); margin-top: 18px; }
.note:nth-child(3) { transform: rotate(0.8deg); }
.note:nth-child(4) { transform: rotate(-1.6deg); margin-top: 10px; }
.note::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e8b48a, var(--accent));
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.note h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 4px 0 8px;
  font-weight: 500;
}
.note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* mosaic_grid screens */
.mosaic {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
}
.mosaic figure {
  margin: 0;
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(184, 107, 50, 0.14);
}
.mosaic figure:first-child {
  grid-row: span 2;
}
.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  min-height: 180px;
}
.mosaic figure:first-child img { min-height: 420px; }
.mosaic figcaption {
  padding: 10px 12px;
  font-size: 0.78rem;
  color: var(--muted);
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.gallery-strip img {
  border-radius: 14px;
  height: 180px;
  width: 100%;
  object-fit: cover;
}

/* tab_switch legal */
.legal {
  margin-top: 40px;
  background: var(--card);
  border-radius: 22px;
  border: 1px solid rgba(184, 107, 50, 0.16);
  overflow: hidden;
}
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(184, 107, 50, 0.16);
}
.tabs button {
  flex: 1;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 16px;
  font: inherit;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.tabs button[aria-selected="true"] {
  color: var(--accent);
  box-shadow: inset 0 -3px 0 var(--accent);
  background: rgba(184, 107, 50, 0.06);
}
.tab-panel {
  display: none;
  padding: 28px 28px 36px;
}
.tab-panel.is-active { display: block; }
.tab-panel h2 {
  font-family: var(--serif);
  font-size: 1.7rem;
  margin: 0 0 12px;
  font-weight: 500;
}
.tab-panel h3 {
  margin: 22px 0 8px;
  font-size: 1.05rem;
}
.tab-panel p, .tab-panel li {
  color: var(--muted);
  font-size: 0.95rem;
}
.tab-panel ul { padding-left: 1.2rem; }

.site-footer {
  margin: 48px 0 20px;
  text-align: right;
  color: var(--muted);
  font-size: 0.85rem;
}

.mobile-dock {
  display: none;
}

@media (max-width: 980px) {
  .spine { display: none; }
  .page { margin-left: 0; padding: 20px 18px 100px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__visual img { height: 280px; }
  .cork { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic figure:first-child { grid-row: auto; grid-column: span 2; }
  .mosaic figure:first-child img { min-height: 280px; }
  .gallery-strip { grid-template-columns: 1fr; }
  .section-intro { margin-right: 0; text-align: left; max-width: none; }
  .mobile-dock {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    background: rgba(255, 249, 242, 0.94);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(184, 107, 50, 0.2);
    border-radius: 18px;
    padding: 10px;
    gap: 6px;
    z-index: 30;
    justify-content: space-around;
  }
  .mobile-dock a {
    color: var(--muted);
    font-size: 0.78rem;
    text-decoration: none;
    padding: 8px;
  }
}
