/* ========================================================================
   studio.css — shared stylesheet for Studio. Learning Legacy Infinite
   ------------------------------------------------------------------------
   Every rule in this file is extracted verbatim from index.html so the
   two files render identically. When a design token or shared pattern
   changes here, ensure index.html is updated the same way (or, in a
   future refactor, remove the duplicated inline CSS from index.html
   entirely and let it reference this file).

   Version 1.0 — 16 August 2026
   ======================================================================== */


/* ===== 1. DESIGN TOKENS ============================================== */
:root {
  --ink: #111217;
  --paper: #f6f3ef;
  --white: #ffffff;
  --wine: #be3144;
  --wine-deep: #952735;
  --rose: #d25062;
  --mist: #e9e5e0;
  --muted: #6b6c72;
  --line: rgba(17,18,23,.12);
  --shadow: 0 24px 70px rgba(25,20,21,.10);
  --radius: 28px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}


/* ===== 2. RESET / BASE =============================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Fine grain overlay for the "warm paper" feel */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
::selection { color: #fff; background: var(--wine); }


/* ===== 3. CURSOR ORB (soft spotlight following the mouse) ============ */
.cursor-orb {
  position: fixed;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle, rgba(210,80,98,.16), rgba(210,80,98,0) 70%);
  transform: translate(-50%, -50%);
  transition: width .25s ease, height .25s ease, opacity .25s ease;
}


/* ===== 4. LAYOUT PRIMITIVES ========================================== */
.shell { width: min(1180px, calc(100% - 44px)); margin: 0 auto; }
.section-pad { padding: 118px 0; }
.section-head {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 54px;
}


/* ===== 5. TYPOGRAPHY ================================================= */
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); letter-spacing: -.055em; font-weight: 400; }
h2 { font-size: clamp(2.6rem, 5.6vw, 5.7rem); line-height: .96; margin: 15px 0 0; max-width: 800px; }
h2 em { color: var(--wine); font-style: italic; }
.section-intro {
  color: var(--muted);
  line-height: 1.65;
  font-size: 1rem;
  max-width: 405px;
  margin: 0 0 4px auto;
}


/* ===== 6. EYEBROW (small red section labels) ========================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--wine);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 99px;
  background: currentColor;
  box-shadow: 0 0 0 5px rgba(190,49,68,.11);
}


/* ===== 7. CHIP (small pill labels) =================================== */
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 0 10px;
  border: 1px solid currentColor;
  border-radius: 50px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
}


/* ===== 8. SITE HEADER + BRAND + NAV ================================== */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 20px 0;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}
.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--wine);
  color: #fff;
  box-shadow: 0 6px 18px rgba(149,39,53,.24);
}
.brand-word { display: grid; line-height: 1; }
.brand-word strong {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.035em;
  font-size: 1.08rem;
}
.brand-word span {
  margin-top: 3px;
  color: #77777d;
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: .76rem;
  font-weight: 750;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a {
  position: relative;
  padding: 7px 0;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  width: 0; height: 1px;
  background: var(--wine);
  bottom: 2px; left: 0;
  transition: width .25s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  padding: 11px 15px !important;
  color: #fff;
  background: var(--ink);
  border-radius: 99px;
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--wine); transform: translateY(-2px); }


/* ===== 9. BUTTONS ===================================================== */
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 49px;
  padding: 0 19px;
  border: 1px solid var(--ink);
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 760;
  line-height: 1;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
}
.button:hover { transform: translateY(-3px); box-shadow: 0 11px 24px rgba(17,18,23,.16); }
.button-primary { border-color: var(--wine); color: #fff; background: var(--wine); }
.button-primary:hover { background: var(--wine-deep); }
.button-plain { color: var(--ink); background: rgba(255,255,255,.75); }


/* ===== 10. FOOTER (shared shell) ===================================== */
.footer {
  padding: 29px 0;
  color: rgba(255,255,255,.72);
  background: #17171b;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.footer .brand { color: #fff; }
.footer .brand-word span { color: rgba(255,255,255,.46); }
.footer-copy {
  text-align: right;
  font-size: .68rem;
  line-height: 1.5;
}
.footer-copy a {
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.4);
}


/* ===== 11. ACCESSIBILITY ============================================= */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip { position: absolute; left: -9999px; top: auto; }
.skip:focus {
  left: 16px; top: 16px;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  z-index: 999;
}


/* ===== 12. MOTION PREFERENCES ======================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ===== 13. RESPONSIVE (mobile below 670px) =========================== */
@media (max-width: 670px) {
  .cursor-orb { display: none; }
  .shell { width: min(100% - 30px, 1180px); }
  .section-pad { padding: 76px 0; }
  h2 { font-size: clamp(2.8rem, 13vw, 4.4rem); }
  .section-head { grid-template-columns: 1fr; }
  .section-intro { margin: 0; max-width: none; }
}
