/* tesseracollections.com: the public site (20 Oct 2026).
   The app's house style (tessera.css): ink and bone, verdigris for action, ochre for value, terracotta for "needs you".
   Type: IBM Plex Serif for headings (a museum label), IBM Plex Sans for reading, IBM Plex Mono for catalogue data
   (object numbers, dates, values). Cinzel only in the wordmark.
   Layout: a narrow reading column with wide "specimen" panels: record cards that show the product's own output. */

:root {
    color-scheme: light;
    --bg: #F4EFE6;            /* bone */
    --surface: #FFFFFF;
    --sunk: #EDE6D9;
    --line: #DCD4C6;
    --ink: #141311;
    --muted: #5E584E;
    --brand: #3F7A6B;         /* verdigris: buttons */
    --brand-ink: #2F6B5C;     /* verdigris as text */
    --brand-hover: #356859;
    --ochre: #7E5F1E;         /* value */
    --terra: #9A4422;         /* needs you */
    --tile: #141311;
    --on-brand: #FFFFFF;
    --display: "IBM Plex Serif", Georgia, "Times New Roman", serif;
    --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    --mark: "Cinzel", "Trajan Pro", Georgia, serif;
    --step-0: 1rem; --step-1: 1.25rem; --step-2: 1.6rem; --step-3: 2.1rem; --step-4: clamp(2.3rem, 5vw, 3.4rem);
    --radius: 10px;
    --gutter: max(16px, env(safe-area-inset-left, 0px));
    --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #141311; --surface: #1F1D1A; --sunk: #191714; --line: #34302B; --ink: #EFE9DD; --muted: #A39C90;
        --brand: #3F7A6B; --brand-ink: #6FB09E; --brand-hover: #4A8A79; --ochre: #D2AE63; --terra: #D07650; --tile: #EFE9DD;
    }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #141311; --surface: #1F1D1A; --sunk: #191714; --line: #34302B; --ink: #EFE9DD; --muted: #A39C90;
    --brand: #3F7A6B; --brand-ink: #6FB09E; --brand-hover: #4A8A79; --ochre: #D2AE63; --terra: #D07650; --tile: #EFE9DD;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); }
img { max-width: 100%; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.18; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.read { max-width: 660px; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 620px; }
.eyebrow { font: 500 0.78rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 28px; }

/* header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--bg); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand svg { width: 28px; height: 28px; flex-shrink: 0; }
.brand span { font: 600 1.05rem/1 var(--mark); letter-spacing: 0.14em; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 6px; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--sunk); }
.nav .btn { margin-left: 8px; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--on-brand); background: var(--brand); }
.nav a.btn-primary:hover { background: var(--brand-hover); }
.menu-btn { display: none; margin-left: auto; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--ink); font: inherit; font-size: 0.95rem; cursor: pointer; }
@media (max-width: 860px) {
    .menu-btn { display: inline-flex; align-items: center; }
    .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px;
           background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter-r) 16px var(--gutter); }
    .nav.open { display: flex; }
    .nav a { padding: 12px 10px; font-size: 1.05rem; }
    .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 8px;
       font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background 0.15s; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { background: var(--sunk); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* sections */
section { padding-block: 72px; }
section + section { border-top: 1px solid var(--line); }
.hero { padding-block: 64px 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.hero-grid > * { min-width: 0; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } section { padding-block: 56px; } .hero { padding-block: 40px 56px; } }
.page-head { padding-block: 56px 40px; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.cols-2 > *, .cols-3 > * { min-width: 0; }
@media (max-width: 860px) { .cols-2, .cols-3 { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; max-width: 680px; }

/* the record card: Tessera's own output, shown as a museum label */
.record { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
          box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(20, 19, 17, 0.35); }
.record-photo { aspect-ratio: 4 / 3; max-width: 100%; background: var(--sunk); position: relative; display: block; }
.record-photo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.record-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.record-title { font: 500 1.3rem/1.25 var(--display); }
.record dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 18px; font-size: 0.93rem; }
.record dt { font: 500 0.72rem/1.7 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.record dd { margin: 0; min-width: 0; }
.record .value { font: 500 1.1rem/1.3 var(--mono); color: var(--ochre); font-variant-numeric: tabular-nums; }
.record-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line);
               font: 0.78rem/1.4 var(--mono); color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: 500 0.78rem/1.5 var(--body); border: 1px solid var(--line); }
.chip.good { color: var(--brand-ink); border-color: currentColor; }
.chip.todo { color: var(--terra); border-color: currentColor; }
.example-tag { position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--surface); color: var(--muted); font: 500 0.72rem/1 var(--mono);
               letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 8px; border-radius: 4px; border: 1px solid var(--line); }

