/* Tentmaker product page: madder, cilicium and linen. Palette and type from the tentmaker repo's
   brand/README.md. Bricolage Grotesque and IBM Plex Mono are OFL. */
@font-face { font-family: "Bricolage Grotesque"; src: url(/assets/tentmaker-display.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(/assets/tentmaker-mono.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --madder: #A63D2A;
  --madder-light: #E07A5F;
  --cilicium: #1F1C19;
  --cilicium-2: #2A2622;
  --cilicium-line: #3A342E;
  --linen: #F3EEE3;
  --linen-2: #EAE3D4;
  --linen-line: #D9D0BE;
  --ochre: #8A6420;
  --ochre-dark: #D6A64F;
  --ink-muted: #5B524A;
  --on-dark-muted: #BDB3A5;
  --sans: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1160px;
  --radius: 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.tm { margin: 0; background: var(--linen); color: var(--cilicium); font: 400 18px/1.6 var(--sans); font-optical-sizing: auto; }
a { color: var(--madder); text-underline-offset: 3px; }
a:hover { color: var(--cilicium); }
code { font-family: var(--mono); font-size: .88em; background: var(--linen-2); border: 1px solid var(--linen-line); border-radius: 6px; padding: .05em .35em; white-space: nowrap; }
h1, h2, h3 { font-family: var(--sans); line-height: 1.08; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 750; max-width: 20ch; }
h2 em, h1 em { font-style: normal; color: var(--madder); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
.tm-skip { position: absolute; left: -999px; top: 8px; background: var(--cilicium); color: var(--linen); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.tm-skip:focus { left: 16px; }
.tm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--madder-light); outline-offset: 3px; border-radius: 6px; }

/* Mark: two tone, door in madder, cloth in the text color. */
.tm-mark { width: 30px; height: 30px; flex: none; }
.tm-door { fill: var(--madder); }
.tm-cloth { fill: currentColor; }

/* Nav */
.tm-nav { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 24px; padding: 14px max(16px, calc((100% - var(--wrap)) / 2)); background: color-mix(in srgb, var(--linen) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--linen-line); }
.tm-brand { display: flex; align-items: center; gap: 10px; color: var(--cilicium); text-decoration: none; font-weight: 800; font-size: 1.45rem; letter-spacing: -.03em; }
.tm-brand:hover { color: var(--cilicium); }
.tm-nav nav { display: flex; gap: 22px; margin-left: auto; }
.tm-nav nav a { color: var(--ink-muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.tm-nav nav a:hover { color: var(--cilicium); }
@media (max-width: 860px) { .tm-nav nav { display: none; } .tm-nav-cta { margin-left: auto; } }

/* Buttons */
.tm-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tm-button { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; background: var(--madder); color: #FFF8F0; font-weight: 650; text-decoration: none; border: 1.5px solid var(--madder); transition: background .15s, color .15s; }
.tm-button:hover { background: #8E3324; border-color: #8E3324; color: #FFF8F0; }
.tm-button svg { width: 18px; height: 18px; }
.tm-button-ghost { background: transparent; color: var(--cilicium); border-color: var(--cilicium); }
.tm-button-ghost:hover { background: var(--cilicium); color: var(--linen); border-color: var(--cilicium); }
.tm-nav-cta { min-height: 38px; padding: 0 16px; font-size: .95rem; }

/* Hero: dark, like the goat-hair cloth */
.tm-hero { background: var(--cilicium); color: var(--linen); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; padding: 88px max(16px, calc((100% - var(--wrap)) / 2)) 96px; }
.tm-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; }
.tm-hero h1 span { display: block; }
.tm-hero h1 em { display: block; color: var(--madder-light); }
.tm-eyebrow { color: var(--ochre-dark); font-weight: 600; letter-spacing: .02em; margin-bottom: 18px; }
.tm-lede { font-size: 1.18rem; color: #E4DCCD; margin: 24px 0 32px; max-width: 34em; }
.tm-hero .tm-button { background: var(--madder-light); border-color: var(--madder-light); color: var(--cilicium); }
.tm-hero .tm-button:hover { background: #EA927A; border-color: #EA927A; color: var(--cilicium); }
.tm-hero .tm-button-ghost { background: transparent; color: var(--linen); border-color: var(--linen); }
.tm-hero .tm-button-ghost:hover { background: var(--linen); color: var(--cilicium); border-color: var(--linen); }
.tm-meta { margin-top: 26px; color: var(--on-dark-muted); font-size: .92rem; }
.tm-demo { margin: 0; }
.tm-window { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--cilicium-line); background: #1F1C19; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.tm-window-bar { display: flex; gap: 7px; padding: 11px 14px; background: var(--cilicium-2); border-bottom: 1px solid var(--cilicium-line); }
.tm-window-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--cilicium-line); }
.tm-window-bar i:first-child { background: var(--madder-light); }
.tm-window picture, .tm-window img { display: block; width: 100%; height: auto; }
.tm-demo figcaption { color: var(--on-dark-muted); font-size: .88rem; margin-top: 14px; line-height: 1.5; }
@media (max-width: 960px) { .tm-hero { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; padding-bottom: 64px; } }

/* Sections */
.tm-section { padding: 96px max(16px, calc((100% - var(--wrap)) / 2)); }
.tm-section + .tm-section { border-top: 1px solid var(--linen-line); }
.tm-kicker { color: var(--madder); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.tm-intro { font-size: 1.12rem; color: var(--ink-muted); max-width: 40em; margin-top: 18px; }
.tm-prose { margin-top: 24px; max-width: 42em; display: grid; gap: 18px; font-size: 1.12rem; }
.tm-fine { color: var(--ink-muted); font-size: .92rem; margin-top: 10px; }
.tm-note { margin-top: 32px; color: var(--ink-muted); }

/* Budget rows: the strips of the tent, sewn edge to edge */
.tm-rows { margin: 36px 0 0; display: grid; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--linen-line); }
.tm-rows > div { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 18px 24px; background: #FBF8F2; }
.tm-rows > div + div { border-top: 1px solid var(--linen-line); }
.tm-rows dt { font-family: var(--mono); font-weight: 500; color: var(--madder); }
.tm-rows dd { margin: 0; }
@media (max-width: 640px) { .tm-rows > div { grid-template-columns: 1fr; gap: 4px; padding: 16px 18px; } }

/* Cards */
.tm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 40px; }
@media (max-width: 380px) { .tm-grid { grid-template-columns: 1fr; } }
.tm-card { background: #FBF8F2; border: 1px solid var(--linen-line); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; align-content: start; }
.tm-card p { color: var(--ink-muted); font-size: 1rem; }

/* Dark band */
.tm-band { background: var(--cilicium); color: var(--linen); padding: 96px max(16px, calc((100% - var(--wrap)) / 2)); }
.tm-band .tm-kicker { color: var(--madder-light); }
.tm-band .tm-card { background: var(--cilicium-2); border-color: var(--cilicium-line); }
.tm-band .tm-card p { color: var(--on-dark-muted); }
.tm-band code { background: var(--cilicium); border-color: var(--cilicium-line); color: var(--linen); }
.tm-band a { color: var(--madder-light); }
.tm-limits { margin-top: 28px; border-left: 3px solid var(--ochre-dark); padding: 6px 0 6px 20px; max-width: 52em; }
.tm-limits h3 { color: var(--ochre-dark); margin-bottom: 8px; }
.tm-limits p { color: #E4DCCD; }

/* Code */
.tm-code { border-radius: 12px; overflow: hidden; background: var(--cilicium); border: 1px solid var(--cilicium-line); margin-top: 14px; }
.tm-code-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 8px 16px; color: var(--on-dark-muted); font-size: .82rem; border-bottom: 1px solid var(--cilicium-line); }
.tm-code pre { margin: 0; padding: 18px 18px 20px; overflow-x: auto; }
.tm-code code { background: none; border: 0; padding: 0; color: var(--linen); font-size: .9rem; line-height: 1.7; white-space: pre; }
.tm-copy { display: inline-flex; align-items: center; gap: 6px; background: var(--cilicium-2); color: var(--linen); border: 1px solid var(--cilicium-line); border-radius: 8px; padding: 5px 10px; font: 600 .82rem var(--sans); cursor: pointer; }
.tm-copy:hover { border-color: var(--madder-light); }
.tm-copy svg { width: 15px; height: 15px; }
.tm-copy.is-done .tm-copy-icon { display: none; }
.tm-copy.is-done .tm-done-icon { display: inline-flex; color: var(--madder-light); }
.tm-copy-icon, .tm-done-icon { display: inline-flex; }
.tm-done-icon { display: none; }
.tm-install-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.tm-install-grid > article, .tm-workflow { min-width: 0; }
.tm-install-grid h3 { margin-bottom: 2px; }
.tm-workflow { margin-top: 36px; max-width: 640px; }
@media (max-width: 860px) { .tm-install-grid { grid-template-columns: 1fr; } }

/* FAQ */
.tm-faq details { border-top: 1px solid var(--linen-line); max-width: 52em; }
.tm-faq details:last-child { border-bottom: 1px solid var(--linen-line); }
.tm-faq h2 { margin-bottom: 28px; }
.tm-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-weight: 650; font-size: 1.1rem; }
.tm-faq summary::-webkit-details-marker { display: none; }
.tm-plus svg { width: 20px; height: 20px; color: var(--madder); transition: transform .2s; }
.tm-faq details[open] .tm-plus svg { transform: rotate(45deg); }
.tm-faq details p { padding: 0 0 22px; color: var(--ink-muted); max-width: 44em; }

/* Closing */
.tm-closing { background: var(--cilicium); color: var(--linen); text-align: center; padding: 104px 16px; display: grid; justify-items: center; gap: 16px; }
.tm-closing-mark { width: 84px; height: 84px; color: var(--linen); }
.tm-closing .tm-door { fill: var(--madder-light); }
.tm-closing h2 { max-width: none; }
.tm-closing p { color: var(--on-dark-muted); font-size: 1.12rem; margin-bottom: 12px; }
.tm-closing .tm-button { background: var(--madder-light); border-color: var(--madder-light); color: var(--cilicium); }
.tm-closing .tm-button-ghost { background: transparent; color: var(--linen); border-color: var(--linen); }
.tm-closing .tm-button-ghost:hover { background: var(--linen); color: var(--cilicium); }

/* Footer */
.tm-footer { display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; align-items: center; padding: 32px max(16px, calc((100% - var(--wrap)) / 2)); background: var(--cilicium); color: var(--on-dark-muted); border-top: 1px solid var(--cilicium-line); font-size: .92rem; }
.tm-footer a { color: var(--linen); }
.tm-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
