@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/HankenGrotesk-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/HankenGrotesk-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/HankenGrotesk-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Shippori Mincho'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/ShipporiMincho-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Shippori Mincho'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/ShipporiMincho-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Shippori Mincho'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/ShipporiMincho-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: 'Gloam'; font-weight: 400; font-display: swap; src: url('fonts/Gloam-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Gloam'; font-weight: 500; font-display: swap; src: url('fonts/Gloam-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Gloam'; font-weight: 600; font-display: swap; src: url('fonts/Gloam-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 300 700; font-display: swap; src: url('fonts/CormorantGaramond-latin.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('fonts/Fraunces-Variable.woff2') format('woff2'); }

/* Text Analyser — Reflect family tokens (reflectai.systems website set; accent = the assessment line). */
:root {
  --bg: #1a1a1a; --bg-alt: #151515; --card: #242424; --line: #333333; --line-soft: #2a2a2a;
  --text: #ececec; --text-2: #a8a8a8; --muted: #7d7d7d;
  /* One accent, one meaning: the target and being on target. --accent-hover is for the button's hover only. */
  --accent: #6ABE97; --accent-hover: #8AD3B0; --accent-tint: rgba(106,190,151,.13);
  --you: #E6E1D3;                 /* ivory: the user's text, wherever it is plotted */
  --sage: #829696; --amber: #c9a063; --brick: #A85951; --slate: #8a97ad;
  --ok: var(--accent); --easy: var(--slate);      /* within range / easier than typical; amber = harder, nothing else */
  --radius: 14px; --radius-btn: 11px; --maxw: 920px;
  --display: 'Gloam', 'Iowan Old Style', Palatino, Georgia, serif;      /* Paul, 2026-10-07: Gloam's serif, for now */
  --body: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; font: 16.5px/1.65 var(--body); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
[hidden] { display: none !important; }

/* nav */
.top { position: sticky; top: 0; z-index: 5; background: rgba(26,26,26,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); }
.top-in { max-width: var(--maxw); margin: 0 auto; padding: 10px 24px; display: flex; justify-content: space-between; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); font-family: var(--display); font-weight: 500; font-size: 19px; letter-spacing: .01em; }
.brand img { width: 54px; height: 42px; object-fit: contain; }
.top nav a { margin-left: 26px; text-decoration: none; color: var(--text-2); font-size: 14.5px; font-weight: 500; }
.top nav a:hover { color: var(--text); }

main { max-width: var(--maxw); margin: 0 auto; padding: 44px 24px 72px; }
h1 { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.15; letter-spacing: -.3px; margin: 0 0 14px; }
h2 { font-family: var(--display); font-weight: 500; font-size: 22px; margin: 52px 0 6px; }
h3 { font-family: var(--display); font-weight: 500; font-size: 18px; margin: 0 0 6px; }
.kicker { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 12px; }
.small, .sub { font-size: 14px; color: var(--text-2); }
.sub { margin: 0 0 16px; }
.intro p { color: var(--text-2); max-width: 44rem; font-size: 17.5px; }
.error { background: rgba(168,89,81,.14); border: 1px solid rgba(168,89,81,.5); color: #e6c4bf; padding: 12px 16px; border-radius: var(--radius-btn); }

/* form */
form.analyse { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 28px 0 44px; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend, label.block { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 8px; padding: 0; }
label.block .small { letter-spacing: 0; text-transform: none; font-weight: 400; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-btn); overflow: hidden; }
.seg label { position: relative; padding: 9px 18px; font-size: 15px; font-weight: 500; color: var(--text-2); cursor: pointer; }
.seg label + label { border-left: 1px solid var(--line); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--accent-tint); color: var(--text); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }
textarea, select, input[type=text] { font: inherit; color: var(--text); background: var(--bg-alt); border: 1px solid var(--line); border-radius: 9px; }
textarea { width: 100%; padding: 14px 16px; line-height: 1.6; resize: vertical; }
select, input[type=text] { padding: 8px 10px; margin-left: 8px; }
textarea:focus, select:focus, input[type=text]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
textarea::placeholder, input::placeholder { color: #5f5f5f; }
.options { margin: 18px 0 22px; display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; font-size: 15px; color: var(--text-2); }
.options .check { display: inline-flex; align-items: center; gap: 8px; }
input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; }
button { background: var(--accent); color: #14161a; border: 0; padding: 14px 28px; font: 600 15.5px var(--body); border-radius: var(--radius-btn); cursor: pointer; }
button:hover { background: var(--accent-hover); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.cards div { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 20px 22px; }
.cards p { margin: 0; color: var(--text-2); font-size: 15px; }

/* report */
.report-head h1 { margin-bottom: 6px; }
.meta { color: var(--text-2); margin: 2px 0; font-size: 15px; }
.actions { margin-top: 12px; font-size: 14.5px; }
.level-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin: 30px 0 8px; background: var(--card); background-image: radial-gradient(120% 140% at 0% 0%, var(--accent-tint), transparent 55%); }
.level-box .level { font-family: var(--display); font-weight: 500; font-size: clamp(46px, 7vw, 68px); line-height: 1.05; margin: 2px 0 8px; }
.level-box .range { font-size: 17px; margin: 0 0 12px; color: var(--text-2); }
.level-box .range strong { color: var(--text); font-weight: 600; }
.level-box.none p:not(.kicker) { max-width: 46rem; margin: 0; }
.note { color: var(--amber); margin-bottom: 0; }
table.measures { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 15.5px; }
table.measures th { text-align: left; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
table.measures td { padding: 13px 12px 13px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.measures td.num { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text); }
table.measures td.typ { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text-2); }
.status { font-weight: 600; font-size: 14px; }
.status::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: currentColor; }
tr.harder .status { color: var(--amber); }
tr.within .status { color: var(--ok); }
tr.easier .status { color: var(--easy); }
tr.neutral .status { color: var(--muted); }
.edit { display: block; color: var(--text-2); font-size: 14.5px; margin-top: 2px; }

tr.dist td { padding: 0 0 6px; border-bottom: 1px solid var(--line-soft); }
table.measures tr:has(+ tr.dist) td { border-bottom: 0; padding-bottom: 6px; }
details summary { cursor: pointer; list-style: none; font-size: 14px; color: var(--text-2); padding: 2px 0 8px; display: flex; align-items: center; gap: 10px; }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: ''; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; margin-right: 2px; }
details[open] summary::before { transform: rotate(45deg); }
details summary:hover { color: var(--accent); }
details summary:hover .more, details[open] summary .more { color: var(--accent); border-color: var(--accent); }
details summary:hover::before { border-color: var(--accent); }
details summary .more { transition: color .15s, border-color .15s; }
details summary .more { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; }
.strip { padding: 6px 0 16px; max-width: 640px; }
.srow { display: grid; grid-template-columns: 44px 1fr 132px; align-items: center; gap: 12px; height: 24px; font-size: 13.5px; color: var(--text-2); }
.srow.is-target { color: var(--text); }
.slev { font-weight: 600; }
.sval { font-variant-numeric: tabular-nums; white-space: nowrap; }
.track { position: relative; height: 100%; border-left: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); }
.track.bare { border-color: transparent; }
.whisk { position: absolute; top: 50%; height: 1px; background: #5c5c5c; }
.box { position: absolute; top: 7px; height: 10px; border-radius: 3px; background: #4a4a4a; }
.is-target .box { background: var(--accent); }
.med { position: absolute; top: 5px; width: 2px; height: 14px; margin-left: -1px; background: var(--text); opacity: .85; }
.strip { position: relative; }
.mark-row { height: 26px; }
.mark { position: absolute; top: -100px; height: 106px; width: 0; border-left: 1.5px dashed var(--you); }
.mark i { position: absolute; top: 106px; left: 0; transform: translateX(-50%); white-space: nowrap; font-style: normal; font-size: 12.5px; color: var(--you); font-weight: 600; }
.axis { height: 18px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ax { position: absolute; top: 0; } .ax.l { left: 0; } .ax.r { right: 0; }

/* sections */
.secform { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.secsum { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 2px 0 14px; }
.chip { background: transparent; color: var(--text-2); border: 1px solid var(--line); border-radius: var(--radius-btn); padding: 9px 16px; font: 500 13px var(--body); display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; letter-spacing: .04em; }
.chip strong { font: 500 24px/1.1 var(--display); color: var(--text); letter-spacing: 0; }
.chip:hover { background: transparent; border-color: var(--accent); color: var(--text); }
.chip.on { border-color: var(--accent); background: var(--accent-tint); color: var(--text); }
.secline { font-size: 17px; margin: 0 0 10px; }
.secpanels.tabbed .secpanel { display: none; }
.secpanels.tabbed .secpanel.on { display: block; }
.secpanel > h2 { margin-top: 40px; }
.secpanel > h2 .small { font-family: var(--body); font-weight: 400; }
.seclevel { margin: 4px 0 0; } .seclevel strong { font: 500 40px/1.1 var(--display); }
.seclevel.none { color: var(--text-2); max-width: 44rem; }
h2.whole { margin-top: 64px; padding-top: 34px; border-top: 1px solid var(--line); }
h3 + .sub, .secpanel h3 { margin-top: 22px; }

.bands { display: flex; align-items: flex-end; gap: 6px; height: 212px; border-bottom: 1px solid var(--line); margin-top: 18px; }
.band { flex: 1; max-width: 104px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.band .cols { display: flex; align-items: flex-end; gap: 4px; }
.bar { width: 26px; border-radius: 4px 4px 0 0; display: block; }
.bar.text { background: var(--you); }
.bar.typical { background: var(--accent-tint); border: 1px solid var(--accent); border-bottom: 0; }
.band .bv { font-size: 13.5px; margin-top: 7px; font-variant-numeric: tabular-nums; }
.band .tv { color: var(--muted); }
.band .bl { font-size: 12px; letter-spacing: .08em; color: var(--muted); padding-bottom: 8px; }
.legend { font-size: 13.5px; color: var(--text-2); margin: 12px 0 2px; display: flex; gap: 8px; align-items: center; }
.key { width: 14px; height: 10px; border-radius: 2px; display: inline-block; }
.key.text { background: var(--you); }
.key.typical { border: 1px solid var(--accent); background: var(--accent-tint); margin-left: 14px; }
.words { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 8px; padding: 0; list-style: none; }
.words li { border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: 14.5px; color: var(--text); }

/* accent preview (temporary): green options. With a green accent, 'within range' takes the accent and 'easier' the Reflect slate. */
body.a-fern   { --accent: #7DB08F; --accent-hover: #9CC7AB; --accent-tint: rgba(125,176,143,.13); }
body.a-lichen { --accent: #A3B07C; --accent-hover: #BCC89A; --accent-tint: rgba(163,176,124,.13); }
body.a-blue   { --accent: #6f9bc4; --accent-hover: #8fb3d6; --accent-tint: rgba(111,155,196,.14); }

/* heading-face preview (local only) */
body.h-fraunces { --display: 'Fraunces', Georgia, serif; }
body.h-fraunces h1, body.h-fraunces .level-box .level { font-weight: 500; letter-spacing: -.6px; font-variation-settings: 'opsz' 96; }
body.h-fraunces h2, body.h-fraunces h3, body.h-fraunces .brand { font-weight: 550; }
body.h-shippori { --display: 'Shippori Mincho', Georgia, serif; }
body.h-cormorant { --display: 'Cormorant Garamond', Georgia, serif; }
body.h-cormorant h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 600; }
body.h-cormorant h2 { font-size: 26px; font-weight: 600; } body.h-cormorant h3, body.h-cormorant .brand { font-size: 21px; font-weight: 600; }
body.h-cormorant .level-box .level { font-weight: 600; }
body.h-hanken { --display: var(--body); }
body.h-hanken h1, body.h-hanken .level-box .level { font-weight: 600; letter-spacing: -.8px; }
body.h-hanken h2, body.h-hanken h3, body.h-hanken .brand { font-weight: 600; letter-spacing: -.2px; }

.prose { max-width: 44rem; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); font-weight: 600; }
.prose dt { font-weight: 600; margin-top: 16px; color: var(--text); }
.prose dd { margin-left: 0; color: var(--text-2); }
footer { border-top: 1px solid var(--line-soft); background: var(--bg-alt); }
.foot-in { max-width: var(--maxw); margin: 0 auto; padding: 26px 24px 40px; color: var(--muted); font-size: 14px; }
.foot-in p { margin: 4px 0; }

@media (max-width: 620px) {
  main { padding: 28px 18px 56px; }
  .top nav a:first-child { display: none; }
  table.measures th:nth-child(3), table.measures td.typ { display: none; }
  .srow { grid-template-columns: 38px 1fr 0; } .sval { display: none; }
  .bar { width: 15px; } .band .tv { display: none; }
}

/* Printed or saved as PDF: black on white. */
@media print {
  :root { --bg: #fff; --bg-alt: #fff; --card: #fff; --line: #bbb; --line-soft: #ddd; --text: #111; --text-2: #333; --muted: #555;
          --accent: #2f7d5a; --accent-hover: #2f7d5a; --accent-tint: transparent; --you: #222; --slate: #4a5a78; --amber: #8a5a00; }
  html, body { background: #fff; }
  .top { position: static; background: #fff; backdrop-filter: none; }
  .top nav, .noprint, footer .small { display: none; }
  .brand img { filter: none; }
  main { padding-top: 12px; }
  .level-box { background-image: none; break-inside: avoid; }
  .bar.text, .key.text, .box { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  h2 { break-after: avoid; } table.measures tr { break-inside: avoid; }
  .secpanels.tabbed .secpanel { display: block; } .chip { border-color: #999; }
}
