/* Curiouser Type — playful print style */
/* Figtree (SIL Open Font License, see /assets/fonts/figtree/OFL.txt), served from this site */
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: swap; src: url(/assets/fonts/figtree/Figtree-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: swap; src: url(/assets/fonts/figtree/Figtree-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; }
:root {
  --cream: #F4EBD3; --paper: #FBF5E4; --ink: #1F1A3D; --ink-2: #4A4566; --tomato: #D24A2F;
  --mustard: #F2C14E; --peri: #8E8CE8; --indigo: #3B32A8; --line: #CFC6AE;
  --radius: 14px; --shadow: 5px 5px 0 var(--ink); --gutter: clamp(16px, 3.5vw, 48px);
  --ui: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --label: 'Jotwell', var(--ui);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 500 17px/1.55 var(--ui); }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { color: var(--tomato); }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.label { font-family: var(--label); font-size: 19px; letter-spacing: .01em; }
h1, h2, h3 { margin: 0; line-height: .95; font-weight: 400; text-wrap: balance; }
.lede { text-wrap: pretty; }
p { margin: 0 0 1em; }

/* announcement + header */
.bar { background: var(--indigo); color: var(--cream); text-align: center; padding: 9px var(--gutter); font-size: 15px; font-weight: 600; }
.bar a { color: var(--cream); text-decoration: none; }
.bar a:hover { color: var(--mustard); }
.site-head { position: sticky; top: 0; z-index: 20; background: var(--cream); border-bottom: 2px solid var(--ink); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { display: block; width: 210px; }
.nav { display: flex; gap: 28px; align-items: center; font-weight: 700; }
.nav a { text-decoration: none; padding: 10px 0; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-color: var(--tomato); }
.menu-btn { display: none; min-height: 44px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); font: 700 16px var(--ui); color: var(--ink); cursor: pointer; }
@media (max-width: 760px) {
  .logo { width: 170px; }
  .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: 0; background: var(--cream); border-bottom: 2px solid var(--ink); padding: 8px var(--gutter) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 20px; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border: 2px solid var(--ink); border-radius: 999px; font: 800 17px var(--ui); text-decoration: none; cursor: pointer; background: var(--paper); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); color: var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn.ink { background: var(--ink); color: var(--cream); box-shadow: 4px 4px 0 var(--tomato); }
.btn.ink:hover { color: var(--cream); box-shadow: 5px 5px 0 var(--tomato); }
.btn.tomato { background: var(--tomato); color: var(--cream); }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* sections */
section { padding: clamp(40px, 6vw, 88px) 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 24px; }
.section-head .h2 { margin-bottom: 0; }
.h2 { font-family: 'Hollerbrush', var(--ui); font-weight: 900; font-size: clamp(40px, 5vw, 72px); line-height: .9; margin-bottom: 24px; }
.lede { font-size: clamp(17px, 1.6vw, 20px); max-width: 640px; }
.tilt-l { transform: rotate(-1deg); } .tilt-r { transform: rotate(1deg); }
@media (prefers-reduced-motion: reduce) { .tilt-l, .tilt-r, .wob span { transform: none !important; } .btn { transition: none; } }

/* hero */
.hero { padding-top: clamp(32px, 5vw, 64px); }
.hero h1 { font-family: 'Hollerbrush', var(--ui); font-weight: 900; font-size: clamp(56px, 10vw, 156px); line-height: .88; margin: 0 0 24px; overflow-wrap: anywhere; }
.wob span { display: inline-block; }
.sticker { display: inline-block; padding: 4px 14px; border: 2px solid var(--ink); border-radius: 6px; background: var(--mustard); font-family: var(--label); font-size: 19px; transform: rotate(-2deg); margin-bottom: 18px; }

/* cards */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.more { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid.more .card .pair { font-size: clamp(64px, 6vw, 96px); }
@media (max-width: 1199px) { .grid.more { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) { .grid, .grid.more { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid, .grid.more { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 260px; padding: 20px; border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; transition: transform .12s; }
.card:hover { transform: rotate(0deg) translate(-2px, -2px) !important; color: inherit; }
.card .pair { font-size: clamp(84px, 9vw, 120px); line-height: .95; }
.card .pair.preview { font-size: clamp(40px, 4vw, 58px); line-height: 1.05; overflow-wrap: anywhere; min-width: 0; }
.card .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.card .name { font-size: 22px; font-weight: 800; }
.chip { display: inline-block; padding: 2px 10px; border: 2px solid currentColor; border-radius: 999px; font-family: var(--label); font-size: 16px; }

.facts { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.fact { padding: 22px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.fact h3 { font-family: 'Hollerbrush', var(--ui); font-weight: 900; font-size: 30px; margin-bottom: 8px; }
.fact p { margin: 0; }

.band { background: var(--ink); color: var(--cream); }
.band a { color: var(--mustard); }

/* style switch on home */
.switch { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 0; }
.switch button, .seg button { min-height: 44px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 999px; background: var(--cream); color: var(--ink); font: 400 20px var(--ui); cursor: pointer; }
.switch button[aria-pressed="true"], .seg button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.showcase { font-size: min(7.4vw, 128px); line-height: 1; overflow-wrap: anywhere; color: var(--ink); white-space: nowrap; }

/* tester */
.tester { border: 2px solid var(--ink); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); overflow: hidden; }
.tester .tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px; border-bottom: 2px solid var(--ink); background: var(--mustard); }
.tester .seg { display: flex; flex-wrap: wrap; gap: 8px; }
.tester .seg button { font-size: 18px; padding: 0 14px; }
.tester label.size { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.tester input[type=range] { width: 160px; accent-color: var(--ink); }
.tester textarea { display: block; width: 100%; min-height: 220px; padding: 24px; border: 0; background: transparent; color: var(--ink); resize: vertical; line-height: 1.08; overflow-wrap: anywhere; }
.tester textarea:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--indigo); }
.tester .foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 10px 16px; border-top: 2px dashed var(--line); font-size: 14px; color: var(--ink-2); }

/* styles list */
.styles { display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.style-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding: 18px 0; border-bottom: 2px solid var(--ink); }
.style-row .s { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; overflow-wrap: anywhere; min-width: 0; flex: 1 1 320px; }

/* glyphs */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.glyph-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 340px); gap: 22px; align-items: start; }
@media (max-width: 860px) { .glyph-wrap { grid-template-columns: 1fr; } }
.glyphs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.glyphs button { font-family: inherit; font-weight: inherit; line-height: 1; aspect-ratio: 1; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); color: var(--ink); font-size: 34px; cursor: pointer; padding: 0; }
@media (max-width: 600px) { .glyphs { grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); gap: 6px; } .glyphs button { font-size: 26px; border-radius: 8px; } .glyph-big .g { font-size: 140px; } }
.glyphs button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.glyph-big { position: sticky; top: 96px; display: flex; flex-direction: column; align-items: center; padding: 20px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.glyph-big .g { font-size: 200px; line-height: 1.1; }
.glyph-big .code { font-family: ui-monospace, Menlo, monospace; font-size: 14px; color: var(--ink-2); }

/* specs */
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.specs div { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.specs dt { font-family: var(--label); font-size: 17px; color: var(--ink-2); }
.specs dd { margin: 0; font-weight: 700; }
.langs { columns: 4 160px; column-gap: 24px; padding: 0; margin: 0; list-style: none; }
.langs li { break-inside: avoid; padding: 3px 0; }

/* buy box */
.buy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); gap: 28px; align-items: start; }
@media (max-width: 900px) { .buy { grid-template-columns: 1fr; } }
.tier-toggle { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; margin-bottom: 18px; }
.tier-toggle button { min-height: 46px; padding: 0 22px; border: 0; background: var(--paper); color: var(--ink); font: 800 16px var(--ui); cursor: pointer; }
.tier-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.products { display: grid; gap: 14px; }
.product { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 18px 20px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.product .pname { font-size: 20px; font-weight: 800; }
.product .pwhat { color: var(--ink-2); font-size: 15px; }
.product .price { font-family: 'Hollerbrush', var(--ui); font-weight: 900; font-size: 40px; line-height: 1; }
.product .pbuy { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.product .puse { font-family: var(--label); font-size: 17px; margin-top: 4px; }
.product .deal { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; line-height: 1; }
.product .was { font-weight: 700; font-size: 16px; color: var(--ink-2); }
.product .save { padding: 2px 9px; border-radius: 999px; background: var(--ink); color: var(--mustard); font-size: 13px; font-weight: 800; white-space: nowrap; }
.product .best { display: inline-block; margin-left: 6px; padding: 1px 10px; border-radius: 999px; background: var(--tomato); color: var(--cream); font-size: 13px; font-weight: 800; vertical-align: middle; }
.covers { padding: 20px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--cream); }
.covers ul { margin: 8px 0 0; padding-left: 20px; }
.covers li { margin: 4px 0; }
.note { font-size: 15px; color: var(--ink-2); }

/* licensing table */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.tier { padding: 24px; border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.tier h3 { font-family: 'Hollerbrush', var(--ui); font-weight: 900; font-size: 44px; margin-bottom: 6px; }
.tier ul { padding-left: 20px; margin: 12px 0 0; }
.tier li { margin: 6px 0; }
.price-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.price-table th, .price-table td { padding: 12px 16px; text-align: left; border-bottom: 1px dashed var(--line); }
.price-table th { font-family: var(--label); font-weight: 400; font-size: 18px; background: var(--mustard); border-bottom: 2px solid var(--ink); }
.price-table td.num, .price-table th.num { text-align: right; white-space: nowrap; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); }

/* faq */
details { border-bottom: 2px solid var(--ink); }
details summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 800; font-size: 19px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; font-size: 26px; line-height: 1; }
details[open] summary::after { content: '\2212'; }
details p { margin: 0 0 18px; max-width: 760px; }
.faq { border-top: 2px solid var(--ink); }

