/* Skillory — editorial knowledge-hub design */
:root {
  --paper: #f3eee4;
  --paper-2: #ebe4d6;
  --cream: #fffbf3;
  --ink: #171512;
  --ink-soft: #3b362f;
  --muted: #6b645a;
  --line: #d9d0c1;
  --line-strong: #c9beab;
  --copper: #c45c26;
  --copper-dark: #9a4318;
  --copper-soft: #f3e0d2;
  --teal: #1a4a44;
  --teal-2: #246058;
  --teal-soft: #d7ebe6;
  --gold: #c9a227;
  --danger: #8c2f1b;
  --ok: #2c6b46;
  --shadow: 0 18px 40px rgba(23, 21, 18, 0.08);
  --radius: 18px;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "Figtree", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "ui-monospace", monospace;
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 480px at 10% -10%, rgba(196, 92, 38, 0.08), transparent 50%),
    radial-gradient(900px 420px at 100% 0%, rgba(26, 74, 68, 0.08), transparent 46%),
    var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.011em;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
  color: var(--cream);
}
a { color: var(--teal); }
a:hover { color: var(--copper-dark); }
code, kbd { font-family: var(--mono); font-size: 0.9em; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(22px) saturate(1.15);
  background: rgba(243, 238, 228, 0.8);
  border-bottom: 1px solid rgba(217, 208, 193, 0.85);
  box-shadow: 0 10px 30px rgba(23, 21, 18, 0.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: linear-gradient(165deg, #246058, #163834);
  color: var(--cream);
  border-radius: 9px;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.38), inset 0 0 0 1px rgba(255,255,255,0.16);
}
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 550;
  padding: 8px 11px;
  border-radius: 999px;
}
.nav a:hover, .nav a.is-active {
  background: var(--cream);
  color: var(--ink);
}
.nav .cta,
.nav a.cta.is-active {
  background: var(--ink);
  color: var(--cream) !important;
  margin-left: 6px;
  padding: 8px 14px;
}
.nav .cta:hover { background: var(--teal); color: var(--cream) !important; }
.menu-btn {
  display: none;
  border: 1px solid var(--line-strong);
  background: var(--cream);
  border-radius: 10px;
  padding: 8px 11px;
  font: inherit;
  cursor: pointer;
}

.hero { padding: 72px 0 36px; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--copper-dark);
  font-weight: 650;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
h1, h2, h3, h4 { font-family: var(--serif); letter-spacing: -0.035em; line-height: 1.15; }
h1 { font-size: clamp(2.55rem, 6vw, 4.55rem); margin: 14px 0 18px; font-weight: 520; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0 0 14px; }
h3 { font-size: 1.28rem; margin: 0 0 8px; }
.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 38rem;
  margin: 0 0 28px;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 650;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--teal); color: var(--cream); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--cream); color: var(--ink); }
.btn-copper { background: var(--copper); color: white; }
.btn-copper:hover { background: var(--copper-dark); color: white; }
.btn[disabled] { opacity: 0.7; cursor: not-allowed; }

