/* spicyricecakes.com: one narrow column of full-width bands (layout after bokatime.com),
   in the SpicyRiceCakes gochujang palette (David, 2026-11-24). */

/* Comfortaa (SIL OFL 1.1), self-hosted from WORK/shared-components/ui/fonts/comfortaa gf-v47. */
@font-face {
  font-family: 'Comfortaa'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/assets/fonts/comfortaa/comfortaa-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Comfortaa'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/assets/fonts/comfortaa/comfortaa-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* palette: gochujang */
  --page-bg: #A8241C;
  --page-text: #FBF4EA;
  --nav-bg: rgba(168, 36, 28, 0.86);
  --brown: #6A1912;
  --ink: #24120E;
  --ink-muted: #6F4F45;
  --cream: #FBF4EA;
  --cream-2: #F3E6D3;
  --red: #C8341F;
  --yellow: #F2B33D;
  --gold: #E2B654;
  --glow-rgb: 255, 206, 140;
  --shadow: rgba(31, 22, 18, 0.22);

  --col-max: 520px;
  --wide-max: 1024px;
  --col-pad: 24px;
  --section-pad: 88px;
  --font-title: 'Comfortaa', system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, 'Segoe UI', Roboto, sans-serif;
  --font-script: 'Bradley Hand', 'Snell Roundhand', cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--page-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}
.nav__inner {
  max-width: var(--wide-max); margin: 0 auto;
  padding: 10px var(--col-pad);
  display: flex; align-items: center; gap: 20px;
}
.nav__logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.nav__logo span {
  font-family: var(--font-title); font-weight: 300; font-size: 1.15rem; letter-spacing: 0.02em;
  animation: text-glow 4s ease-in-out infinite;
}
.nav__links { display: flex; gap: 18px; margin-left: auto; }
.nav__links a {
  text-decoration: none; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.92;
}
.nav__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.emoji-mark { font-size: 1.15rem; letter-spacing: 0.08em; font-weight: 400; }

/* ---------- bands ---------- */
main { padding-top: 56px; }
.section { padding: var(--section-pad) 0; border-bottom: 1px solid var(--brown); }
.section--cream { background: var(--cream); color: var(--ink); }
.section--cream-2 { background: var(--cream-2); }
.container { max-width: calc(var(--col-max) + 2 * var(--col-pad)); margin: 0 auto; padding: 0 var(--col-pad); text-align: center; }

.title {
  font-family: var(--font-title); font-weight: 300;
  font-size: clamp(3.6rem, 15vw, 6.4rem); line-height: 0.95;
  letter-spacing: 0.04em; margin: 0 0 10px;
  color: #fff;
  animation: text-glow-strong 4s ease-in-out infinite;
}
.section--cream .title { color: var(--ink); animation: none; }
.title--cover { font-size: clamp(3rem, 12vw, 5.4rem); }
.title--cover span { display: block; }
.sub {
  font-family: var(--font-script); font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin: 0 0 14px; line-height: 1.2;
  animation: text-glow 4s ease-in-out infinite;
}
.section--cream .sub { animation: none; color: var(--red); }
.lede { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.9; margin: 0 0 32px; }
.section--cream .lede { color: var(--ink-muted); }
.more { margin: 32px 0 0; }
.crumb { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; opacity: 0.85; }
.section--cream .crumb { color: var(--ink); }
.button {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--ink); color: var(--cream); text-decoration: none;
  border-radius: 999px; padding: 12px 22px; font: 700 0.9rem var(--font-body);
}
.button:disabled { opacity: 0.6; cursor: default; }

/* ---------- cover: the three ingredients and the seal ---------- */
.cover__family {
  display: grid; grid-template-columns: repeat(3, 1fr) auto; align-items: center; gap: 8px;
  margin: 18px 0 0; padding: 22px 18px;
  background: var(--cream-2); border-radius: 18px;
  box-shadow: 0 18px 40px rgba(31, 22, 18, 0.25);
}
.cover__emoji {
  font-size: clamp(3.2rem, 14vw, 5.6rem); line-height: 1.1; text-align: center;
  filter: drop-shadow(0 10px 14px var(--shadow));
}
.seal { width: 104px; height: 104px; transform: rotate(-8deg); margin-left: 6px; }
.seal__disc { fill: var(--gold); }
.seal__ring { stroke: var(--ink); opacity: 0.35; }
.seal__text { fill: var(--ink); }

