/* Marius Web Studio — portfolio pitch book */
:root {
  --paper: #f7f5f0;
  --ink: #191a1c;
  --muted: #5d6066;
  --accent: #2242d8;
  --line: rgba(25, 26, 28, 0.14);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  overflow-x: hidden;
}

.wrap { width: min(100% - 2.5rem, 70rem); margin-inline: auto; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 50;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* top bar */
.top { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper); z-index: 20; }
.top-row { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0; }
.brand { font-family: var(--serif); font-size: 1.25rem; text-decoration: none; color: var(--ink); }
.brand span { color: var(--accent); }
.top-call {
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 0.45rem 1rem; border-radius: 999px; font-weight: 600; font-size: 0.9rem;
}
.top-call:hover { background: var(--accent); }

/* hero */
.hero { padding: 3.5rem 0 3rem; border-bottom: 1px solid var(--line); }
.kicker {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.75rem;
  font-weight: 700; color: var(--accent); margin: 0 0 1rem;
}
.hero h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 1.02; margin: 0 0 1.2rem; max-width: 18ch;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.lede { font-size: 1.08rem; color: var(--muted); max-width: 56ch; margin: 0 0 1.8rem; }

.offer { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.8rem; }
.offer-item {
  border: 1px solid var(--line); border-radius: 12px; padding: 0.7rem 1rem;
  background: #fff; display: grid; gap: 0.1rem; min-width: 10rem;
}
.offer-item strong { font-size: 1.05rem; }
.offer-item span { font-size: 0.8rem; color: var(--muted); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 1rem;
  padding: 0.8rem 1.4rem; border-radius: 10px;
}
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: #1732a8; }
.btn-line { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-invert { background: #fff; color: var(--ink); }
.btn-line-invert { border: 1.5px solid rgba(255, 255, 255, 0.6); color: #fff; }

/* book */
.book { padding: 3rem 0; }
.book-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 0.3rem; }
.book-head p { color: var(--muted); margin: 0 0 1.5rem; }

.controls { display: grid; gap: 0.9rem; margin-bottom: 1.6rem; }
.search input {
  width: 100%; max-width: 26rem; font: inherit; padding: 0.65rem 1rem;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 0.4rem 0.95rem; font: 600 0.85rem var(--sans);
}
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* cards */
.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
}
.card a {
  display: grid; grid-template-rows: auto 1fr; height: 100%;
  text-decoration: none; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card a:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20, 22, 26, 0.12); }
.card.is-hidden { display: none; }
.card.is-featured a { border-color: var(--accent); border-width: 1.5px; }

.thumb {
  display: flex; align-items: center; justify-content: center;
  min-height: 7.5rem;
  background:
    radial-gradient(120% 140% at 10% 0%, var(--b) 55%, transparent 56%),
    linear-gradient(135deg, var(--b), var(--a));
  border-bottom: 1px solid var(--line);
}
.thumb-type {
  color: var(--ink, #111); font-size: 1.9rem; line-height: 0.95; text-align: center;
  padding: 1rem;
}
.card-body { display: grid; gap: 0.3rem; padding: 0.9rem 1rem 1.1rem; align-content: start; }
.badge {
  justify-self: start; background: var(--accent); color: #fff;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.15rem 0.5rem; border-radius: 999px;
}
.card-body strong { font-size: 1.02rem; line-height: 1.25; }
.meta { font-size: 0.78rem; color: var(--muted); }
.idea { font-size: 0.85rem; color: var(--muted); line-height: 1.45; }

.no-results { color: var(--muted); font-style: italic; padding: 1rem 0; }

/* how it works */
.how { border-top: 1px solid var(--line); padding: 3rem 0; }
.how h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 1.2rem; }
.steps { margin: 0 0 1.5rem; padding-left: 1.2rem; display: grid; gap: 0.7rem; max-width: 60ch; }
.steps li { padding-left: 0.3rem; }
.disclaimer {
  font-size: 0.8rem; color: var(--muted); max-width: 70ch;
  border-top: 1px dashed var(--line); padding-top: 1rem;
}

/* contact */
.contact-cta { background: var(--ink); color: #fff; padding: 3.2rem 0; }
.contact-cta h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 0 0 0.3rem; }
.contact-cta p { color: rgba(255, 255, 255, 0.75); margin: 0 0 1.4rem; }

.foot { padding: 1.4rem 0; font-size: 0.85rem; color: var(--muted); }
.foot a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card a { transition: none; }
}

@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .card.is-featured { grid-column: 1 / -1; }
  .thumb { min-height: 5.5rem; }
  .thumb-type { font-size: 1.4rem; }
  .card-body strong { font-size: 0.92rem; }
  .idea { display: none; }
}