.hero-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  transform: rotate(1.1deg);
}
.hero-card .stamp {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.stat {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.stat b { display: block; font-family: var(--serif); font-size: 1.6rem; }
.stat span { color: var(--muted); font-size: 0.88rem; }

section { padding: 64px 0; position: relative; z-index: 1; }
.section-head { max-width: 40rem; margin-bottom: 28px; }
.muted { color: var(--muted); }

.card-grid, .skill-grid, .pack-grid, .guide-grid, .price-grid {
  display: grid;
  gap: 18px;
}
.card-grid, .skill-grid { grid-template-columns: repeat(3, 1fr); }
.guide-grid, .pack-grid { grid-template-columns: repeat(2, 1fr); }
.price-grid { grid-template-columns: repeat(4, 1fr); }

.card, .skill-card, .pack-card, .guide-card, .price-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
a.card:hover, a.skill-card:hover, a.guide-card:hover, a.pack-card:hover, .pack-card:hover, .price-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(23, 21, 18, 0.12);
  border-color: #b7aa94;
  color: inherit;
}
.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-claude { background: var(--copper-soft); color: var(--copper-dark); }
.badge-gpt { background: #e7e4f6; color: #433889; }
.badge-free { background: var(--teal-soft); color: var(--teal); }
.badge-premium { background: #f6e7b8; color: #6d5410; }
.badge-cat { background: var(--paper-2); color: var(--ink-soft); }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.skill-card h3, .guide-card h3, .pack-card h3 { margin-top: 4px; }
.skill-card p, .guide-card p, .pack-card p { color: var(--ink-soft); margin: 0; flex: 1; }
.more { font-weight: 700; color: var(--teal); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  padding: 8px 4px;
}
.num {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--copper);
  display: block;
  margin-bottom: 8px;
}

.band {
  background: var(--teal);
  color: var(--cream);
  border-radius: 28px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  align-items: center;
}
.band h2 { color: white; }
.band p { color: #d7ebe6; }
.band .btn-primary { background: var(--cream); color: var(--ink); }
.band .btn-primary:hover { background: white; }

.newsletter, .notice, .callout {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
}
.form-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
input, select, textarea {
  font: inherit;
  border: 1px solid var(--line-strong);
  background: white;
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
  width: 100%;
}
.form-row input { flex: 1; min-width: 220px; width: auto; }
label { display: block; font-weight: 650; margin: 14px 0 6px; }
.form-note { color: var(--muted); font-size: 0.92rem; margin-top: 10px; }
.form-ok {
  display: none;
  margin-top: 12px;
  color: var(--ok);
  font-weight: 650;
}
.form-ok.show { display: block; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 22px; }
.chip {
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  cursor: pointer;
  color: var(--ink-soft);
}
.chip.is-on, .chip:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.search {
  width: 100%;
  margin: 8px 0 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: var(--cream);
  font: inherit;
}
.empty { display: none; padding: 40px 0; color: var(--muted); }
.empty.show { display: block; }

.article { max-width: 760px; }
.article h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
.article h2 { margin-top: 2rem; }
.article h3 { margin-top: 1.4rem; }
.article p { margin: 0 0 1rem; }
.article ul, .article ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.article li { margin: 0.3rem 0; }
.article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 0 0 1.2rem;
  background: var(--cream);
}
.article th, .article td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.article th { background: var(--paper-2); }
blockquote {
  margin: 0 0 1.2rem;
  padding: 8px 0 8px 18px;
  border-left: 3px solid var(--copper);
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.15rem;
}
.source-list a { word-break: break-word; }

.pre-wrap { position: relative; margin: 16px 0 24px; }
pre {
  background: #171512;
  color: #f6efe3;
  border-radius: 16px;
  padding: 18px 18px 22px;
  overflow: auto;
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.55;
  white-space: pre-wrap;
}
.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
}
.copy-btn:hover { background: rgba(255,255,255,0.2); }

.howto {
  display: grid;
  gap: 12px;
  margin: 18px 0 28px;
}
.howto details {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
}
.howto summary { cursor: pointer; font-weight: 700; }

.price { font-family: var(--serif); font-size: 2.2rem; margin: 6px 0; }
.price small { font-family: var(--sans); font-size: 0.95rem; color: var(--muted); }
.placeholder-tag {
  display: inline-block;
  background: #f6e7b8;
  color: #6d5410;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}
.pack-card ul { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); }
.pack-card .btn { margin-top: 8px; width: 100%; }

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 42px 0 28px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
}
.site-footer a { text-decoration: none; color: var(--ink-soft); }
.site-footer a:hover { color: var(--ink); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 7px 0; }
.tiny { font-size: 0.88rem; color: var(--muted); }
.legal { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }

.toc {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  margin: 0 0 24px;
}
.toc ol { margin: 8px 0 0; }

@media (max-width: 980px) {
  .hero-grid, .card-grid, .skill-grid, .guide-grid, .pack-grid, .steps, .band, .price-grid, .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .price-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 18px;
    align-items: stretch;
  }
  .menu-btn { display: inline-flex; }
  .hero { padding-top: 36px; }
  .hero-grid, .card-grid, .skill-grid, .guide-grid, .pack-grid, .steps, .band, .price-grid, .footer-grid, .stat-row {
    grid-template-columns: 1fr;
  }
  .hero-card { transform: none; }
  .band, .newsletter { padding: 22px; }
}