/* ---------- SRC trio, chips, lists ---------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.trio__card { background: #fff; border-radius: 16px; padding: 18px 10px; box-shadow: 0 8px 20px rgba(31, 22, 18, 0.08); }
.section:not(.section--cream) .trio__card { background: var(--cream); color: var(--ink); }
.trio__emoji { font-size: 2.6rem; display: block; line-height: 1.2; }
.trio__card h3 { margin: 6px 0 2px; font-size: 1rem; }
.trio__role { margin: 0 0 6px; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.trio__card p:last-child { margin: 0; font-size: 0.82rem; line-height: 1.35; color: var(--ink-muted); }

.chips { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; text-align: left; }
.chips li { background: rgba(255, 255, 255, 0.65); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; }
.section:not(.section--cream) .chips li { background: color-mix(in srgb, var(--page-text) 14%, transparent); }
.chips b { font-size: 0.9rem; }
.chips span { font-size: 0.85rem; opacity: 0.82; }

.timeline, .principles { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; }
.timeline li { position: relative; padding: 0 0 22px 22px; border-left: 2px dashed currentColor; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--yellow); box-shadow: 0 0 10px rgba(var(--glow-rgb), 0.6);
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline h3, .principles h3 { margin: 0 0 4px; font-size: 1rem; }
.timeline p, .principles p { margin: 0; font-size: 0.95rem; line-height: 1.55; opacity: 0.92; }
.principles { display: grid; gap: 12px; }
.principles li { border-radius: 14px; padding: 16px; background: rgba(255, 255, 255, 0.65); }
.section:not(.section--cream) .principles li { background: color-mix(in srgb, var(--page-text) 14%, transparent); }

/* ---------- documents ---------- */
.doc { text-align: left; font-size: 1rem; line-height: 1.6; margin: 0 0 24px; }
.doc--light { color: var(--page-text); }
.doc h2 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; margin: 34px 0 8px; color: var(--red); }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-left: 1.2em; }
.doc li { margin: 0 0 6px; }
.doc__first { margin-top: 20px !important; }
.doc__punch { font-weight: 700; }
.doc__ps { font-family: var(--font-script); font-size: 1.25rem; line-height: 1.4; }

