/* Ian Pai site. Typography and layout follow the Divine Supermind look:
   Cormorant for headings, Roboto Flex for body, black on white, outlined buttons. */

:root {
  --ink: #000;
  --paper: #fff;
  --warm: #fbfaf9;
  --line: #e3e3e3;
  --muted: #555;
  --amber: #c9783f;
  --serif: "Cormorant", Georgia, serif;
  --sans: "Roboto Flex", system-ui, sans-serif;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0 0 .5em; line-height: 1.2; }
h1 { font-size: 36px; }
h2 { font-size: 42px; }
h3 { font-size: 30px; }
p { margin: 0 0 1em; }
strong { font-weight: 500; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.section { padding: 96px 0; }
.section.warm { background: var(--warm); }
.section.tight { padding: 56px 0; }

/* Header */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  height: 90px; display: flex; align-items: center;
}
.site-header.solid { position: relative; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.logo {
  font-family: var(--serif); font-size: 26px; letter-spacing: .08em;
  text-decoration: none; text-transform: uppercase; color: #fff;
}
.solid .logo { color: var(--ink); }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a {
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; color: #fff; font-weight: 400;
}
.solid .nav a { color: var(--ink); }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.menu-toggle {
  display: none; background: none; border: 1px solid currentColor; color: #fff;
  font: inherit; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; padding: 8px 14px; cursor: pointer;
}
.solid .menu-toggle { color: var(--ink); }

/* Hero */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; overflow: hidden;
  background:
    radial-gradient(ellipse at 85% 55%, rgba(214,130,70,.85) 0%, rgba(150,80,40,.55) 30%, rgba(30,15,10,0) 62%),
    radial-gradient(ellipse at 60% 20%, rgba(190,140,95,.35) 0%, rgba(0,0,0,0) 45%),
    #070504;
}
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.18); }
.hero-inner { position: relative; z-index: 2; padding: 0 24px; max-width: 780px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: .4em; }
.hero p.sub { font-size: 20px; margin-bottom: 1.6em; opacity: .92; }
.hero .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.page-hero { padding: 72px 0 24px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 54px); }
.page-hero .lede { font-size: 21px; max-width: 720px; }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 30px; border: 1px solid var(--ink); background: transparent;
  color: var(--ink); text-decoration: none; font-family: var(--sans); font-size: 14px; font-weight: 400;
  letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn.solid { background: var(--ink); color: #fff; }
.btn.solid:hover { background: #fff; color: var(--ink); }
.btn.light { border-color: #fff; color: #fff; }
.btn.light:hover { background: #fff; color: var(--ink); }
.btn.light.solid { background: #fff; color: var(--ink); }
.btn.light.solid:hover { background: transparent; color: #fff; }

/* Cards and grids */
.grid { display: grid; gap: 28px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); padding: 36px; display: flex; flex-direction: column; align-items: flex-start; }
.card h3 { font-size: 30px; }
.card .btn { margin-top: auto; }
.card p:last-of-type { margin-bottom: 1.4em; }
.label {
  display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 18px; font-weight: 400;
}
.label::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.price { font-size: 17px; color: var(--muted); margin-bottom: .8em; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip .media { order: 2; }
.media { background: #0b0908; aspect-ratio: 4 / 5; overflow: hidden; }
.media.wide { aspect-ratio: 16 / 10; }
.media img { width: 100%; height: 100%; object-fit: cover; }

.pull { font-family: var(--serif); font-size: 32px; line-height: 1.25; max-width: 820px; }

/* Steps */
.steps { counter-reset: s; display: grid; gap: 22px; padding: 0; list-style: none; margin: 32px 0 0; }
.steps li { counter-increment: s; padding-left: 64px; position: relative; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -4px; font-family: var(--serif); font-size: 40px; line-height: 1;
}
.steps strong { display: block; font-family: var(--serif); font-size: 26px; font-weight: 400; margin-bottom: 2px; }

/* Join / overlay band */
.band {
  color: #fff; text-align: center; padding: 96px 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(214,130,70,.55) 0%, rgba(0,0,0,0) 55%),
    #0a0706;
}
.band h2 { color: #fff; }
.band p { max-width: 560px; margin-left: auto; margin-right: auto; }
.signup { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.signup input {
  font: inherit; font-size: 16px; padding: 13px 16px; min-width: 260px; border: 1px solid #fff; background: transparent; color: #fff;
}
.signup input::placeholder { color: rgba(255,255,255,.7); }
.fineprint { font-size: 14px; opacity: .75; margin-top: 14px; }

/* Lists */
.plain-list { padding-left: 1.1em; }
.plain-list li { margin-bottom: .5em; }
.note { font-size: 15px; color: var(--muted); border-left: 2px solid var(--line); padding-left: 16px; }

/* Footer */
.site-footer { background: var(--warm); padding: 56px 0 40px; font-size: 15px; }
.site-footer .cols { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 32px; }
.site-footer a { text-decoration: none; margin-right: 18px; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .credits { color: var(--muted); font-size: 13px; }

/* Mobile */
@media (max-width: 860px) {
  body { font-size: 17px; }
  h2 { font-size: 34px; }
  .section { padding: 64px 0; }
  .grid.two, .grid.three, .split { grid-template-columns: 1fr; }
  .split.flip .media { order: 0; }
  .split { gap: 32px; }
  .menu-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; top: 90px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(0,0,0,.94); padding: 12px 24px 24px; align-items: flex-start;
  }
  .nav.open { display: flex; }
  .nav a, .solid .nav a { color: #fff; padding: 14px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,.15); }
  .card { padding: 28px; }
  .pull { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .hero video { display: none; } }