/* legal + prose */
.prose { max-width: 780px; }
.hero .prose h1.h2 { font-size: clamp(44px, 6vw, 84px); line-height: .92; margin-bottom: 28px; }
.prose h2 { font-family: var(--ui); font-weight: 800; font-size: 22px; line-height: 1.3; margin: 32px 0 8px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }

/* catalog tools */
.cat-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 24px; }
.cat-tools input[type=text] { flex: 1 1 280px; min-height: 52px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); font: 600 18px var(--ui); color: var(--ink); }

/* footer */
.site-foot { background: var(--ink); color: var(--cream); padding: 48px 0 0; border-top: 2px solid rgba(244, 235, 211, .22); overflow: hidden; }
.site-foot a { color: var(--cream); text-decoration: none; }
.site-foot a:hover { color: var(--mustard); }
.foot-cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.foot-cols h2 { font-family: var(--label); font-size: 19px; font-weight: 400; margin-bottom: 10px; color: var(--mustard); }
.foot-cols ul { list-style: none; padding: 0; margin: 0; }
.foot-cols li { margin: 6px 0; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 26px 0; font-size: 14px; opacity: .85; }
.foot-big { width: 100%; height: auto; margin: 24px 0 clamp(16px, 3vw, 40px); opacity: .95; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* print (licence PDFs) */
@media print {
  .bar, .site-head, .site-foot, .skip { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  section { padding: 0; }
  .prose { max-width: none; }
  a { text-decoration: none; }
}
