/*
Theme Name: 1 in 100 Club
Theme URI: https://1in100.club
Author: Mark Smillie
Author URI: https://marksmillie.co.uk
Description: The full 1 in 100 Club website — warm, editorial light branding to match Before the Wave. Homepage with the eight-channel grid, member-style channel archives, and single Video / Tip / Prompt templates. Pairs with the "1 in 100 Club — Core" plugin, which provides the content model and the [yc_channel_grid], [yc_channel_archive] and [yc_resource_filter] shortcodes.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: one-in-100-club
*/

:root {
  --bg:      #f6f2ea;   /* warm paper */
  --panel:   #ffffff;   /* cards */
  --ink:     #33373d;   /* body text */
  --head:    #14171c;   /* headings / emphasis */
  --gold:    #dfa72f;   /* bright accent — buttons, large marks */
  --gold-ink:#9a7112;   /* deep gold — text-sized accents, links (AA on light) */
  --muted:   #63676e;   /* secondary text */
  --dim:     #8a857c;   /* tertiary / uppercase meta */
  --line:    rgba(20, 23, 28, 0.12);
  --line-strong: rgba(20, 23, 28, 0.28);
  --serif: 'Source Serif 4', Georgia, serif;
  --sans:  'Source Sans 3', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--serif);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-ink); text-decoration: none; }
a:hover { opacity: 0.75; }
input::placeholder, textarea::placeholder { color: var(--dim); }
.wrap { max-width: 1280px; margin: 0 auto; }

.eyebrow {
  font-family: var(--sans);
  font-size: 13px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold-ink); font-weight: 700;
}

