/* feed2.site: tokens and the blueprint shared by the landing and the waiting page */
/* Served by us, not Google Fonts: no visitor IP leaves for Google, and no extra connections.
   The files are the shared catalogue (src/feedtosite/builder/static/fonts/, test_build.py checks
   these names); the unicode-range is themes.LATIN. Other characters use the system font.
   "optional": the fonts are preloaded and nearly always arrive in time; when they do not, the page keeps
   the system font instead of jumping when they land (layout shift, CLS). The next page has them cached. */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 700;
  font-display: optional;
  src: url("/_fonts/geist-v5-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;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500 700;
  font-display: optional;
  src: url("/_fonts/roboto-v51-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 {
  --paper: #ffffff;
  --paper-2: #f4f4f5;
  --line: #f1f1f3;
  --line-2: #e4e4e7;
  --ink: #09090b;
  --ink-2: #27272a;
  --muted: #66666e;  /* 4.5:1 on paper and on paper-2 (WCAG AA) */
  --soft: #a1a1aa;
  --brand: #fc432b;
  --brand-2: #e5341d;
  --brand-fill: #d1301a;  /* brand behind white text: 5:1 (WCAG AA); --brand alone is 3.5:1 */
  --brand-fill-2: #b52710;
  --brand-wash: #fff1ee;
  --mark: #71717a;
  --hatch: #e4e4e7;
  --night: #09090b;  /* a surface that stays dark in both themes */
  --rail: 2px;
  --font-body: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-head: "Roboto", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(.7, 0, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #09090b; --paper-2: #131316; --line: #1d1d21; --line-2: #2a2a2f;
    --ink: #fafafa; --ink-2: #d4d4d8; --muted: #a1a1aa; --soft: #71717a;
    --brand-wash: #2a120e; --mark: #52525b; --hatch: #26262b; --night: #18181b; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #09090b; --paper-2: #131316; --line: #1d1d21; --line-2: #2a2a2f;
  --ink: #fafafa; --ink-2: #d4d4d8; --muted: #a1a1aa; --soft: #71717a;
  --brand-wash: #2a120e; --mark: #52525b; --hatch: #26262b; --night: #18181b; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }  /* anchors land below the sticky header */
body {
  margin: 0; background: var(--paper); color: var(--muted);
  font: 500 15px/1.5 var(--font-body); overflow-x: clip; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; color: var(--ink); margin: 0; line-height: 1.08; letter-spacing: -0.03em; }
p { margin: 0; }
a { color: inherit; }
strong, .ink { color: var(--ink); font-weight: 500; }
.tone { color: var(--muted); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Rails on both sides of the content, crop marks on the corners of a cell */
.band { padding-inline: 16px; }
.frame { max-width: 1200px; margin-inline: auto; border-inline: var(--rail) solid var(--line); position: relative; }
.ruled { border-block: var(--rail) solid var(--line); }
.marks { position: relative; }
.marks::before, .marks::after, .marks > .m::before, .marks > .m::after {
  content: ""; position: absolute; width: 6px; height: 6px; border: 0 solid var(--mark); z-index: 3; pointer-events: none;
}
.marks::before { top: -2px; left: -2px; border-top-width: 2px; border-left-width: 2px; }
.marks::after { top: -2px; right: -2px; border-top-width: 2px; border-right-width: 2px; }
.marks > .m::before { bottom: -2px; left: -2px; border-bottom-width: 2px; border-left-width: 2px; }
.marks > .m::after { bottom: -2px; right: -2px; border-bottom-width: 2px; border-right-width: 2px; }
.hatch { background-image: repeating-linear-gradient(45deg, var(--hatch) 0 1px, transparent 0 50%); background-size: 12px 12px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 2px solid var(--line-2);
  border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 12px; line-height: 1; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase;
}
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer;
  font: 600 13px/1 var(--font-body); letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none;
  padding: 14px 18px; background: var(--ink); color: var(--paper); transition: background .25s, box-shadow .25s;
}
.btn > i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.btn:hover { background: var(--ink-2); }
.btn.hot { background: var(--brand-fill); color: #fff; }
.btn.hot:hover { background: var(--brand-fill-2); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line-2); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.btn[disabled] { opacity: .55; cursor: progress; }

/* Header */
header { position: sticky; top: 0; z-index: 50; background: var(--paper); }
.nav { display: flex; align-items: stretch; }
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-right: var(--rail) solid var(--line); text-decoration: none; color: var(--ink); }
.brand b { font: 700 19px/1 var(--font-head); letter-spacing: -0.02em; }
.brand b span { color: var(--brand); }
.logo { display: grid; grid-template-columns: repeat(3, 5px); gap: 1.5px; }
.logo i { width: 5px; height: 5px; background: var(--ink); }
.logo i:nth-child(5) { background: var(--brand); }
.logo i:nth-child(3), .logo i:nth-child(7) { opacity: .25; }
.nav .links { display: none; align-items: center; padding: 0 12px; }
.nav .links a { padding: 8px 14px; text-decoration: none; color: var(--ink); text-transform: uppercase; font-size: 13px; letter-spacing: 0.02em; }
.nav .links a:hover { color: var(--brand); }
.nav .fill { flex: 1; border-left: var(--rail) solid var(--line); }
.nav .cta { display: flex; padding: 10px; background: var(--paper-2); }
@media (min-width: 760px) { .nav .links { display: flex; } }

/* Phone menu */
.burger { display: none; width: 64px; border: 0; border-left: var(--rail) solid var(--line); background: var(--paper); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu { max-width: 1200px; margin-inline: auto; border-inline: var(--rail) solid var(--line); border-bottom: var(--rail) solid var(--line); background: var(--paper); display: grid; animation: menu-in .25s var(--ease); }
.menu[hidden] { display: none; }
.menu > a:not(.btn) { padding: 18px 20px; border-bottom: var(--rail) solid var(--line); text-decoration: none; color: var(--ink); font: 700 22px/1 var(--font-head); letter-spacing: -0.01em; }
.menu .btn { margin: 16px 20px 20px; padding-block: 16px; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 759px) { .burger { display: flex; } .nav .cta { display: none; } }

footer .frame { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; padding: 24px 20px; font-size: 13px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--brand); }
/* Our Instagram and Facebook: icons big enough to tap, in the footer and the phone menu. */
.follow { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); }
.social { display: inline-flex; gap: 8px; }
.social a { display: inline-grid; place-items: center; width: 44px; height: 44px; border: var(--rail) solid var(--line-2); border-radius: 999px; color: var(--ink); transition: color .2s, border-color .2s, background-color .2s; }
.social a:hover, .social a:focus-visible { color: var(--brand); border-color: var(--brand); background: var(--brand-wash); }
.social svg { width: 20px; height: 20px; }
.menu .follow { padding: 0 20px 20px; font-size: 15px; }
footer .frame { align-items: center; }
@media (prefers-reduced-motion: reduce) { .social a { transition: none; } }

/* The cell that holds the device, and the notes pinned to it */
.stage-cell { position: relative; background-color: var(--paper-2); display: grid; place-items: center; }
.tag {
  position: absolute; padding: 7px 11px; background: var(--ink); color: var(--paper); font-size: 12px; line-height: 1;
  display: flex; align-items: center; gap: 7px; white-space: nowrap; pointer-events: none;
}
.tag i { width: 6px; height: 6px; background: var(--brand); }

/* The device: an Instagram profile that can rebuild itself as a site (stage.js) */
.device { position: relative; width: 100%; background: var(--paper); border: 2px solid var(--line-2); box-shadow: 0 40px 80px -40px rgba(9, 9, 11, .35); }
.bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 2px solid var(--line); }
.bar .dots { display: flex; gap: 5px; }
.bar .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.url {
  flex: 1; min-width: 0; padding: 6px 10px; background: var(--paper-2); font-size: 12px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px;
}
.url svg { flex: none; }
.url b { color: var(--ink); font-weight: 500; }
.canvas { position: relative; aspect-ratio: 4 / 5; margin: 12px; overflow: hidden; container-type: inline-size; }
.tile {
  position: absolute; background: var(--paper-2); overflow: hidden;
  transition: left .9s var(--ease), top .9s var(--ease), width .9s var(--ease), height .9s var(--ease), box-shadow .3s, background-color .4s;
  transition-delay: calc(var(--i) * 40ms);
}
.tile::after { content: ""; position: absolute; inset: 0; }
.tile.t-hatch::after { background: repeating-linear-gradient(45deg, var(--line-2) 0 1px, transparent 0 50%) 0 0 / 9px 9px; }
.tile.t-dots::after { background: radial-gradient(var(--line-2) 1.2px, transparent 1.3px) 0 0 / 8px 8px; }
.tile.t-brand { background: var(--brand); }
.tile.t-brand::after { background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .2) 0 1px, transparent 0 50%) 0 0 / 9px 9px; }
.tile.t-ink { background: var(--ink); }
.tile.t-mid { background: var(--line-2); }
/* As a site, the first tile is the cover photo: dark enough for white text on it */
.is-site .tile.cover { background: linear-gradient(160deg, #71717a, #27272a 55%, #09090b); }
.is-site .tile.cover::after { background: radial-gradient(circle at 85% 20%, rgba(252, 67, 43, .45), transparent 45%); }
.chrome { position: absolute; inset: 0; pointer-events: none; transition: opacity .5s; }
.site-chrome { opacity: 0; }
.is-site .feed-chrome { opacity: 0; }
.is-site .site-chrome { opacity: 1; transition-delay: .7s; }
.avatar { position: absolute; left: 0; top: 1%; width: 18%; aspect-ratio: 1; border-radius: 50%; padding: 2px; background: conic-gradient(var(--brand), #ffb199, var(--brand)); }
.avatar::after { content: ""; display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--paper-2); border: 2px solid var(--paper); }
.stats { position: absolute; left: 25%; right: 0; top: 4.5%; display: flex; justify-content: space-between; }
.stats div { text-align: center; font: 700 max(11px, 3.4cqi)/1.2 var(--font-head); color: var(--ink); }
.stats small { display: block; font: 500 max(9px, 2.6cqi)/1.2 var(--font-body); color: var(--muted); }
.line { position: absolute; height: 6px; background: var(--line-2); border-radius: 3px; }
.site-nav { position: absolute; left: 0; right: 0; top: 0; height: 6%; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.site-nav b { font: 700 max(11px, 3.4cqi)/1 var(--font-head); color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-nav span { display: flex; align-items: center; gap: 6px; }
.site-nav span i { width: 22px; height: 5px; background: var(--line-2); border-radius: 3px; }
.site-nav span i:last-child { background: var(--ink); width: 34px; height: 12px; border-radius: 2px; }
.hero-text { position: absolute; left: 5%; top: 22%; width: 66%; z-index: 2; }
.hero-text b { display: block; font: 700 max(15px, 5.4cqi)/1.05 var(--font-head); color: #fff; letter-spacing: -0.02em; text-shadow: 0 1px 14px rgba(0, 0, 0, .3); min-height: 2.1em; }
.hero-text i { display: block; margin-top: 8px; width: 42%; height: max(10px, 3cqi); background: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}

/* Floating Instagram button (landing): the direct is our only contact channel for now */
.float-instagram { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.25); }
.float-instagram svg { width: 26px; height: 26px; }
.float-instagram:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
/* hidden over the landing's top (landing.js): it would compete with the @ field for someone who just arrived */
.float-instagram { transition: opacity .3s, transform .3s, visibility .3s; }
.float-instagram.away { opacity: 0; visibility: hidden; transform: translateY(12px) scale(.9); }
body:has(.menu:not([hidden])) .float-instagram { display: none; }  /* the open menu already links to Instagram */
body:has(.float-instagram) footer .frame { padding-bottom: 88px; }  /* the last footer line clears the button */