/* ---------- videos ---------- */
.videos { display: grid; grid-template-columns: 1fr; gap: 14px; text-align: left; }
.videos--home { grid-template-columns: repeat(2, 1fr); }
.video { background: var(--cream); color: var(--ink); border-radius: 16px; padding: 10px 10px 16px; box-shadow: 0 10px 26px var(--shadow); }
.videos--home .video { background: transparent; box-shadow: none; padding: 0; color: var(--page-text); }
.video__frame { border-radius: 12px; overflow: hidden; background: var(--ink); aspect-ratio: 9 / 16; }
.video__frame video { width: 100%; height: 100%; display: block; object-fit: contain; }
.videos--home .video__frame video { object-fit: cover; }
/* Full screen shows the whole frame, never the tile crop. */
.video__frame video:fullscreen { object-fit: contain !important; background: #000; }
.video__frame video:-webkit-full-screen { object-fit: contain !important; background: #000; }
.video__meta { margin-top: 10px; }
.video__meta h3 { margin: 0; font-size: 0.95rem; line-height: 1.25; }
.videos--home .video__meta h3 { font-size: 0.82rem; }
.video__date { margin: 2px 0 0; font-size: 0.72rem; opacity: 0.7; letter-spacing: 0.04em; }
.video p:not(.video__date) { font-size: 0.92rem; line-height: 1.55; margin: 10px 2px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 8px 0 0; }
.tags li { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; border-radius: 999px; padding: 4px 9px; background: var(--cream-2); color: var(--ink-muted); }
.videos--home .tags li { font-size: 0.6rem; padding: 3px 7px; background: color-mix(in srgb, var(--page-text) 16%, transparent); color: var(--page-text); }

/* ---------- worlds ---------- */
.worlds { display: grid; gap: 14px; text-align: left; }
.world {
  display: grid; grid-template-columns: 112px 1fr auto; align-items: center; gap: 16px;
  background: var(--ink); color: var(--cream);
  border-radius: 16px; padding: 16px 18px; text-decoration: none;
  box-shadow: 0 10px 26px var(--shadow);
  transition: transform 0.25s cubic-bezier(.22, 1, .36, 1);
}
a.world:hover { transform: translateY(-2px) rotate(-0.4deg); }
.world--light { background: var(--cream); color: var(--ink); }
.world__logo { height: 56px; display: grid; place-items: center; }
.world__logo img { max-height: 56px; width: auto; }
.world__logo--text { font-family: var(--font-script); color: var(--cream); white-space: nowrap; font-size: clamp(1.1rem, 4.4vw, 1.5rem); }
.world__name { font-weight: 700; font-size: 1rem; }
.world__host { font-size: 0.72rem; opacity: 0.7; letter-spacing: 0.04em; margin-top: 2px; }
.world__go { font-size: 1.1rem; opacity: 0.8; }

/* ---------- contact form ---------- */
.contact[hidden] { display: none; }
.contact { display: grid; gap: 14px; text-align: left; }
.contact label { display: grid; gap: 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.contact input, .contact textarea {
  font: 1rem var(--font-body); color: var(--ink); background: #fff;
  border: 1.5px solid var(--cream-2); border-radius: 12px; padding: 12px 14px; width: 100%;
  letter-spacing: normal; text-transform: none; font-weight: 400;
}
.contact input:focus, .contact textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: transparent; }
.contact textarea { resize: vertical; min-height: 140px; }
.contact .button { justify-self: start; }
.contact__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact__check { min-height: 65px; }
.contact__status { margin: 0; min-height: 1.4em; font-weight: 700; }
.contact__status[data-state="error"] { color: var(--red); }

/* ---------- footer ---------- */
.site-footer { padding: 36px var(--col-pad) 22px; border-top: 1px dashed color-mix(in srgb, var(--page-text) 45%, transparent); text-align: center; }
.site-footer__mark { font-size: 2rem; margin: 0 0 6px; }
.site-footer__tag { font-family: var(--font-script); font-size: 1.35rem; margin: 0 0 18px; animation: text-glow 4s ease-in-out infinite; }
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.site-footer__links a { text-decoration: none; opacity: 0.9; }
.site-footer__fine { margin-top: 18px; font-size: 0.68rem; opacity: 0.65; }

/* ---------- motion ---------- */
@keyframes text-glow {
  0%, 100% { text-shadow: 0 0 6px rgba(var(--glow-rgb), 0.25); }
  50% { text-shadow: 0 0 14px rgba(var(--glow-rgb), 0.55); }
}
@keyframes text-glow-strong {
  0%, 100% { text-shadow: 0 0 6px rgba(var(--glow-rgb), 0.55), 0 0 18px rgba(var(--glow-rgb), 0.30); }
  50% { text-shadow: 0 0 12px rgba(var(--glow-rgb), 0.85), 0 0 30px rgba(var(--glow-rgb), 0.55); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .title { text-shadow: 0 0 10px rgba(var(--glow-rgb), 0.7); }
}

/* ---------- narrow screens ---------- */
@media (max-width: 760px) { .nav__extra { display: none; } }
@media (max-width: 560px) {
  :root { --section-pad: 64px; --col-pad: 16px; }
  .nav__logo span { display: none; }
  .nav__links { gap: 12px; }
  .cover__family { padding: 16px 10px; gap: 4px; }
  .seal { width: 68px; height: 68px; margin-left: 2px; }
  .trio { grid-template-columns: 1fr; }
  .trio__card { display: grid; grid-template-columns: 56px 1fr; text-align: left; align-items: center; column-gap: 12px; padding: 14px; }
  .trio__emoji { grid-row: span 3; font-size: 2.4rem; }
  .trio__card h3 { margin: 0; }
  .world { grid-template-columns: 84px 1fr auto; gap: 12px; padding: 14px; }
  .world__logo, .world__logo img { max-height: 44px; }
}