/* ---------- Buttons ---------- */
.btn-primary, .btn-ghost {
  display: inline-block; padding: 20px 52px; border-radius: 3px;
  font-family: var(--sans); font-weight: 700; font-size: 17px;
  letter-spacing: 0.5px; cursor: pointer; text-align: center;
}
.btn-primary { background: var(--gold); color: #1a1512; border: none; }
.btn-primary:hover { opacity: 1; background: #d29c22; }
.btn-ghost { border: 1px solid var(--gold-ink); color: var(--gold-ink); background: none; }
.btn-ghost:hover { opacity: 1; background: rgba(154, 113, 18, 0.08); }
.btn-block { display: block; width: 100%; }

/* ---------- Site header (inner pages) ---------- */
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 48px; border-bottom: 1px solid var(--line);
  font-family: var(--sans); background: #fffdf8;
  position: sticky; top: 0; z-index: 20;
}
.site-header .logo { height: 52px; width: auto; }
.site-nav { display: flex; gap: 32px; font-size: 15px; align-items: center; }
.site-nav a { color: var(--muted); }
.site-nav a:hover, .site-nav .current-menu-item a { color: var(--head); opacity: 1; }
.site-nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #fbf8f1 0%, #f4efe5 70%, #f6f2ea 100%);
  border-bottom: 1px solid var(--line);
}
.hero .glow-a {
  position: absolute; top: -30%; right: -15%; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(223, 167, 47, 0.10) 0%, transparent 65%);
  border-radius: 50%; pointer-events: none;
}
.hero .glow-b {
  position: absolute; bottom: -40%; left: -10%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(58, 90, 120, 0.06) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero-top {
  position: relative; display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 48px 48px 0; font-family: var(--sans);
}
.hero-top .logo { height: 128px; width: auto; }
.hero-top .byline { font-size: 14px; color: var(--muted); }
.hero-inner {
  position: relative; max-width: 860px; margin: 0 auto;
  padding: 56px 48px 100px; text-align: center;
}
.hero .eyebrow { display: block; margin-bottom: 32px; }
.hero h1 {
  font-size: 54px; font-weight: 700; line-height: 1.15; margin-bottom: 32px;
  color: var(--head); letter-spacing: -1.5px;
}
.hero h1 .accent { color: var(--gold-ink); }
.hero-lead {
  font-size: 21px; color: #4a4e55; margin: 0 auto 20px; line-height: 1.7; max-width: 720px;
}
.hero-body {
  font-size: 18px; color: var(--muted); margin: 0 auto 44px; line-height: 1.9; max-width: 680px;
}
.hero-body strong { color: var(--head); }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.hero-note { font-family: var(--sans); font-size: 14px; color: var(--dim); }

/* ---------- Editorial sections ---------- */
.section { padding: 110px 48px; }
.section-light { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.section h2 {
  font-size: 46px; font-weight: 700; line-height: 1.15; margin: 28px 0 36px;
  letter-spacing: -1px; color: var(--head);
}
.section-light p { font-size: 20px; color: #4a4d52; margin-bottom: 20px; line-height: 1.8; }
.section-light .lead-strong { color: var(--head); font-weight: 600; }

/* The "what makes it different" band — a single deep feature panel for rhythm */
.section-dark {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #14171c 0%, #1b2029 100%);
  padding: 120px 48px;
}
.section-dark .glow {
  position: absolute; bottom: -50%; left: 20%; width: 900px; height: 700px;
  background: radial-gradient(ellipse, rgba(223, 167, 47, 0.10) 0%, transparent 65%);
}
.section-dark .section-inner { max-width: 780px; position: relative; }
.section-dark .eyebrow { color: var(--gold); }
.section-dark h2 { line-height: 1.2; letter-spacing: -1.5px; color: #f5f2ec; }
.section-dark p { font-size: 19px; color: #b9bcc2; margin-bottom: 24px; line-height: 1.9; }
.section-dark .pull { font-size: 22px; color: var(--gold); font-style: italic; line-height: 1.7; }

/* ---------- Channels block ---------- */
.channels { padding: 110px 48px 40px; max-width: 1280px; margin: 0 auto; }
.channels-head { text-align: center; margin-bottom: 56px; }
.channels-head .eyebrow { display: block; margin-bottom: 20px; }
.channels-head h2 { font-size: 44px; font-weight: 700; color: var(--head); letter-spacing: -1px; margin-bottom: 20px; }
.channels-head p { font-size: 17px; color: var(--muted); max-width: 640px; margin: 0 auto; line-height: 1.8; }
.channels-head strong { color: var(--gold-ink); }

/* Channel grid — output by [yc_channel_grid] */
.yc-channel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.yc-channel-card {
  background: var(--panel); border: 1px solid var(--line);
  padding: 32px 28px; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  color: inherit; display: block; border-radius: 4px;
}
.yc-channel-card:hover { border-color: rgba(223, 167, 47, 0.6); opacity: 1; box-shadow: 0 14px 34px rgba(20, 23, 28, 0.08); transform: translateY(-2px); }
.yc-channel-card .yc-icon {
  display: block; font-size: 26px; margin-bottom: 18px; color: var(--gold-ink);
  font-weight: 700; font-family: var(--serif);
}
.yc-channel-name { font-size: 20px; font-weight: 700; color: var(--head); margin-bottom: 10px; line-height: 1.3; }
.yc-channel-tagline { font-family: var(--sans); font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 18px; }
.yc-counts { font-family: var(--sans); font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--dim); }

/* ---------- Sample content / card grid ---------- */
.taste { padding: 64px 48px 90px; max-width: 1280px; margin: 0 auto; }
.taste-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 36px; flex-wrap: wrap; gap: 12px; }
.taste-head h2 { font-size: 28px; font-weight: 700; color: var(--head); letter-spacing: -0.5px; }
.taste-head p, .taste-head a { font-family: var(--sans); font-size: 14px; color: var(--dim); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.res-card { background: var(--panel); border: 1px solid var(--line); display: block; color: inherit; border-radius: 4px; overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.res-card:hover { opacity: 1; box-shadow: 0 14px 34px rgba(20, 23, 28, 0.08); transform: translateY(-2px); }
.res-thumb {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  border-bottom: 1px solid var(--line); background-size: cover; background-position: center; background-color: #e7e1d5;
}
.res-thumb .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(20, 23, 28, 0.18);
}
.res-thumb .play span {
  width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--gold);
  background: rgba(20, 23, 28, 0.45); display: flex; align-items: center; justify-content: center;
}
.res-thumb .play span::after {
  content: ''; width: 0; height: 0; border-left: 16px solid var(--gold);
  border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px;
}
.res-body { padding: 24px; }
.res-tag { font-family: var(--sans); font-size: 12.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 10px; font-weight: 700; }
.res-title { font-size: 19px; font-weight: 700; color: var(--head); margin-bottom: 8px; line-height: 1.4; }
.res-desc { font-family: var(--sans); font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ---------- Join / gate ---------- */
.join { position: relative; overflow: hidden; background: linear-gradient(180deg, #f1ece1 0%, #f6f2ea 100%); border-top: 1px solid var(--line); }
.join-inner { position: relative; max-width: 1200px; margin: 0 auto; padding: 100px 48px; display: grid; grid-template-columns: 1fr 460px; gap: 80px; align-items: center; }
.join-copy .eyebrow { display: block; margin-bottom: 28px; }
.join-copy h2 { font-size: 48px; font-weight: 700; line-height: 1.12; margin-bottom: 28px; color: var(--head); letter-spacing: -1.5px; }
.join-copy p { font-size: 18px; color: var(--muted); margin-bottom: 24px; line-height: 1.9; max-width: 540px; }
.join-copy p em { color: var(--head); }
.join-copy .reward { font-size: 17px; color: var(--gold-ink); font-style: italic; }
.join-card { background: var(--panel); border: 1px solid var(--line); padding: 48px 44px; border-radius: 4px; box-shadow: 0 20px 50px rgba(20, 23, 28, 0.08); }
.join-card h2 { font-size: 26px; font-weight: 700; color: var(--head); margin-bottom: 12px; }
.join-card .sub { font-family: var(--sans); font-size: 15px; color: var(--muted); margin-bottom: 32px; line-height: 1.7; }
.join-card input {
  width: 100%; padding: 16px 18px; background: #fbf9f4; border: 1px solid var(--line-strong);
  color: var(--head); font-family: var(--sans); font-size: 16px; letter-spacing: 3px;
  text-transform: uppercase; margin-bottom: 16px; outline: none; border-radius: 3px;
}
.join-card input:focus { border-color: var(--gold); }
.join-card .code-error { font-family: var(--sans); font-size: 14px; color: #b4442f; margin-bottom: 16px; }
.join-divider { display: flex; align-items: center; gap: 14px; margin: 28px 0 20px; }
.join-divider .rule { flex: 1; height: 1px; background: var(--line); }
.join-divider span { font-family: var(--sans); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--dim); }
.book-promo { display: flex; gap: 18px; align-items: center; background: linear-gradient(135deg, #f6efe0 0%, #efe6d3 100%); border: 1px solid rgba(223, 167, 47, 0.4); padding: 22px; border-radius: 3px; }
.book-promo img { width: 74px; box-shadow: -8px 10px 24px rgba(20, 23, 28, 0.25); flex-shrink: 0; }
.book-promo .t { font-family: var(--sans); font-size: 15px; color: var(--head); font-weight: 700; line-height: 1.5; margin-bottom: 6px; }
.book-promo .d { font-family: var(--sans); font-size: 13.5px; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }
.book-promo a { font-family: var(--sans); font-size: 14px; font-weight: 700; }
.join-card .btn-ghost { margin-top: 20px; font-size: 16px; }

/* ---------- Member / archive header block ---------- */
.member-intro { padding: 64px 48px 48px; max-width: 1280px; margin: 0 auto; }
.member-intro .eyebrow { display: block; margin-bottom: 16px; }
.member-intro h1 { font-size: 42px; font-weight: 700; color: var(--head); letter-spacing: -1px; margin-bottom: 16px; }
.member-intro p { font-size: 17px; color: var(--muted); max-width: 640px; line-height: 1.8; }
.section-band { border-top: 1px solid var(--line); background: var(--panel); padding: 64px 48px; }

/* ---------- Channel archive + resource list (plugin markup) ---------- */
.yc-channel-archive, .single-main { max-width: 1000px; margin: 0 auto; padding: 64px 48px 90px; }
.yc-channel-head { display: flex; gap: 20px; align-items: center; margin-bottom: 40px; }
.yc-channel-head .yc-icon { font-size: 34px; color: var(--gold-ink); font-weight: 700; }
.yc-channel-head h2 { font-size: 34px; color: var(--head); font-weight: 700; letter-spacing: -0.5px; }
.yc-channel-head .yc-channel-tagline { font-family: var(--sans); color: var(--muted); font-size: 15px; }

.yc-resource-list { list-style: none; margin: 0; padding: 0; }
.yc-resource {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 20px; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid var(--line); font-family: var(--sans);
}
.yc-resource-type {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700;
  color: var(--gold-ink); padding-top: 2px;
}
.yc-type-tip .yc-resource-type { color: #3f7ba3; }
.yc-type-prompt .yc-resource-type { color: #9a7112; }
.yc-resource-title { font-family: var(--serif); font-size: 19px; color: var(--head); font-weight: 600; }
.yc-resource-title:hover { color: var(--gold-ink); }
.yc-resource-meta { font-size: 13px; color: var(--dim); text-align: right; }
.yc-empty { font-family: var(--sans); color: var(--muted); padding: 24px 0; }

/* ---------- Resource filter ---------- */
.yc-filter-bar { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; font-family: var(--sans); }
.yc-filter-bar label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dim); }
.yc-filter-bar select {
  min-width: 200px; padding: 12px 14px; background: #fbf9f4; color: var(--head);
  border: 1px solid var(--line-strong); font-family: var(--sans); font-size: 15px; outline: none; border-radius: 3px;
}
.yc-filter-results { transition: opacity 0.15s; }
.yc-filter-results.is-loading { opacity: 0.4; }

/* ---------- Single post templates ---------- */
.single-main .single-eyebrow { font-family: var(--sans); font-size: 12.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-ink); font-weight: 700; margin-bottom: 16px; }
.single-main h1 { font-size: 40px; font-weight: 700; color: var(--head); letter-spacing: -1px; line-height: 1.2; margin-bottom: 24px; }
.single-main .entry { font-size: 18px; color: var(--ink); line-height: 1.9; }
.single-main .entry p { margin-bottom: 20px; }
.video-frame { position: relative; aspect-ratio: 16/9; margin-bottom: 36px; background: #e7e1d5; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.back-link { font-family: var(--sans); font-size: 14px; display: inline-block; margin-bottom: 32px; }

/* Prompt copy UI (injected by plugin) */
.yc-prompt-does { font-family: var(--sans); font-size: 17px; color: var(--muted); margin-bottom: 20px; line-height: 1.7; }
.yc-prompt-box { position: relative; margin-bottom: 32px; }
.yc-prompt-text {
  background: #fbf9f4; border: 1px solid var(--line-strong); color: var(--ink);
  padding: 24px; font-family: 'Source Sans 3', ui-monospace, monospace; font-size: 15px;
  line-height: 1.7; white-space: pre-wrap; word-break: break-word; margin: 0; border-radius: 3px;
}
.yc-copy-btn {
  margin-top: 14px; padding: 12px 24px; background: var(--gold); color: #1a1512; border: none;
  border-radius: 3px; font-family: var(--sans); font-weight: 700; font-size: 14px; cursor: pointer;
}
.yc-copy-btn.is-copied { background: #5a9d67; color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: #14171c; border-top: 1px solid var(--line); padding: 48px; font-family: var(--sans); }
.site-footer .row { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.site-footer .muted { color: #8f938b; font-size: 14px; }
.site-footer .links { display: flex; gap: 28px; font-size: 14px; }
.site-footer .links a { color: #c9ccc4; }
.site-footer .links a:hover { color: var(--gold); opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .yc-channel-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .join-inner { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 720px) {
  .hero h1 { font-size: 38px; letter-spacing: -1px; }
  .section h2, .join-copy h2 { font-size: 34px; }
  .yc-channel-grid, .card-grid { grid-template-columns: 1fr; }
  .section, .section-dark { padding: 72px 24px; }
  .channels, .taste, .hero-inner, .join-inner, .member-intro, .yc-channel-archive, .single-main { padding-left: 24px; padding-right: 24px; }
  .site-header { flex-direction: column; gap: 16px; padding: 20px 24px; position: static; }
  .site-nav ul { flex-wrap: wrap; justify-content: center; gap: 18px; }
  .yc-resource { grid-template-columns: 70px 1fr; }
  .yc-resource-meta { grid-column: 2; text-align: left; }
}
