/* The Sketch Garden — lightweight, responsive styles */
:root {
  --paper: #f7f5ef;
  --paper-deep: #eee9dd;
  --paper-white: #fffefa;
  --ink: #252b25;
  --ink-soft: #54594f;
  --muted: #73776c;
  --green: #415744;
  --green-dark: #293d2e;
  --sage: #dfe5d8;
  --line: #ddd8cb;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-lg: 28px;
  --shadow-soft: 0 18px 48px rgba(43, 47, 37, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #8d9e7b; outline-offset: 4px; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 100; padding: 10px 14px; background: var(--ink); color: white; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgba(82, 83, 69, .13); background: rgba(247,245,239,.93); backdrop-filter: blur(14px); }
.header-inner { max-width: 1240px; margin: 0 auto; padding: 12px 28px; display: flex; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 255px; text-decoration: none; }
.brand img { width: 54px; height: 54px; object-fit: contain; }
.brand-text { display: grid; gap: 0; line-height: 1.2; }
.brand-text strong { font-family: var(--serif); font-size: 1.18rem; font-weight: 600; letter-spacing: -.025em; }
.brand-text small { margin-top: 5px; color: var(--muted); font-size: .65rem; text-transform: uppercase; letter-spacing: .16em; }
.main-nav { display: flex; justify-content: center; align-items: center; gap: clamp(14px, 2.3vw, 30px); margin-left: auto; }
.main-nav a, .nav-cta { font-size: .88rem; text-decoration: none; color: var(--ink-soft); }
.main-nav a:hover, .footer-links a:hover { color: var(--green); }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-white); white-space: nowrap; }
.nav-cta:hover { border-color: var(--green); color: var(--green-dark); }
.section-wrap { max-width: 1180px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.hero { min-height: 600px; padding-top: 66px; padding-bottom: 64px; display: grid; grid-template-columns: minmax(0,1.12fr) minmax(350px,.88fr); align-items: center; gap: clamp(36px, 6vw, 84px); }
.hero-copy { max-width: 650px; padding: 10px 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--green); font-size: .76rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow-mark { font-size: 1.05rem; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, .footer-brand { font-family: var(--serif); font-weight: 500; letter-spacing: -.045em; }
h1 { max-width: 720px; margin-bottom: 24px; font-size: clamp(3rem, 5.2vw, 5.2rem); line-height: .99; }
h1 em { color: var(--green); font-weight: 400; }
.hero-lede { max-width: 560px; margin-bottom: 28px; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.button { min-height: 48px; display: inline-flex; justify-content: center; align-items: center; gap: 14px; padding: 12px 19px; border: 1px solid transparent; border-radius: 999px; font-size: .9rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .18s ease, border-color .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--green-dark); color: white; }
.button-dark:hover { background: #1f3023; }
.button-light { background: transparent; border-color: #c8c9bb; color: var(--ink); }
.button-light:hover { background: #eeeee4; border-color: #a9af9c; }
.button-paper { background: var(--paper-white); color: var(--green-dark); border-color: rgba(255,255,255,.48); }
.button-paper:hover { background: white; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 35px; color: var(--muted); font-size: .78rem; }
.hero-notes span { display: inline-flex; gap: 7px; align-items: center; }
.hero-notes i { color: #899779; font-style: normal; }
.hero-art { position: relative; display: grid; place-items: center; min-width: 0; }
.hero-art-frame { position: relative; z-index: 1; width: min(100%, 435px); padding: 16px 16px 42px; background: #fffdf8; border: 1px solid #e7e1d5; box-shadow: 0 22px 54px rgba(45,49,39,.12); transform: rotate(1.2deg); }
.hero-art-frame img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fffefa; }
.art-caption { position: absolute; bottom: 11px; left: 0; right: 0; text-align: center; font-family: var(--serif); font-size: .92rem; font-style: italic; color: #666b60; }
.orbit { position: absolute; border: 1px solid #cdd4c6; border-radius: 50%; }
.orbit-one { width: 108%; aspect-ratio: 1; transform: rotate(-18deg); }
.orbit-two { width: 116%; aspect-ratio: .87; transform: rotate(28deg); border-style: dashed; opacity: .55; }
.paper-band { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 18px 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #7b806f; font-size: .7rem; font-weight: 700; letter-spacing: .22em; text-align: center; }
.paper-band span:first-child, .paper-band span:last-child { width: 68px; height: 1px; background: #bfc4b5; }
.explore-section { padding-top: 98px; padding-bottom: 100px; }
.section-heading { max-width: 720px; margin: 0 auto 42px; text-align: center; }
.section-heading .eyebrow { justify-content: center; }
h2 { margin-bottom: 17px; font-size: clamp(2.3rem, 4vw, 3.4rem); line-height: 1.1; }
.section-heading > p:last-child { max-width: 640px; margin: 0 auto; color: var(--ink-soft); }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.topic-card { min-width: 0; padding: 24px 24px 26px; background: var(--paper-white); border: 1px solid #e6e1d6; border-radius: 20px; box-shadow: 0 8px 24px rgba(38,43,35,.035); transition: transform .2s ease, box-shadow .2s ease; }
.topic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.topic-number, .mini-label { color: #7d8274; font-size: .67rem; font-weight: 750; letter-spacing: .15em; }
.topic-art { min-height: 155px; margin: 5px 0 12px; display: grid; place-items: center; color: #596d57; }
.topic-art svg { width: 100%; max-width: 205px; height: 155px; }
.topic-landscape .topic-art { color: #6c7b6b; }
.topic-shading .topic-art { color: #6b6b60; }
.topic-card h3 { margin-bottom: 9px; font-family: var(--serif); font-size: 1.55rem; font-weight: 500; letter-spacing: -.02em; }
.topic-card p { min-height: 74px; margin-bottom: 22px; color: var(--ink-soft); font-size: .91rem; }
.text-link { display: inline-flex; gap: 8px; align-items: center; color: var(--green); font-size: .86rem; font-weight: 750; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.watch-section { background: var(--green-dark); color: #fffdf7; overflow: hidden; }
.watch-inner { padding-top: 86px; padding-bottom: 78px; }
.watch-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 34px; }
.watch-heading > div { max-width: 670px; }
.eyebrow-light { color: #c5d0bb; }
.watch-heading h2 { margin-bottom: 15px; }
.watch-heading p:not(.eyebrow) { margin-bottom: 0; color: #d8ded2; }
.recent-videos-panel { padding: 18px; border: 1px solid rgba(255,255,255,.17); border-radius: 24px; background: rgba(255,255,255,.055); }
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.video-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.17); border-radius: 15px; background: #f7f5ef; color: var(--ink); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.video-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.45); box-shadow: 0 14px 28px rgba(0,0,0,.18); }
.video-thumb-wrap { position: relative; overflow: hidden; aspect-ratio: 4 / 5; display: grid; place-items: center; background: #e8e4d9; }
.video-thumb { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .35s ease; }
.video-card:hover .video-thumb { transform: scale(1.035); }
.video-thumb-fallback { width: 100%; height: 100%; display: grid; place-items: center; padding: 18px; background: linear-gradient(140deg, #e7e6da, #cfd8c8); color: #334434; font: 500 1.4rem/1.2 var(--serif); text-align: center; }
.video-play-mark { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 48px; height: 48px; padding-left: 3px; border-radius: 50%; background: rgba(34, 44, 34, .88); color: white; font-size: 1rem; transform: translate(-50%, -50%); box-shadow: 0 4px 15px rgba(0,0,0,.18); }
.video-card-body { display: flex; flex: 1; flex-direction: column; padding: 13px 13px 15px; }
.video-card-title { display: -webkit-box; overflow: hidden; margin: 0 0 8px; color: #252b25; font-family: var(--serif); font-size: 1.08rem; line-height: 1.3; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.video-card-date { margin: auto 0 0; color: #6d7468; font-size: .72rem; letter-spacing: .02em; }
.video-card-cta { display: inline-flex; gap: 7px; align-items: center; margin-top: 11px; color: #3d583f; font-size: .76rem; font-weight: 750; }
.video-feed-status { min-height: 1.5em; margin: 18px 0 0; color: #d8ded2; font-size: .85rem; text-align: center; }
.video-feed-status a { color: white; text-underline-offset: 3px; }
.video-feed-status.is-error { color: #f0dfc6; }
.recent-video-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.button-outline-paper { background: transparent; border-color: rgba(255,255,255,.4); color: #fffdf7; }
.button-outline-paper:hover { background: rgba(255,255,255,.1); border-color: white; }
.video-loading-card { overflow: hidden; border-radius: 15px; background: rgba(255,255,255,.08); }
.video-loading-card span { display: block; background: rgba(255,255,255,.13); animation: video-skeleton 1.4s ease-in-out infinite alternate; }
.video-loading-card span:first-child { aspect-ratio: 4 / 5; }
.video-loading-card span:nth-child(2) { height: 14px; margin: 13px 12px 8px; border-radius: 8px; }
.video-loading-card span:nth-child(3) { width: 55%; height: 10px; margin: 0 12px 15px; border-radius: 8px; }
@keyframes video-skeleton { from { opacity: .35; } to { opacity: .85; } }
.embed-note { margin: 14px 8px 4px; color: #d4d9ce; font-size: .75rem; text-align: center; }
.process-section { padding-top: 100px; padding-bottom: 105px; }
.process-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 22px; padding: 0; margin: 0; list-style: none; counter-reset: process; }
.process-grid li { padding: 22px 20px; border-top: 1px solid #c9cdbf; }
.process-step { display: block; margin-bottom: 18px; color: #71836b; font-family: var(--serif); font-size: 2rem; }
.process-grid h3 { margin-bottom: 10px; font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1.2; }
.process-grid p { margin: 0; color: var(--ink-soft); font-size: .88rem; }
.subscribe-section { padding-bottom: 88px; }
.subscribe-panel { position: relative; padding: clamp(36px,6vw,70px) 24px; overflow: hidden; border: 1px solid #ddd9cb; border-radius: var(--radius-lg); background: linear-gradient(135deg,#eeeee3,#fbf8f0 65%,#e9eee4); text-align: center; }
.subscribe-panel .eyebrow { justify-content: center; }
.subscribe-panel h2 { position: relative; z-index: 1; max-width: 700px; margin: 0 auto 17px; }
.subscribe-panel > p:not(.eyebrow) { position: relative; z-index: 1; max-width: 610px; margin: 0 auto 24px; color: var(--ink-soft); }
.centered-actions { justify-content: center; }
.subscribe-leaf { position: absolute; right: 7%; top: -48px; color: rgba(83,111,76,.10); font-family: var(--serif); font-size: 19rem; line-height: 1; transform: rotate(-25deg); pointer-events: none; }
.share-section { padding-top: 10px; padding-bottom: 80px; }
.compact-heading { margin-bottom: 28px; }
.compact-heading h2 { font-size: clamp(2.1rem, 3.5vw, 3rem); }
.share-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.share-link { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 43px; padding: 9px 15px; border: 1px solid #d9d6ca; border-radius: 999px; background: var(--paper-white); color: var(--ink); font-size: .83rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: border-color .18s ease, background-color .18s ease, transform .18s ease; }
.share-link:hover { border-color: #9ca991; background: #f1f2ea; transform: translateY(-1px); }
.share-button { appearance: none; }
.share-status { min-height: 1.5em; margin: 14px 0 0; color: var(--green); font-size: .85rem; text-align: center; }
.instagram-note { max-width: 710px; margin: 0 auto; color: var(--muted); font-size: .75rem; text-align: center; }
.site-footer { border-top: 1px solid var(--line); background: #eeece3; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 34px 28px 30px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 20px; }
.footer-brand { color: var(--ink); font-size: 1.45rem; text-decoration: none; }
.footer-inner > p { grid-column: 1; margin: 0; color: var(--muted); font-size: .82rem; }
.footer-links { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--ink-soft); font-size: .82rem; text-decoration: none; }
.footer-inner > small { grid-column: 1 / -1; margin-top: 20px; padding-top: 15px; border-top: 1px solid #d9d5c9; color: var(--muted); font-size: .75rem; }
/* Simple privacy/404 pages share these building blocks. */
.subpage { min-height: 72vh; padding-top: 70px; padding-bottom: 90px; }
.subpage article { max-width: 800px; margin: 0 auto; padding: clamp(26px,5vw,56px); border: 1px solid #e2ded3; border-radius: 22px; background: var(--paper-white); }
.subpage h1 { font-size: clamp(2.8rem,6vw,4.5rem); }
.subpage h2 { margin-top: 35px; font-size: 1.9rem; }
.subpage p, .subpage li { color: var(--ink-soft); }
.subpage ul { padding-left: 22px; }
.not-found-number { color: var(--green); font-size: clamp(4rem,12vw,7rem); line-height: 1; }
[hidden] { display: none !important; }
@media (max-width: 900px) {
  .header-inner { gap: 14px; padding: 10px 20px; }
  .brand { min-width: auto; }
  .brand-text small { letter-spacing: .1em; }
  .main-nav { gap: 14px; }
  .nav-cta { padding: 9px 11px; }
  .hero { min-height: auto; grid-template-columns: minmax(0,1.05fr) minmax(260px,.95fr); gap: 30px; padding-top: 56px; padding-bottom: 56px; }
  .hero-art-frame { padding: 10px 10px 36px; }
  .topic-card { padding: 20px; }
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .process-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 75px; }
  .site-header { position: static; }
  .header-inner { padding: 11px 16px; flex-wrap: wrap; justify-content: space-between; }
  .brand img { width: 44px; height: 44px; }
  .brand-text strong { font-size: 1.04rem; }
  .brand-text small { font-size: .56rem; }
  .main-nav { order: 3; width: 100%; justify-content: space-between; margin: 2px 0 0; padding-top: 9px; border-top: 1px solid #e1ded3; }
  .main-nav a { font-size: .82rem; }
  .nav-cta { font-size: .78rem; }
  .section-wrap { padding-left: 18px; padding-right: 18px; }
  .hero { grid-template-columns: 1fr; gap: 38px; padding-top: 46px; padding-bottom: 48px; }
  .hero-copy { order: 1; }
  h1 { font-size: clamp(2.9rem, 13vw, 4.4rem); }
  .hero-lede { font-size: 1rem; }
  .hero-notes { display: grid; gap: 8px; margin-top: 25px; }
  .hero-art { order: 2; width: min(100%, 390px); margin: 0 auto; }
  .hero-art-frame { width: 82%; }
  .orbit-one { width: 95%; }
  .orbit-two { width: 102%; }
  .paper-band { gap: 10px; padding: 14px 8px; font-size: .56rem; letter-spacing: .16em; }
  .paper-band span:first-child, .paper-band span:last-child { width: 28px; }
  .explore-section, .process-section { padding-top: 68px; padding-bottom: 70px; }
  .section-heading { margin-bottom: 28px; }
  h2 { font-size: clamp(2.2rem, 9vw, 3rem); }
  .topic-grid { grid-template-columns: 1fr; gap: 14px; }
  .topic-card { padding: 21px 22px 23px; }
  .topic-art { min-height: 120px; }
  .topic-art svg { height: 125px; max-width: 180px; }
  .topic-card p { min-height: 0; margin-bottom: 18px; }
  .watch-inner { padding-top: 64px; padding-bottom: 54px; }
  .watch-heading { display: block; }
  .watch-heading .button { margin-top: 20px; }
  .recent-videos-panel { padding: 10px; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .video-card-body { padding: 11px 10px 13px; }
  .video-card-title { font-size: 1rem; }
  .video-play-mark { width: 40px; height: 40px; }
  .recent-video-actions .button { width: 100%; }
  .process-grid { grid-template-columns: 1fr; gap: 7px; }
  .process-grid li { padding: 17px 4px 22px; }
  .process-step { margin-bottom: 8px; font-size: 1.7rem; }
  .subscribe-section { padding-bottom: 64px; }
  .subscribe-panel { padding: 44px 20px; }
  .subscribe-leaf { right: -10px; font-size: 12rem; }
  .hero-actions .button { width: 100%; }
  .share-section { padding-bottom: 60px; }
  .share-grid { justify-content: stretch; }
  .share-link { flex: 1 1 calc(50% - 10px); }
  .footer-inner { grid-template-columns: 1fr; padding: 28px 20px; }
  .footer-inner > p, .footer-links, .footer-inner > small { grid-column: 1; grid-row: auto; }
  .footer-links { margin-top: 14px; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Graceful YouTube playlist fallback when the Worker feed is temporarily unavailable. */
.video-fallback-player { grid-column: 1 / -1; width: min(100%, 900px); margin-inline: auto; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; background: #111; aspect-ratio: 16 / 9; }
.video-fallback-player iframe { display: block; width: 100%; height: 100%; min-height: 260px; border: 0; }


/* Static playlist embed: no backend API required */
.video-fallback-player { display: block; aspect-ratio: 16 / 9; min-height: 0; }
.video-fallback-player iframe { min-height: 0; }
@media (max-width: 600px) { .video-fallback-player { border-radius: 12px; } .video-fallback-player iframe { min-height: 220px; } }
