/* Marlo — portfolio site.
   Self-contained: no external fonts, scripts, or CDNs.
   Visual language: warm paper, near-black ink, editorial serif display,
   monospace labels, hairline rules. Deliberately not a SaaS-gradient template. */

:root {
  --paper:      #f6f5f1;
  --paper-2:    #efeee8;
  --panel:      #fffefb;
  --ink:        #111318;
  --ink-soft:   #343a44;
  --muted:      #6b7280;
  --faint:      #9aa0aa;
  --rule:       #dcd9d0;
  --rule-2:     #cbc7bb;
  --accent:     #145c4b;   /* deep pine */
  --accent-ink: #0e4438;
  --signal:     #a12b22;   /* critical / warning ink */
  --warn:       #8a5a12;
  --ok:         #1c6b52;
  --masthead:   #0e1013;
  --mark:       #f6f5f1;

  --wrap: 1020px;
  --radius: 4px;

  --serif: Charter, "Bitstream Charter", "Iowan Old Style", "Palatino Linotype",
           Palatino, Georgia, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
           Arial, sans-serif;
  --mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
           "Liberation Mono", monospace;
}

* { 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);
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

::selection { background: #d8e6e0; color: var(--ink); }

a { color: var(--accent-ink); text-decoration: none;
    text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); text-decoration: underline; }

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

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

/* ------------------------------------------------------------------ masthead */

.site-header {
  background: var(--masthead);
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid #000;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 64px; flex-wrap: wrap;
}

.brand {
  display: inline-flex; align-items: center; gap: 11px;
  color: #f4f3ef; font-family: var(--serif);
  font-size: 20px; font-weight: 600; letter-spacing: .005em;
}
.brand:hover { text-decoration: none; color: #fff; }
.brand::before {
  content: ""; width: 11px; height: 11px; border-radius: 2px;
  background: var(--mark); box-shadow: inset 0 0 0 2px var(--masthead),
              0 0 0 1px #2c3038;
  transform: rotate(45deg);
}
.brand .brand-note {
  font-family: var(--mono); font-size: 11.5px; font-weight: 400;
  letter-spacing: .12em; text-transform: uppercase; color: #8b929c;
  padding-left: 11px; border-left: 1px solid #2c3038;
}

.site-nav { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.site-nav a {
  color: #b7bcc4; padding: 8px 12px; border-radius: 3px;
  font-size: 14.5px; letter-spacing: .01em;
}
.site-nav a:hover { color: #fff; background: #1b1f25; text-decoration: none; }
.site-nav a[aria-current="page"] { color: #fff; background: #24282f; }

/* --------------------------------------------------------------------- blocks */

main { display: block; counter-reset: sec; }

.section { padding: 62px 0; border-top: 1px solid var(--rule); counter-increment: sec; }
.section:first-of-type { border-top: 0; }
.section h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: 27px; line-height: 1.22; letter-spacing: -.01em;
  margin: 0 0 10px;
}
.section h2::before {
  content: counter(sec, decimal-leading-zero);
  display: block; font-family: var(--mono); font-size: 12px;
  letter-spacing: .16em; color: var(--faint); margin-bottom: 12px;
}
.section .lede { color: var(--muted); margin: 0 0 30px; max-width: 66ch; }

/* hero ---------------------------------------------------------------------- */

.hero {
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px 64px);
  border-bottom: 1px solid var(--rule);
  padding: 84px 0 66px;
}
.hero .hero-tag {
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent-ink); margin: 0 0 22px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: 46px; line-height: 1.1; letter-spacing: -.018em;
  margin: 0 0 20px; max-width: 20ch;
}
.hero p { font-size: 18.5px; color: var(--ink-soft); max-width: 60ch; margin: 0 0 16px; }
.hero p:last-child { margin-bottom: 0; }

/* page head (inner pages) --------------------------------------------------- */

.page-head { background: var(--panel); border-bottom: 1px solid var(--rule); padding: 58px 0 40px; }
.page-head h1 {
  font-family: var(--serif); font-weight: 600; font-size: 36px;
  line-height: 1.15; letter-spacing: -.015em; margin: 0 0 14px;
}
.page-head .lede { font-size: 18px; color: var(--ink-soft); max-width: 68ch; margin: 0; }
.eyebrow {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent-ink); margin: 0 0 14px;
}

/* ----------------------------------------------------------------- card grid */

.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--masthead);
  border-radius: var(--radius);
  padding: 24px 22px 20px;
  display: flex; flex-direction: column;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-top-color: var(--accent); transform: translateY(-2px); }
