/* markmyrow.com: the app's palette and type (DESIGN.md), no scripts, no third parties. */
@font-face {
  font-family: 'Literata';
  src: url('/fonts/Literata-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

:root {
  --cream: #f6f1e7;
  --linen: #fffcf6;
  --ink: #2a2724;
  --muted: #6a635a;
  --sage: #5b7457;
  --rose: #a15e65;
  --line: #e5dccf;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
}
/* 38rem less the 1.25rem gutters keeps body text under 75 characters a line (measured 2026-11-04 in Segoe UI, the narrowest face it falls back to). */
header, main, footer { max-width: 38rem; margin: 0 auto; padding: 0 1.25rem; }
header { display: flex; align-items: center; gap: 0.75rem; padding-top: 2rem; }
header a { color: var(--ink); text-decoration: none; font-family: Literata, Georgia, serif; font-weight: 600; font-size: 1.25rem; }
/* The icon is cream on cream, so a hairline keeps it reading as a tile. */
.mark { width: 2.5rem; height: 2.5rem; border-radius: 0.6rem; box-shadow: 0 0 0 1px var(--line); }
h1, h2 { font-family: Literata, Georgia, serif; font-weight: 600; line-height: 1.2; text-wrap: balance; }
h1 { font-size: 2.125rem; margin: 2rem 0 0.75rem; }
h2 { font-size: 1.375rem; margin: 2.25rem 0 0.5rem; }
a { color: var(--sage); text-underline-offset: 0.15em; }
p, li { text-wrap: pretty; }
.lede { font-size: 1.25rem; text-wrap: balance; }
.muted { color: var(--muted); }
.card { background: var(--linen); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.25rem; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
ul { padding-left: 1.25rem; }
li + li { margin-top: 0.35rem; }
footer { margin-top: 3rem; padding-bottom: 2.5rem; color: var(--muted); font-size: 0.9375rem; }
/* The rule sits on the nav, inside the gutters, so it lines up with the text above it. */
footer nav { display: flex; flex-wrap: wrap; column-gap: 1.25rem; padding-top: 0.5rem; border-top: 1px solid var(--line); }
/* Padding makes each footer link a 42 px target on a phone. */
footer a { color: var(--muted); padding: 0.6rem 0; }

/* ---- Home: the knitted spine (surface brief .impeccable/surfaces/site-index-html.md) ---- */
::selection { background: var(--rose-blush, #f1e1e0); color: var(--ink); }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 6px; }

.home { --spine: clamp(36px, 11vw, 168px); --gutter: clamp(20px, 5vw, 72px); }
.home header.top { max-width: none; padding: 1.5rem var(--gutter) 0 calc(var(--spine) + var(--gutter)); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; position: relative; z-index: 2; }
.home .brand { display: flex; align-items: center; gap: 0.75rem; color: var(--ink); text-decoration: none; font-family: Literata, Georgia, serif; font-weight: 600; font-size: 1.25rem; }
.home header.top nav { display: flex; gap: 1.5rem; }
.home header.top nav a { color: var(--muted); text-decoration: none; padding: 0.6rem 0; font-size: 0.9375rem; }
.home header.top nav a:hover { color: var(--ink); }

.home .work { position: relative; }
/* The spine is one knitted strip: a photo of sage stockinette (Canva), blended into a seamless vertical tile. */
.home .spine { position: absolute; top: 0; bottom: 0; left: 0; width: var(--spine);
  background: #4f6a4b url('/img/knit.webp') top center / 100% auto repeat-y;
  box-shadow: inset -10px 0 18px -12px rgba(42, 39, 36, 0.35); }
/* The marker stays in view while the fabric and each section's row number pass under it. */
.home .marker { position: sticky; top: 7.25rem; display: block; margin-left: calc(var(--spine) - 30px); width: 60px; height: 100px; filter: drop-shadow(0 3px 4px rgba(42, 39, 36, 0.3)); }

.home main { max-width: none; margin: 0; padding: 0 var(--gutter) 0 calc(var(--spine) + var(--gutter)); }
.home .row { position: relative; padding: clamp(4rem, 9vw, 7.5rem) 0; border-top: 1px solid var(--line); max-width: 72rem; }
.home .row.hero { border-top: 0; padding-top: clamp(2.5rem, 6vw, 5rem); }
.home .row.hero .rowmark { top: clamp(2.5rem, 6vw, 5rem); }
.home .rowmark { position: absolute; top: clamp(4rem, 9vw, 7.5rem); left: calc(-1 * (var(--spine) + var(--gutter))); width: var(--spine); text-align: center; color: #fffdf8; font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.02em; text-shadow: 0 1px 2px rgba(42, 39, 36, 0.5); }

.home h1 { font-size: clamp(2.6rem, 6.2vw, 5.5rem); line-height: 1.02; letter-spacing: -0.025em; margin: 0 0 1.5rem; max-width: 13ch; }
.home h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 1.25rem; max-width: 18ch; }
.home h3 { font-family: Literata, Georgia, serif; font-weight: 600; font-size: 1.375rem; margin: 0 0 0.25rem; }
.home .lede { font-size: clamp(1.125rem, 1.6vw, 1.375rem); color: #4a443d; max-width: 34rem; text-wrap: pretty; }
.home .row p { max-width: 36rem; }
.home .note { color: var(--muted); font-size: 0.9375rem; }

.home .btn { display: inline-flex; align-items: center; min-height: 56px; padding: 0.75rem 1.75rem; line-height: 1.3; text-align: center; border-radius: 999px; background: var(--sage); color: #fffdf8; text-decoration: none; font-weight: 600; transition: background-color 160ms cubic-bezier(0.16, 1, 0.3, 1), transform 160ms cubic-bezier(0.16, 1, 0.3, 1); }
.home .btn:hover { background: #4e6549; transform: translateY(-1px); }
.home .btn:active { transform: translateY(0); }
.home .actions { margin: 2rem 0 0.75rem; }

/* A real screenshot in a plain ink bezel; the app is the proof. */
.home .phone { margin: 0; justify-self: center; width: min(100%, 300px); border-radius: 44px; padding: 10px; background: var(--ink); box-shadow: 0 30px 60px -24px rgba(42, 39, 36, 0.45), 0 8px 16px -8px rgba(42, 39, 36, 0.3); }
.home .phone img { display: block; width: 100%; height: auto; border-radius: 34px; }

.home .feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); }
/* The hero sets the counter as live type against the spine, the way the app shows it, beside the headline. */
.home .hero { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); align-items: start; gap: clamp(2rem, 5vw, 5rem); }
.home .tally .count { font-family: Literata, Georgia, serif; font-weight: 600; font-size: clamp(6rem, 13vw, 11rem); line-height: 0.9; font-variant-numeric: tabular-nums; letter-spacing: -0.04em; margin: 0; }
.home .tally .of { color: var(--muted); font-size: 1.125rem; margin: 0.5rem 0 1.5rem; }
.home .tally .step { background: var(--linen); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.25rem; max-width: 20rem; box-shadow: 0 12px 24px -18px rgba(42, 39, 36, 0.4); }
.home .tally .step p { margin: 0; }
.home .tally .label { color: var(--sage); font-weight: 600; font-size: 0.8125rem; margin-bottom: 0.25rem !important; }
.home .tally .next { color: var(--muted); font-size: 0.875rem; margin-top: 0.5rem !important; }
.home .feature.flip .text { order: 2; }
.home .feature.flip .phone { order: 1; }

.home .bag { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.home .bag h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); max-width: 14ch; margin: 0; }
.home .bag .photo { grid-column: 1 / -1; margin: 1rem 0 0; }
.home .bag .photo img { display: block; width: 100%; height: auto; border-radius: 20px; box-shadow: 0 24px 48px -28px rgba(42, 39, 36, 0.5); }
.home .bag p { font-size: clamp(1.125rem, 1.6vw, 1.3rem); max-width: 34rem; margin-top: 0.4rem; }

.home .ticks { list-style: none; padding: 0; margin: 0; max-width: 34rem; font-size: 1.125rem; }
.home .ticks li { position: relative; padding-left: 2rem; }
.home .ticks li + li { margin-top: 0.9rem; }
/* Each item is ticked off with a small knit V, the app's stitch mark. */
.home .ticks li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 1.25rem; height: 1rem; background: var(--sage); -webkit-mask: url('/img/v.svg') center / contain no-repeat; mask: url('/img/v.svg') center / contain no-repeat; }

.home .pricing .plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1.25rem; margin-top: 2.5rem; }
.home .plan { background: var(--linen); border: 1px solid var(--line); border-radius: 20px; padding: 1.75rem; }
.home .plan.pro { border-color: var(--sage); box-shadow: 0 0 0 1px var(--sage); }
.home .plan p { margin: 0.5rem 0 0; }
.home .price { font-family: Literata, Georgia, serif; font-weight: 600; font-size: 2.5rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.home .price span { display: block; line-height: 1.4; margin-top: 0.25rem; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; font-weight: 400; font-size: 1rem; color: var(--muted); }
.home .alt { color: var(--muted); }
.home .promises { margin: 1.5rem 0 0; color: var(--muted); }

.home .close { text-align: left; }
.home .close h2 { max-width: 20ch; }
.home footer { max-width: none; padding-left: calc(var(--spine) + var(--gutter)); padding-right: var(--gutter); margin-top: 0; }
.home footer nav { border-top: 1px solid var(--line); }

@media (max-width: 860px) {
  .home .hero, .home .feature, .home .bag, .home .pricing .plans { grid-template-columns: minmax(0, 1fr); }
  .home .feature.flip .text, .home .feature.flip .phone { order: 0; }
  .home .phone { width: min(78%, 280px); }
  .home .hero { gap: 1.5rem; }
  .home .tally { order: 2; }
  .home .tally .count { font-size: 5.5rem; }
  .home .marker { top: 9.5rem; width: 32px; height: 54px; margin-left: calc(var(--spine) - 16px); }
  .home .rowmark { font-size: 0.8125rem; writing-mode: vertical-rl; transform: rotate(180deg); width: auto; left: calc(-1 * (var(--spine) + var(--gutter)) + 6px); padding: 0.4rem 0.15rem; border-radius: 6px; background: #4f6a4b; }
  .home header.top nav { gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .home .btn { transition: none; } }
