/* ============================================================
   No Fixed Plans, Inc. — static site
   Sleek, dark, minimal. One accent. No frameworks.
   ============================================================ */

:root {
  --bg:        #0c0d10;
  --bg-alt:    #111318;
  --panel:     #15181f;
  --line:      rgba(255, 255, 255, 0.08);
  --line-2:    rgba(255, 255, 255, 0.14);
  --ink:       #f2f3f5;
  --ink-soft:  #aeb2bb;
  --ink-faint: #6c7079;
  --accent:    #d98a6c;   /* warm terracotta — pops against the blue mural */
  --accent-2:  #e9a98e;
  --nav-bg:    rgba(12, 13, 16, 0.82);
  --maxw:      1080px;
  --ease:      cubic-bezier(.2, .7, .2, 1);
}

/* Day theme — warm off-white, deeper terracotta for contrast */
[data-theme="light"] {
  --bg:        #f4f2ed;
  --bg-alt:    #ece9e2;
  --panel:     #ffffff;
  --line:      rgba(20, 22, 28, 0.10);
  --line-2:    rgba(20, 22, 28, 0.20);
  --ink:       #181a20;
  --ink-soft:  #50545d;
  --ink-faint: #8a8f98;
  --accent:    #c2694a;
  --accent-2:  #a9573b;
  --nav-bg:    rgba(244, 242, 237, 0.82);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .45s var(--ease), color .45s var(--ease);
}

h1, h2, h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
}

a { color: inherit; text-decoration: none; }

.accent { color: var(--accent); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  transition: background .3s var(--ease), padding .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
}
.nav__brand { display: flex; align-items: center; gap: 11px; }
.nav__mark {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  transition: border-color .25s var(--ease);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.nav__name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.92);   /* light over the hero by default */
  transition: color .25s var(--ease);
}
.nav__right { display: flex; align-items: center; gap: 24px; }
.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.72);
  transition: color .2s var(--ease);
}
.nav__links a:hover { color: #fff; }
.theme-toggle {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); transform: rotate(-18deg); }

/* Once scrolled onto the page background, use the theme's ink colors */
.nav--scrolled .nav__name { color: var(--ink); }
.nav--scrolled .nav__mark { border-color: var(--line-2); }
.nav--scrolled .nav__links a { color: var(--ink-soft); }
.nav--scrolled .nav__links a:hover { color: var(--ink); }
.nav--scrolled .theme-toggle { color: var(--ink-soft); border-color: var(--line-2); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 0 90px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("img/header.jpg") center 28% / cover no-repeat;
  transform: scaleX(-1);   /* mirror — woman to the right */
  filter: saturate(1.05);
}
/* Gradient overlay kept un-mirrored so the dark side stays under the left-aligned text */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12,13,16,.50) 0%, rgba(12,13,16,.70) 45%, var(--bg) 100%),
    linear-gradient(90deg, rgba(12,13,16,.84) 0%, rgba(12,13,16,.32) 52%, rgba(12,13,16,.42) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
}
.eyebrow {
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 12.5px;
  color: #e9a98e;   /* hero sits on a dark image in both themes */
  margin: 0 0 22px;
}
.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 600;
  max-width: 16ch;
  color: #fbfbfc;
}
.hero__lede {
  margin: 28px 0 36px;
  max-width: 56ch;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.82);
}
.hero .accent { color: #e9a98e; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.hero .btn--ghost:hover { color: #e9a98e; border-color: #e9a98e; }

.hero__scroll {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.55);
  font-size: 20px;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(7px); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform .18s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--accent); color: #1a120e; }
.btn--solid:hover { background: var(--accent-2); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; border-top: 1px solid var(--line); }
.section--alt { background: var(--bg-alt); }
.kicker {
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12.5px;
  color: var(--accent);
  margin: 0 0 18px;
}
.section__title {
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  max-width: 20ch;
}
.section__lede {
  margin: 24px 0 0;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
}

