/* U+ TYPE — styles shared by every page of the site.
   One family, Algorytm Clear (roman, italic, bold, bold italic), and the Uplus logo font.
   Colours: ink #111, grey #6a6a6a, rules #eaeaea on white; Fontra Hive keeps its own
   warm dark and amber. Only real italics and bolds are shown (font-synthesis: none). */

@font-face { font-family: 'Uplus'; src: url('/fonts/20250917-Uplus.otf') format('opentype'); font-display: swap; }
@font-face { font-family: 'AlgorytmClear'; src: url('/fonts/AlgorytmClear-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'AlgorytmClear'; src: url('/fonts/AlgorytmClear-RegularItalic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'AlgorytmClear'; src: url('/fonts/AlgorytmClear-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'AlgorytmClear'; src: url('/fonts/AlgorytmClear-BoldItalic.woff2') format('woff2'); font-weight: 700; font-style: italic; font-display: swap; }
/* Factor A and Factor A Mono: the typeface of Typeface Atelier, lent by its author for
   typefaceatelier.com and for this site (agreed 14 November 2026). Used only in the
   Typeface Atelier section; the files are the subsets of typefaceatelier.com (current Latin). */
@font-face { font-family: 'Factor A'; src: url('/fonts/FactorA-Regular.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Factor A'; src: url('/fonts/FactorA-Medium.woff') format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Factor A'; src: url('/fonts/FactorA-Bold.woff') format('woff'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Factor A Mono'; src: url('/fonts/FactorAMono-Regular.woff') format('woff'); font-weight: 400; font-display: swap; }

:root {
  --paper: #ffffff;
  --ink: #111111;
  --grey: #6a6a6a;
  --rule: #eaeaea;
  --dot: #7a5c78;          /* the mauve of the halftone field */
  --hive-dark: #1f1d1a;    /* Fontra Hive: the warm dark of its pages */
  --hive-paper: #f4efe6;
  --hive-amber: #f2b33d;
  --hive-muted: #b9b1a4;
  --sans: 'AlgorytmClear', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wide: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
/* The links of the navigation glide to their section; at once if the system asks for less motion. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.site { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.6 var(--sans);
  font-synthesis: none; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.site a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.site :focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.site img { max-width: 100%; height: auto; display: block; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--paper);
  color: var(--ink); padding: 8px 12px; font-size: 15px; }
.skip:focus { left: 8px; }

/* ----- Navigation: the same bar on every page ----- */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 12px 32px;
  padding: 14px var(--gutter); background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; font-size: 15px; line-height: 1.3; }
.nav-home { display: inline-flex; align-items: baseline; gap: .3em; text-decoration: none;
  font-weight: 700; white-space: nowrap; }
.nav-home .u { font-family: 'Uplus', var(--sans); font-weight: 400; font-size: 1.45em; line-height: 1; }
.nav ul { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 6px 26px; }
.nav li a { text-decoration: none; white-space: nowrap; }
.nav li a:hover, .nav li a[aria-current] { text-decoration: underline; }
.page-home .nav { position: fixed; left: 0; right: 0; }
@media (max-width: 760px) {
  .nav { flex-wrap: wrap; padding-block: 10px; }
  .nav ul { margin-left: 0; width: 100%; overflow-x: auto; gap: 12px; padding-bottom: 2px; font-size: 14px; }
}
/* Small phones: the five links still fit on one line. */
@media (max-width: 400px) {
  .nav { padding-inline: 16px; }
  .nav ul { gap: 10px; font-size: 13px; }
}

/* ----- Halftone band: the field of the home page, still, at the top of the Journal ----- */
.halftone { height: clamp(90px, 14vw, 160px); margin-bottom: clamp(8px, 2vw, 24px);
  background-image:
    radial-gradient(circle, var(--dot) 0 1.15px, transparent 1.6px),
    radial-gradient(circle, #d9a28c 0 .9px, transparent 1.3px);
  background-size: 7px 7px, 7px 7px; background-position: 0 0, 3.5px 3.5px;
  -webkit-mask-image: radial-gradient(120% 140% at 78% 0%, #000 0%, rgba(0,0,0,.55) 38%, transparent 72%);
  mask-image: radial-gradient(120% 140% at 78% 0%, #000 0%, rgba(0,0,0,.55) 38%, transparent 72%); }

/* ----- Footer: the same on every page; the legal notice opens without JavaScript ----- */
.footer { background: var(--paper); border-top: 1px solid var(--rule); padding: 56px var(--gutter) 40px; }
.footer-inner { max-width: var(--wide); margin: 0 auto; display: grid; gap: 28px;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; }
.footer-mail { font-size: clamp(28px, 4.4vw, 56px); line-height: 1.05; font-weight: 700;
  letter-spacing: -.03em; text-decoration: none; overflow-wrap: anywhere; }
.footer-mail:hover { text-decoration: underline; }
.footer-intro { margin: 0 0 10px; color: var(--grey); font-size: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap;
  justify-content: flex-end; gap: 8px 22px; font-size: 15px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
/* Links to other sites open in a new tab: a small arrow says so. */
.ext { display: inline-block; width: .62em; height: .62em; margin-left: .22em; vertical-align: .32em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.footer-small { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 12px 24px; color: var(--grey); font-size: 14px; border-top: 1px solid var(--rule); padding-top: 18px; }
.legal summary { cursor: pointer; color: var(--ink); }
.legal summary:hover { text-decoration: underline; }
.legal[open] { flex-basis: 100%; }
.legal .sheet { max-width: 640px; margin-top: 14px; color: #222; font-size: 13px; line-height: 1.5; }
.legal .sheet h3 { font-size: 14px; margin: 18px 0 6px; }
.legal .sheet h3:first-child { margin-top: 0; }
.legal .sheet p, .legal .sheet ul { margin: 0 0 8px; }
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-links { justify-content: flex-start; }
}

/* ----- Buttons ----- */
.button { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 22px;
  border: 1.5px solid currentColor; border-radius: 999px; text-decoration: none; font-weight: 700;
  font-size: 16px; line-height: 1.2; }
.button:hover { text-decoration: underline; }

/* ================= Home ================= */

/* Opening: the halftone field and the U+ switcher, full screen. */
.hero { position: relative; min-height: 100svh; display: grid; overflow: hidden; color: #000; }
#bgCanvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: -1;
  pointer-events: none; }
/* The U+ sits a little above the middle of the screen, the baseline under it. */
.hero-inner { display: grid; justify-items: center; align-content: center; gap: clamp(4px, 2vh, 24px);
  padding: 72px var(--gutter) clamp(96px, 16vh, 200px); text-align: center; }
.hero h1 { margin: 0; font-weight: 700; font-size: clamp(24px, 4.2vw, 48px); line-height: 1.12;
  letter-spacing: -.01em; }
.hero h1 span { display: block; font-weight: 400; }
/* The two sizes live on the root, as on the former home page: the switcher script widens
   the letter's cell by setting --emojiSize there (U is narrower than 优 優 유 u). */
:root { --glyphSize: clamp(96px, 17vw, 240px); --emojiSize: calc(var(--glyphSize) * 0.706); }
.hero-mark table { border-collapse: collapse; margin: 0; }
.hero-mark td { padding: 0; }
.hero-mark td.glyphCell { inline-size: calc(var(--glyphSize) * 0.88); width: calc(var(--glyphSize) * 0.88); }
.hero-mark td.glyphCellEmoji { inline-size: var(--emojiSize); width: var(--emojiSize); }
.toggleButton { --size: clamp(110px, 30vw, 300px); inline-size: var(--emojiSize); width: var(--emojiSize);
  block-size: var(--size); border: none; padding: 0; background: transparent; cursor: pointer;
  font-family: 'Uplus', sans-serif; font-size: var(--glyphSize); color: #000; display: grid;
  place-items: center; overflow: hidden; touch-action: manipulation; }
.toggleTextWrapper { display: flex; inline-size: var(--emojiSize); width: var(--emojiSize); flex-direction: column;
  transition: transform 200ms ease-in-out; will-change: transform; }
.toggleTextLine { color: #000; display: grid; place-items: center; inline-size: 100%; block-size: var(--size);
  line-height: 1; text-align: center; user-select: none; }
.plus { line-height: 1; font-size: var(--glyphSize); color: #000; font-family: 'Uplus', sans-serif;
  text-align: left; transform: translateX(-3px); transition: transform 200ms ease-in-out; }
.hero-ways { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin: 0; padding: 0;
  list-style: none; }
.hero-ways a { background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-color: transparent; }
@media (prefers-reduced-motion: reduce) {
  .toggleTextWrapper, .plus { transition: none; }
}

/* Sections */
.band { position: relative; padding: clamp(72px, 11vw, 150px) var(--gutter); background: var(--paper); }
.band-inner { max-width: var(--wide); margin: 0 auto; }
.band h2 { margin: 0; font-weight: 700; letter-spacing: -.035em; line-height: .95; }
.lede { font-size: clamp(20px, 2.1vw, 27px); line-height: 1.45; max-width: 34em; margin: 0; }

/* Fontra Hive: the largest section, in the product's own colours. */
.hive { background: var(--hive-dark); color: var(--hive-paper); }
.hive a { color: inherit; }
.hive-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
  gap: clamp(20px, 4vw, 56px); margin-bottom: clamp(40px, 6vw, 80px); }
.hive-mark { width: clamp(110px, 17vw, 230px); aspect-ratio: 1; }
/* The animated logo of fontrahive.com: a canvas over the icon, shown after its first frame. */
.hive-logo { position: relative; display: block; flex: none; }
.hive-logo img, .hive-logo canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hive-logo canvas { opacity: 0; transition: opacity .6s; touch-action: pan-y; }
.hive-logo.hive-logo-live canvas { opacity: 1; }
.hive-logo.hive-logo-live img { opacity: 0; transition: opacity .6s; }
.hive h2 { font-size: clamp(64px, 13.5vw, 190px); color: #fff; }
.hive-tagline { margin: .35em 0 0; font-size: clamp(22px, 3vw, 40px); color: var(--hive-amber); line-height: 1.1; }
.hive-intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px);
  align-items: center; padding-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid rgba(255,255,255,.14); }
.hive-intro .lede { color: #fff; }
.hive-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; padding: 0; list-style: none; }
.hive .button.primary { background: var(--hive-amber); border-color: var(--hive-amber); color: var(--hive-dark); }
.hive-price { margin: 40px 0 0; max-width: 30rem; padding: 26px 28px; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; }
.hive-price h3 { margin: 0 0 14px; font-size: 16px; color: var(--hive-muted); font-weight: 400; }
.hive-price .amount { margin: 0; font-size: clamp(40px, 5vw, 64px); line-height: 1; font-weight: 700;
  letter-spacing: -.03em; color: #fff; }
.hive-price .per { margin: 6px 0 18px; color: var(--hive-paper); }
.hive-price ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 16px; }
.hive-price li { padding-left: 1.3em; position: relative; }
.hive-price li::before { content: "+"; position: absolute; left: 0; color: var(--hive-amber); font-weight: 700; }
.hive-price .small { margin: 18px 0 0; font-size: 14px; color: var(--hive-muted); }
.hive-film { margin: 0; }
.hive-film video { display: block; width: 100%; height: auto; border-radius: 18px; background: #000; }
.hive-film figcaption { margin-top: 12px; font-size: 14px; color: var(--hive-muted); }
.hive-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(24px, 4vw, 56px);
  margin: clamp(48px, 6vw, 80px) 0 0; }
.hive-features div { border-top: 2px solid var(--hive-amber); padding-top: 14px; }
.hive-features dt { font-weight: 700; font-size: 20px; color: #fff; margin-bottom: 6px; line-height: 1.25; }
.hive-features dd { margin: 0; color: var(--hive-paper); font-size: 16px; line-height: 1.55; }
.hive-facts { display: flex; flex-wrap: wrap; gap: 10px 36px; margin: clamp(48px, 6vw, 72px) 0 0; padding: 0;
  list-style: none; color: var(--hive-muted); font-size: 15px; }
@media (max-width: 900px) {
  .hive-intro { grid-template-columns: minmax(0, 1fr); }
  .hive-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .hive-head { grid-template-columns: minmax(0, 1fr); }
  .hive-features { grid-template-columns: minmax(0, 1fr); }
}

/* Typeface Atelier: in its own colours (typefaceatelier.com): black, the violet and the
   green of its icon. The animated icon comes from its entry page. */
.atelier { --ta-violet: #9771ff; --ta-green: #00ff00; background: #000; color: #fff;
  font-family: 'Factor A', var(--sans); }
.atelier :focus-visible { outline-color: var(--ta-green); }
.atelier-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px);
  align-items: center; }
.ta-icon { box-sizing: content-box; display: block; width: clamp(108px, 12vw, 160px); aspect-ratio: 1; padding: 0;
  margin: 0 0 clamp(28px, 4vw, 44px); border: 1.5px solid #3a3a3a; border-radius: 23%; background: none;
  line-height: 0; cursor: pointer; overflow: hidden; }
.ta-icon svg { display: block; width: 100%; height: 100%; }
.atelier h2 { font-size: clamp(48px, 8vw, 112px); font-weight: 500; letter-spacing: -.035em; }
.ta-tagline { margin: 20px 0 0; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.25; font-weight: 500; }
.ta-beta { margin: 18px 0 0; font-family: 'Factor A Mono', ui-monospace, var(--sans); font-size: 14px;
  letter-spacing: .04em; text-transform: uppercase; color: #c8c8c8; }
.atelier .lede { margin-top: 28px; color: #d6d6d6; }
.atelier .links { display: flex; flex-wrap: wrap; gap: 12px; margin: 36px 0 0; padding: 0; list-style: none; }
.atelier .button { border-radius: 12px; }
.atelier .button.primary { background: var(--ta-violet); border-color: var(--ta-violet); color: #000; }
.atelier .button.primary:active { background: var(--ta-green); border-color: var(--ta-green); }
.atelier figure { margin: 0; }
.atelier figure img { border-radius: 12px; }
.atelier figcaption { margin-top: 12px; color: #b4b4b4; font-size: 14px; line-height: 1.5; }
@media (max-width: 900px) { .atelier-grid { grid-template-columns: minmax(0, 1fr); } }

/* Custom fonts: the seven panels of the former home page, each opened by its "+". */
.custom { border-top: 1px solid var(--rule); }
.custom-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(32px, 6vw, 96px); }
.custom h2 { font-size: clamp(40px, 6vw, 84px); }
.custom .lede { margin-top: 28px; }
.plus-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.plus-list li { border-bottom: 1px solid var(--rule); }
.plus-list summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px; align-items: baseline; padding: 20px 0; }
.plus-list summary::-webkit-details-marker { display: none; }
.plus-list .name { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; line-height: 1.2; }
.plus-list .sub { display: block; font-weight: 400; color: var(--grey); font-size: 17px; margin-top: 2px; }
.plus-list .sign { font-family: 'Uplus', var(--sans); font-size: 40px; line-height: .8; transition: transform .2s ease; }
.plus-list details[open] .sign { transform: rotate(45deg); }
.plus-list details p { margin: 0 0 24px; max-width: 36em; }
@media (prefers-reduced-motion: reduce) { .plus-list .sign { transition: none; } }
@media (max-width: 900px) { .custom-grid { grid-template-columns: minmax(0, 1fr); } }

/* Journal on the home page */
.journal-home { background: #f6f6f6; }
.journal-home .head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 12px 32px; margin-bottom: 40px; }
.journal-home h2 { font-size: clamp(40px, 6vw, 84px); }
.journal-home .by { margin: 14px 0 0; max-width: 34em; color: var(--grey); font-size: clamp(18px, 1.8vw, 22px); line-height: 1.45; }
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid #ddd; }
.post-list > li { border-bottom: 1px solid #ddd; }
.post-link { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 8px clamp(24px, 4vw, 56px);
  padding: 28px 0; text-decoration: none; }
.post-link:hover .post-title { text-decoration: underline; }
.post-date { color: var(--grey); font-size: 16px; padding-top: .35em; }
.post-title { display: block; font-size: clamp(24px, 3vw, 38px); line-height: 1.15; letter-spacing: -.015em; }
.post-summary { display: block; margin-top: 12px; color: #333; max-width: 38em; }
.draft-tag { display: inline-block; margin-left: .6em; padding: 0 .6em; border: 1px solid currentColor;
  border-radius: 999px; font-size: 13px; vertical-align: .2em; color: var(--grey); }
@media (max-width: 700px) { .post-link { grid-template-columns: minmax(0, 1fr); } }

/* ================= Journal pages ================= */
.journal-page { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) clamp(64px, 9vw, 120px); }
.journal-page > h1 { margin: 0 0 24px; font-size: clamp(56px, 10vw, 140px); line-height: .95; font-weight: 700;
  letter-spacing: -.04em; }
.journal-intro { max-width: 34em; margin-bottom: 56px; }
.empty-note { color: var(--grey); }
.todo { font-size: 14px; line-height: 1.5; color: #8a4b20; background: #fbf1e6; border: 1px dashed #d8b08c;
  border-radius: 4px; padding: .45em .7em; }
.post-tools { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center; gap: 12px 24px; font-size: 15px; }
.post-tools a { text-decoration: none; }
.post-tools a:hover { text-decoration: underline; }
.post-tools .pdf { border: 1.5px solid currentColor; border-radius: 999px; padding: 8px 16px; font-weight: 700; }
.draft-banner { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto 12px; padding: 0 var(--gutter); font-size: 15px; }
.draft-banner p { margin: 0; display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--ink);
  color: var(--paper); }

@media print {
  .nav, .halftone, .footer, .skip, .post-tools, .draft-banner { display: none; }
}
