/*
Theme Name: Gable
Author: Barron AI Solutions
Text Domain: gable
*/

/* DESIGN_IDENTITY
   Gable — electric cobalt consultancy, not apricot poster, not moss plaque
   WOULD_LOOK_WRONG_ON: saltline — sand plaque + serif left + cream card; gable-v2 — flat apricot Syne poster
   DESIGN_REFS: https://oci.madebybuzzworthy.com/ (Awwwards SOTD Mar 2026, #1925AA/#E8E6E0, parallax cards)
                https://www.monads.ch/ (HM 2025, high-chroma accent on near-black, motion)
   1. canvas: cobalt #1925AA + stone #E8E6E0 with paper-fibers / wavecut
   2. type: Instrument Serif + Schibsted Grotesk
   3. hero: full-bleed cobalt field (not a chip), copy | notepad, circle table with parallax
   4. rhythm: marquee + spoken lines that reveal on scroll
   5. motion: GSAP ScrollTrigger parallax + marquee + hover lift
   6. accent: ember #e07a3d on cobalt
*/

:root {
  --ink: #1925aa;
  --ink-deep: #10186e;
  --stone: #e8e6e0;
  --paper: #f4f2ea;
  --ember: #e07a3d;
  --mute: #5c5a72;
  --well: min(1120px, calc(100% - 32px));
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background-color: var(--stone);
  background-image:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(25, 37, 170, 0.08), transparent 60%),
    url("textures/paper-fibers.png");
  color: #1a1a22;
  font-family: "Schibsted Grotesk", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }

.mast {
  width: 100%;
  background-color: var(--ink);
  background-image:
    linear-gradient(180deg, rgba(16, 24, 110, 0.35), transparent),
    url("textures/wavecut.png");
  color: var(--stone);
}
.mast-inner {
  width: var(--well);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding: 14px 0;
}
.mast-nav { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.mark {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.55rem;
  font-style: italic;
}
.mark svg { width: 22px; height: 22px; }
.mast-nav a { text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.mast-nav a:hover { color: var(--ember); transform: translateY(-1px); }
.ask {
  text-decoration: none;
  background: var(--ember);
  color: #1a120c;
  font-weight: 700;
  padding: 9px 16px;
  box-shadow: 0 8px 20px rgba(224, 122, 61, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.ask:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(224, 122, 61, 0.45); }

.hero {
  display: grid;
  gap: 28px;
  width: 100%;
  padding: 36px max(16px, calc((100% - 1120px) / 2)) 28px;
  min-height: 520px;
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse 70% 80% at 80% 20%, rgba(224, 122, 61, 0.22), transparent 55%),
    linear-gradient(180deg, var(--ink-deep), var(--ink)),
    url("textures/wavecut.png");
  color: var(--stone);
  align-items: start;
}
section.hero h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  line-height: 0.95;
  margin: 0 0 16px;
  max-width: 11ch;
  color: #f6f3ea;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.hero .lede { margin: 0 0 14px; max-width: 36rem; color: #d9d6cc; }
.hero .where { margin: 0; font-weight: 700; color: var(--ember); }

.consult {
  background-color: var(--paper);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent),
    url("textures/cream-paper.png");
  color: #1a1a22;
  padding: 22px 20px 18px;
  box-shadow:
    0 22px 48px rgba(16, 24, 110, 0.35),
    0 2px 0 rgba(255, 255, 255, 0.7) inset;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.consult:hover { transform: translateY(-4px); box-shadow: 0 28px 56px rgba(16, 24, 110, 0.42); }
.consult h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 1.6rem;
  margin: 0 0 6px;
}
.consult p { margin: 0 0 14px; color: var(--mute); font-size: 0.92rem; }
.consult label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.consult input, .consult textarea, .consult select {
  font: inherit;
  font-weight: 400;
  border: 0;
  border-bottom: 1px solid rgba(25, 37, 170, 0.25);
  background: transparent;
  padding: 7px 0;
  width: 100%;
}
.consult textarea { min-height: 76px; resize: vertical; }
.consult button {
  font: inherit;
  font-weight: 700;
  background: var(--ink);
  color: var(--stone);
  border: 0;
  min-height: 46px;
  width: 100%;
  cursor: pointer;
  margin-top: 6px;
  box-shadow: 0 10px 24px rgba(16, 24, 110, 0.28);
  transition: transform 180ms ease, background 180ms ease;
}
.consult button:hover { transform: translateY(-2px); background: var(--ink-deep); }
.ok {
  background: var(--ember);
  color: #1a120c;
  padding: 12px 12px;
  margin: 0 0 12px;
  font-weight: 700;
}

.tape {
  overflow: hidden;
  background-color: var(--ember);
  background-image: url("textures/light-wool.png");
  color: #1a120c;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 0;
  box-shadow: 0 8px 24px rgba(224, 122, 61, 0.25);
}
.tape-track {
  display: flex;
  gap: 2.4rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.round {
  width: min(380px, 72vw);
  aspect-ratio: 1;
  margin: 28px auto 8px;
  border-radius: 50%;
  background: #cfc8b8 center / cover no-repeat;
  box-shadow:
    0 30px 60px rgba(16, 24, 110, 0.28),
    0 0 0 10px var(--stone);
}

.talk { width: var(--well); margin: 0 auto; padding: 40px 0 16px; }
.talk > h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 8px;
  color: var(--ink);
}
.talk > p { margin: 0 0 22px; max-width: 38rem; color: var(--mute); }
.line {
  display: block;
  text-decoration: none;
  padding: 16px 0;
  border-top: 1px solid rgba(25, 37, 170, 0.18);
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 1.45rem;
  transition: transform 180ms ease, color 180ms ease;
}
.line:last-of-type { border-bottom: 1px solid rgba(25, 37, 170, 0.18); }
.line small {
  display: block;
  font-family: "Schibsted Grotesk", sans-serif;
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ember);
  margin-top: 4px;
}
.line:hover { transform: translateX(8px); color: var(--ink); }