/* ---------- Cards (thesis) ---------- */
.cards { display: grid; gap: 18px; margin-top: 54px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 26px 32px;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card__num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}
.card__title { font-size: 1.22rem; margin: 14px 0 12px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Portfolio ---------- */
.portfolio { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 54px; }
.project {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 32px 30px;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.project:hover { border-color: var(--accent); transform: translateY(-3px); }
.project__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.project__name { font-size: 1.5rem; }
.project__tag {
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  white-space: nowrap;
}
.project__desc { color: var(--ink-soft); font-size: 15.5px; margin: 18px 0 26px; flex: 1; }
.project__cta {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14.5px;
  color: var(--accent);
  display: inline-flex;
  gap: 8px;
  transition: gap .2s var(--ease);
}
.project:hover .project__cta { gap: 13px; }
.project--next { background: transparent; border-style: dashed; }
.project--next:hover { border-color: var(--line-2); }

/* ---------- Posts ---------- */
.posts { list-style: none; margin: 50px 0 40px; padding: 0; border-top: 1px solid var(--line); }
.post { border-bottom: 1px solid var(--line); }
.post__link {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 16px 4px;
  transition: padding-left .2s var(--ease);
}
.post__link:hover { padding-left: 12px; }
.post__thumb {
  width: 84px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  flex-shrink: 0;
  filter: saturate(.92) brightness(.92);
  transition: filter .25s var(--ease);
}
.post__link:hover .post__thumb { filter: saturate(1) brightness(1); }
.post__date {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  color: var(--ink-faint);
  min-width: 72px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.post__title { font-size: 1.12rem; color: var(--ink); flex: 1; }
.post__link:hover .post__title { color: var(--accent); }
.post__arrow {
  color: var(--accent);
  font-size: 16px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.post__link:hover .post__arrow { opacity: 1; transform: none; }

/* ---------- Writing CTA: signup + blog link, woven into the flow ---------- */
.writing-cta {
  display: flex;
  align-items: center;
  gap: 16px 32px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.writing-cta__form {
  flex: 1 1 320px;
  min-width: 0;
  min-height: 56px;
}
.writing-cta__link {
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  color: var(--accent);
  white-space: nowrap;
  display: inline-flex;
  gap: 8px;
  transition: gap .2s var(--ease);
}
.writing-cta__link:hover { gap: 14px; }

/* ---------- Contact ---------- */
.contact__email {
  display: inline-block;
  margin: 32px 0 26px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.3rem, 3.4vw, 2.1rem);
  color: var(--ink);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 4px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.contact__email:hover { color: var(--accent); border-color: var(--accent); }
.contact__socials { display: flex; gap: 26px; flex-wrap: wrap; }
.contact__socials a {
  font-size: 15px;
  color: var(--ink-soft);
  transition: color .2s var(--ease);
}
.contact__socials a:hover { color: var(--ink); }

/* ---------- Tagline callout ---------- */
.callout {
  padding: clamp(90px, 14vh, 150px) 16px;
  border-top: 1px solid var(--line);
  text-align: center;
  overflow: hidden;
}
.callout__line {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  /* sized so the longest line fits the window — only the comma breaks it, so exactly 2 lines */
  font-size: clamp(1.05rem, 5.2vw, 4.5rem);
  white-space: nowrap;
  max-width: none;
  margin: 0;
  color: var(--ink);
}
.callout .accent { color: var(--accent); }

/* ---------- Footer ---------- */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 28px 56px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--ink-faint);
  font-size: 14px;
}
.footer__motto { font-family: "Space Grotesk", sans-serif; letter-spacing: -0.01em; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .cards--3 { grid-template-columns: 1fr; }
  .portfolio { grid-template-columns: 1fr; }
  .nav__links { gap: 18px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav__name { display: none; }
  .nav__links { gap: 16px; }
  .nav__links a { font-size: 14px; }
  .hero { padding: 120px 0 80px; }
  .hero__title br { display: none; }
  .post__link { gap: 14px; }
  .post__thumb { width: 64px; height: 44px; }
  .post__date { display: none; }
  .footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll { animation: none; }
}