.card h3 {
  font-family: var(--serif); font-size: 21px; font-weight: 600;
  letter-spacing: -.01em; margin: 0 0 9px;
}
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--accent); text-decoration: none; }
.card p { margin: 0 0 12px; color: var(--ink-soft); font-size: 15.5px; }
.card .card-meta {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint); margin: 0 0 14px;
}
.card .card-foot {
  font-size: 14.5px; margin: auto 0 0; padding-top: 14px;
  border-top: 1px solid var(--rule); color: var(--muted);
}
.card .card-foot strong { color: var(--ink); font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------- lists */

.tight { margin: 0; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .92em; }
.small { font-size: 14.5px; }

ul.plain, ol.plain { margin: 0 0 16px; padding-left: 20px; }
ul.plain li, ol.plain li { margin: 0 0 9px; color: var(--ink-soft); }
ul.plain strong, ol.plain strong { color: var(--ink); }

ul.checks { list-style: none; margin: 0; padding: 0; }
ul.checks li {
  position: relative; padding-left: 26px; margin: 0 0 14px; color: var(--ink-soft);
}
ul.checks li::before {
  content: ""; position: absolute; left: 2px; top: .34em;
  width: 6px; height: 11px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(40deg);
}
ul.checks strong { color: var(--ink); }

/* --------------------------------------------------------------------- steps */

ol.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
ol.steps > li {
  counter-increment: step; position: relative;
  padding: 0 0 26px 54px; margin-left: 15px;
  border-left: 1px solid var(--rule-2);
}
ol.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
ol.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: -16px; top: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--panel); border: 1px solid var(--rule-2);
  color: var(--accent-ink); font-family: var(--mono); font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
ol.steps h3 { font-family: var(--serif); font-size: 18px; font-weight: 600; margin: 2px 0 4px; }
ol.steps p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* -------------------------------------------------------------------- tables */

table.data {
  width: 100%; border-collapse: collapse; background: var(--panel);
  border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden;
}
table.data th, table.data td {
  text-align: left; padding: 13px 17px; border-bottom: 1px solid var(--rule);
  font-size: 15px; vertical-align: top;
}
table.data th {
  background: var(--paper-2); font-family: var(--mono); font-weight: 500;
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
table.data tr:last-child td { border-bottom: 0; }
table.data td.price {
  font-variant-numeric: tabular-nums; white-space: nowrap;
  font-family: var(--mono); font-size: 14px; color: var(--ink);
}

/* ------------------------------------------------------------------ callouts */

.callout {
  border: 1px solid var(--rule-2); border-left: 3px solid var(--warn);
  background: var(--panel); border-radius: var(--radius); padding: 20px 22px;
}
.callout.limits { border-left-color: var(--signal); }
.callout.fact { border-left-color: var(--ok); }
.callout h3 { font-family: var(--serif); font-size: 17px; font-weight: 600; margin: 0 0 10px; }
.callout p, .callout li { color: var(--ink-soft); font-size: 15.5px; }
.callout p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------------- code */

code, pre { font-family: var(--mono); }
code {
  background: var(--paper-2); border: 1px solid var(--rule);
  border-radius: 3px; padding: 1px 6px; font-size: 13.5px; color: var(--ink);
}
pre {
  background: var(--masthead); color: #dfe3e8; border-radius: var(--radius);
  padding: 18px 20px; overflow-x: auto; font-size: 13.5px; line-height: 1.58;
}
pre code { background: none; border: 0; padding: 0; color: inherit; }

/* --------------------------------------------------------------------- price */

.price-line { display: flex; align-items: baseline; gap: 10px; margin: 0 0 6px; }
.price-line .amount {
  font-family: var(--serif); font-size: 27px; font-weight: 600;
  letter-spacing: -.01em; font-variant-numeric: tabular-nums;
}
.price-line .unit { color: var(--muted); font-size: 14.5px; }

/* -------------------------------------------------------------------- footer */

.site-footer {
  background: var(--masthead); color: #8b929c;
  padding: 46px 0 54px; font-size: 14.5px; border-top: 1px solid #000;
}
.site-footer .wrap {
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.site-footer a { color: #c3c8d0; }
.site-footer a:hover { color: #fff; }
.site-footer .foot-note { max-width: 58ch; line-height: 1.66; }

/* ------------------------------------------------------------------- checker */

.checker label {
  display: block; font-family: var(--mono); font-size: 11.5px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 9px;
}
.checker-row { display: flex; flex-wrap: wrap; gap: 10px; max-width: 780px; }
.checker input[type="text"],
.checker select,
.checker button {
  font-size: 15px; border-radius: var(--radius); padding: 12px 14px;
  border: 1px solid var(--rule-2); background: var(--panel); color: var(--ink);
}
.checker input[type="text"] {
  flex: 1 1 380px; min-width: 0; font-family: var(--mono); font-size: 14px;
}
.checker select { font-family: var(--sans); }
.checker button {
  font-family: var(--sans); font-weight: 600; color: #fff;
  background: var(--accent); border-color: var(--accent-ink); cursor: pointer;
}
.checker button:hover { background: var(--accent-ink); }
.checker input:focus, .checker select:focus, .checker button:focus {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.checker-out { margin-top: 28px; max-width: 880px; }
.checker-out .callout { margin: 0 0 16px; }
.checker-out table.data { margin: 0; }
.checker-out table.data th { width: 34%; white-space: nowrap; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 860px) {
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .hero { padding: 58px 0 46px; }
  .hero h1 { font-size: 33px; }
  .page-head h1 { font-size: 28px; }
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  ol.steps > li { padding-left: 46px; }
  .brand .brand-note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