.quiet {
  width: var(--well);
  margin: 32px auto;
  padding: 8px 0 8px 18px;
  border-left: 6px solid var(--ember);
}
.quiet blockquote {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.2;
  color: var(--ink);
}
.quiet cite { display: block; margin-top: 10px; font-style: normal; font-size: 0.9rem; color: var(--mute); }

.notes { width: var(--well); margin: 0 auto 48px; }
.notes h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 2rem;
  color: var(--ink);
  margin: 0 0 14px;
}
.note-list { display: grid; gap: 14px; }
.note {
  text-decoration: none;
  background-color: var(--paper);
  background-image: url("textures/cream-paper.png");
  padding: 16px 18px;
  box-shadow: 0 12px 28px rgba(16, 24, 110, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.note:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(16, 24, 110, 0.16); }
.note time { font-weight: 700; color: var(--ember); font-size: 0.8rem; }
.note h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  margin: 4px 0 6px;
  color: var(--ink);
}
.note p { margin: 0; color: var(--mute); }

article.page, section.page { width: var(--well); margin: 0 auto; padding: 32px 0 56px; }
.page > h1, .page-head h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  line-height: 1;
  margin: 0 0 14px;
  max-width: 14ch;
  color: var(--ink);
}
.page .intro { max-width: 40rem; color: var(--mute); }
.page-head {
  display: grid;
  gap: 20px;
  margin: 0 0 12px;
  align-items: start;
}
.page-head .photo-well {
  width: min(280px, 72vw);
  margin: 0;
}
.page-head .consult { margin: 0; }
.band {
  display: grid;
  gap: 12px;
  padding: 22px 0;
  border-top: 1px solid rgba(25, 37, 170, 0.18);
  scroll-margin-top: 16px;
}
.band h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 1.6rem;
  margin: 0;
  color: var(--ink);
}
.photo-well {
  width: min(280px, 72vw);
  aspect-ratio: 1;
  border-radius: 50%;
  margin: 10px 0 18px;
  background: #cfc8b8 center / cover no-repeat;
  box-shadow: 0 24px 48px rgba(16, 24, 110, 0.2);
}

.article { width: min(700px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 64px; }
.article h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  color: var(--ink);
  margin: 8px 0 16px;
}
.article time { font-weight: 700; color: var(--ember); }

.sill {
  width: 100%;
  background-color: var(--ink-deep);
  background-image:
    linear-gradient(180deg, rgba(25, 37, 170, 0.4), transparent),
    url("textures/wavecut.png");
  color: var(--stone);
  padding: 36px 0 28px;
}
.sill-inner { width: var(--well); margin: 0 auto; display: grid; gap: 16px; }
.sill a { color: var(--ember); text-decoration: none; }
.sill a:hover { color: var(--stone); }
.sill .mark { color: var(--stone); }
.sill nav { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.sill p { margin: 0; max-width: 36rem; color: rgba(232, 230, 224, 0.78); }

@media (prefers-reduced-motion: reduce) {
  .tape-track { animation: none; }
}

@media (min-width: 860px) {
  body { font-size: 18px; }
  .mast-nav { flex: 0 1 auto; margin-left: auto; }
  .hero {
    grid-template-columns: 1.15fr minmax(280px, 340px);
    gap: 40px 48px;
    padding: 48px max(16px, calc((100% - 1120px) / 2)) 40px;
  }
  .note-list { grid-template-columns: 1fr 1fr 1fr; }
  .band { grid-template-columns: 0.8fr 1.2fr; }
  .sill-inner { grid-template-columns: 1.4fr 1fr; }
  .round { margin: 36px auto 20px max(16px, calc((100% - 1120px) / 2)); }
  .page-head {
    grid-template-columns: 1fr minmax(260px, 340px);
    gap: 28px 40px;
  }
  .page-head .photo-well { width: 100%; max-width: 340px; }
}
