@charset "UTF-8";

/* ============================================================
   modestartup.com — shared base
   The book's material: cover orange, peach band, line drawings.
   Sofia Sans superfamily, self-hosted.
   ============================================================ */

@font-face {
  font-family: "Sofia Sans";
  src: url("/assets/fonts/sofia-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  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: "Sofia Sans";
  src: url("/assets/fonts/sofia-sans-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Sofia Sans";
  src: url("/assets/fonts/sofia-sans-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Sofia Sans Extra Condensed";
  src: url("/assets/fonts/sofia-sans-extra-condensed-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  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: "Sofia Sans Extra Condensed";
  src: url("/assets/fonts/sofia-sans-extra-condensed-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Sofia Sans Condensed";
  src: url("/assets/fonts/sofia-sans-condensed-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  /* Book material */
  --orange: #ED5C01;          /* cover "STARTUP" */
  --orange-deep: #C24400;     /* actions: white text >= 4.5:1 */
  --orange-ink: #8F3200;      /* orange-family text on peach */
  --peach: #F5C9AC;           /* illustration ground */
  --peach-soft: #FCE6D6;
  --paper: #FFFFFF;
  --ink: #1B1714;
  --ink-2: #4A3F38;           /* secondary text, warm */
  --ink-3: #7A6A60;
  --rule: #E9DDD4;
  --rule-strong: #1B1714;

  --f-display: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  --f-label: "Sofia Sans Condensed", "Arial Narrow", sans-serif;
  --f-text: "Sofia Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--f-text);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern", "liga";
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { color: var(--orange-deep); }
button, input { font: inherit; color: inherit; }

::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
html { scrollbar-color: var(--ink-3) var(--peach-soft); }
input { caret-color: var(--orange); }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Wordmark ── */
.wordmark {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark b { color: var(--orange); font-weight: 900; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 3.25rem;
  padding: .7rem 1.5rem;
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .02em;
  line-height: 1.1;
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; transition: transform .25s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange-deep); border-color: var(--orange-deep); color: #fff; }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-small { min-height: 2.5rem; padding: .45rem 1rem; font-size: 1rem; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 4.25rem; }
.nav-brand {
  font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; line-height: 1;
  text-transform: uppercase; text-decoration: none; color: var(--ink); white-space: nowrap;
}
.nav-brand b { color: var(--orange); font-weight: inherit; }
.nav-right { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--f-label); font-weight: 600; font-size: 1.05rem; letter-spacing: .02em;
  color: var(--ink-2); text-decoration: none;
  padding: .35rem 0; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--orange); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .6rem; margin-right: -.6rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .3s var(--ease-out), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Footer ── */
.footer { background: var(--ink); color: #E9DFD8; padding: 4rem 0 2.5rem; font-size: 1rem; }
.footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem 3rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--peach); text-decoration: underline; }
.footer-mark {
  flex: 1 1 100%;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(3rem, 11vw, 9rem); line-height: .82; letter-spacing: -.01em;
  color: #fff; margin-bottom: 1.5rem;
}
.footer-mark b { color: var(--orange); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* ── Sticky purchase bar ── */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--paper);
  border-top: 2px solid var(--ink);
  transform: translateY(105%);
  transition: transform .45s var(--ease-out);
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; padding-top: .5rem; padding-bottom: .5rem; }
.sticky-cta-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--f-label); font-weight: 700; font-size: 1.1rem; letter-spacing: .01em; }
.sticky-cta .btn { min-height: 2.75rem; padding: .5rem 1.2rem; font-size: 1.05rem; }

/* ── Email form (shared) ── */
.email-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.email-form input[type="email"] {
  flex: 1 1 14rem; min-width: 0;
  min-height: 3.25rem; padding: .7rem 1rem;
  border: 2px solid var(--ink); border-radius: 2px; background: #fff;
  font-size: 1.05rem;
}
.email-form input[type="email"]::placeholder { color: var(--ink-3); }
.email-form input[type="email"]:focus-visible { outline-offset: 0; }
.form-msg { flex: 1 1 100%; font-weight: 600; margin-top: .5rem; }
.form-msg.ok { color: #1E6B35; }
.form-msg.err { color: #A3200F; }

@media (max-width: 900px) {
  .nav-right { gap: 1rem; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 2px solid var(--ink);
    padding: .5rem var(--gutter) 1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: .85rem 0; font-size: 1.25rem; border-bottom: 1px solid var(--rule); }
  .sticky-cta-text { font-size: 1rem; }
}
@media (max-width: 420px) {
  .nav-buy { display: none; }
}