/* steps (a real sequence) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding-top: 16px; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(s); font: 500 0.85rem/1 var(--mono); color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* plain feature list */
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.features li { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.features b { font-weight: 600; }
.features span { color: var(--muted); font-size: 0.97rem; }
@media (max-width: 760px) { .features { grid-template-columns: minmax(0, 1fr); } }

/* audience strip on Home */
.who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.who a { display: flex; flex-direction: column; gap: 8px; padding: 26px 24px; color: var(--ink); text-decoration: none; min-width: 0; }
.who a + a { border-left: 1px solid var(--line); }
.who a:hover { background: var(--sunk); }
.who .go { margin-top: auto; padding-top: 8px; color: var(--brand-ink); font-weight: 600; font-size: 0.95rem; }
@media (max-width: 760px) { .who { grid-template-columns: minmax(0, 1fr); } .who a + a { border-left: 0; border-top: 1px solid var(--line); } }

/* the timeline teaser */
.through-time { position: relative; height: 92px; margin-top: 8px; }
.through-time .axis { position: absolute; left: 0; right: 0; top: 46px; height: 1px; background: var(--line); }
.through-time i { position: absolute; top: 38px; width: 16px; height: 16px; margin-left: -8px; border-radius: 3px; background: var(--tile); }
.through-time i.lift { top: 22px; background: var(--brand); }
.through-time span { position: absolute; top: 66px; transform: translateX(-50%); font: 0.72rem/1 var(--mono); color: var(--muted); white-space: nowrap; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.plan.pick { border-color: var(--brand-ink); box-shadow: inset 0 0 0 1px var(--brand-ink); }
.plan h3 { font-size: 1.2rem; }
.price { display: flex; flex-direction: column; gap: 2px; }
.price b { font: 500 1.9rem/1.1 var(--mono); font-variant-numeric: tabular-nums; }
.price s { color: var(--muted); font: 0.9rem var(--mono); }
.price small { color: var(--muted); font-size: 0.88rem; }
.plan ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 0.95rem; }
.plan .btn { margin-top: auto; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 500 0.75rem/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* notes and callouts */
.note { border-left: 3px solid var(--ochre); padding: 4px 0 4px 16px; color: var(--muted); font-size: 0.97rem; }
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 16px; color: var(--muted); max-width: 680px; }

/* the form */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > label, .field legend { font-weight: 600; font-size: 0.97rem; padding: 0; }
.field .hint { color: var(--muted); font-size: 0.88rem; margin-top: -4px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
input[type="email"], input[type="text"], select { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px;
         background: var(--bg); color: var(--ink); font: inherit; font-size: 1rem; }
input:focus, select:focus { outline: 2px solid var(--brand-ink); outline-offset: 1px; border-color: transparent; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.options label { position: relative; }
.options input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.options span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.95rem; cursor: pointer; background: var(--bg); }
.options input:checked + span { border-color: var(--brand-ink); color: var(--brand-ink); box-shadow: inset 0 0 0 1px var(--brand-ink); font-weight: 600; }
.options input:focus-visible + span { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 560px) { .two { grid-template-columns: minmax(0, 1fr); } .form-card { padding: 22px 18px; } }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--brand); }
.robot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 14px 16px; border-radius: 8px; font-size: 0.97rem; }
.form-msg.err { background: var(--sunk); color: var(--terra); border: 1px solid currentColor; }
.done { display: flex; flex-direction: column; gap: 14px; }
.done h2 { font-size: var(--step-2); }
.ref-note { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 8px; background: var(--sunk); font-size: 0.93rem; }

/* journal */
.posts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.posts li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.posts time, .posts .when { font: 0.82rem/1.6 var(--mono); color: var(--muted); }
.posts h3 { font-size: 1.15rem; margin-bottom: 4px; }
@media (max-width: 560px) { .posts li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.prose { max-width: 680px; display: flex; flex-direction: column; gap: 18px; }
.prose h2 { font-size: var(--step-2); margin-top: 18px; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 48px calc(48px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 0.93rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-grid > * { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--ink); }
.foot-grid h4 { margin: 0 0 4px; font: 500 0.75rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.foot-base { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.theme-btn { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 6px; min-height: 36px; padding: 0 12px; font: inherit; font-size: 0.88rem; cursor: pointer; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* closing call */
.closing { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.closing > div { min-width: 0; max-width: 620px; display: flex; flex-direction: column; gap: 10px; }

.preview-note { background: var(--sunk); color: var(--muted); font: 0.8rem/1.4 var(--mono); text-align: center; padding: 8px var(--gutter-r) 8px var(--gutter); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Tessera Loupe: a browser window with the Loupe panel beside it (drawn, theme-aware) */
.loupe-demo { position: relative; padding-bottom: 28px; }
.browser { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; width: 86%; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--sunk); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex-shrink: 0; }
.browser-bar span { margin-left: 8px; flex: 1; min-width: 0; padding: 4px 10px; border-radius: 5px; background: var(--surface); font: 0.75rem/1.4 var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px; }
.lot { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 0.8rem; color: var(--muted); }
.lot b { color: var(--ink); font-weight: 600; font-size: 0.82rem; line-height: 1.3; }
.lot .ph { aspect-ratio: 1; max-width: 100%; border-radius: 6px; background: var(--sunk); display: flex; align-items: center; justify-content: center; position: relative; }
.lot .ph svg { width: 62%; height: 62%; }
.lot.picked .ph { outline: 2px dashed var(--brand-ink); outline-offset: 3px; }
.panel { position: absolute; right: 0; bottom: 0; width: 46%; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
         box-shadow: 0 18px 40px -20px rgba(20, 19, 17, 0.45); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.panel .head { display: flex; align-items: baseline; gap: 8px; }
.panel .head b { font: 600 0.85rem/1 var(--mark); letter-spacing: 0.14em; }
.panel .title { font: 500 1.1rem/1.25 var(--display); }
.panel .value { font: 500 1.1rem/1.3 var(--mono); color: var(--ochre); font-variant-numeric: tabular-nums; }
.steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .steps.three { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .browser { width: 100%; } .panel { position: relative; width: 100%; margin-top: -40px; margin-left: auto; max-width: 300px; } .lots { gap: 8px; padding: 12px; } }

.see-real { font-size: 0.9rem; color: var(--muted); }
.see-real a { font-weight: 600; }