@media (max-width: 760px) {
  .home-split { grid-template-columns: 1fr !important; }
}


/* Premium visual upgrade */
.hero { padding: 28px 0 20px; }
.hero-stage {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: #f6f0e6;
  background:
    radial-gradient(720px 380px at 88% 8%, rgba(196, 92, 38, 0.28), transparent 55%),
    radial-gradient(560px 340px at 8% 92%, rgba(36, 96, 88, 0.38), transparent 50%),
    linear-gradient(165deg, #14110f 0%, #1b2321 54%, #121614 100%);
  border-radius: 32px;
  padding: 46px 44px;
  box-shadow: 0 30px 60px rgba(23, 21, 18, 0.16);
}
.hero-stage h1 { color: #fffaf2; }
.hero-stage .lede { color: #d8d0c4; }
.hero-stage .kicker { color: #e4b48a; }
.hero-stage .stat { border-top-color: rgba(255,255,255,0.14); }
.hero-stage .stat b { color: #fffaf2; }
.hero-stage .stat span { color: #b9b1a5; }
.hero-stage .btn-secondary {
  color: #f6f0e6;
  border-color: rgba(255,255,255,0.28);
}
.hero-stage .btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  transform: translateY(-1px);
}
.hero-stage .btn-primary:hover { transform: translateY(-1px); }
.hero-visual {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.35);
}
.hero-visual img,
.card-media img,
.guide-banner img,
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-note {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 251, 243, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-note h3 { color: #fffaf2; margin: 8px 0; }
.hero-note p { color: #d8d0c4; margin: 0 0 8px; }
.hero-note .tiny { color: #b9b1a5; }
.hero-note .stamp {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e4b48a;
}

.store-hero {
  background:
    radial-gradient(700px 320px at 90% 0%, rgba(196, 92, 38, 0.2), transparent 55%),
    linear-gradient(165deg, #14110f 0%, #1b2321 100%);
  color: #f6f0e6;
  padding: 64px 0 48px;
}
.store-hero h1 { color: #fffaf2; }
.store-hero .lede { color: #d8d0c4; max-width: 40rem; }
.store-hero .kicker { color: #e4b48a; }
.store-hero-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.skill-card {
  position: relative;
  overflow: hidden;
}
.skill-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--copper), var(--gold), var(--teal-2));
}
.guide-card, .pack-card {
  padding: 0;
  overflow: hidden;
}
.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #171512;
}
.guide-card .card-media {
  aspect-ratio: 16 / 9;
}
.card-media img {
  transition: transform 0.55s ease;
}
a.guide-card:hover .card-media img,
a.pack-card:hover .card-media img,
.pack-card:hover .card-media img {
  transform: scale(1.045);
}
.card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.card-body h3 { margin: 0; }
.whats-inside {
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 6px 0 0;
}
.pack-card .price { font-size: 1.85rem; margin: 0; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.trust-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.65) inset;
}
.trust-card h3 { margin-bottom: 8px; }
.trust-card p { margin: 0; color: var(--ink-soft); }

.guide-banner {
  margin: 8px 0 28px;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: 360px;
  box-shadow: var(--shadow);
  background: #171512;
}

.price-card {
  position: relative;
  overflow: hidden;
  gap: 8px;
}
.price-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--copper));
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.band {
  box-shadow: 0 18px 40px rgba(26, 74, 68, 0.18);
}

@media (max-width: 980px) {
  .hero-stage,
  .store-hero-split,
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .hero-stage,
  .store-hero-split,
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .hero-stage {
    padding: 26px 20px;
    border-radius: 22px;
  }
  .store-hero { padding: 40px 0 32px; }
  .guide-banner { max-height: 220px; border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
  a.card:hover, a.skill-card:hover, a.guide-card:hover, a.pack-card:hover,
  .pack-card:hover, .price-card:hover,
  .btn:hover {
    transform: none;
  }
  .card-media img,
  a.guide-card:hover .card-media img,
  a.pack-card:hover .card-media img,
  .pack-card:hover .card-media img {
    transform: none;
    transition: none;
  }
}
