/* islandzki.pl — editorial.
   Ink on paper-white, Newsreader for headlines — a serif drawn for reading
   on screens, whose optical-size axis keeps big type open — and a quiet sans
   for running text. Colour is kept for meaning: the logo itself, a pale
   Icelandic-sky glow, and navy/red for the two dictionary directions. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  src: url("/static/fonts/Newsreader-latin-normal.woff2") format("woff2");
  font-display: swap;
  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: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  src: url("/static/fonts/Newsreader-latin-ext-normal.woff2") format("woff2");
  font-display: swap;
  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-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  src: url("/static/fonts/Newsreader-latin-italic.woff2") format("woff2");
  font-display: swap;
  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: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  src: url("/static/fonts/Newsreader-latin-ext-italic.woff2") format("woff2");
  font-display: swap;
  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-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/static/fonts/PlusJakartaSans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  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: "Plus Jakarta Sans";
  src: url("/static/fonts/PlusJakartaSans-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  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-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;

  --paper: #FAFAF9;
  --paper-2: #F3F4F4;
  --raised: #FFFFFF;
  --ink: #111213;
  --ink-2: #2B2D30;
  --muted: #6C6F75;
  --faint: #A6A9AE;
  --hair: rgb(17 18 19 / .09);
  --hair-strong: rgb(17 18 19 / .16);
  --glass: rgb(250 250 249 / .78);
  --sky: #CFE0F7;
  --navy: #22408C;
  --red: #C53437;
  --navy-soft: #E9EEF8;
  --red-soft: #FAECEC;
  --on-ink: #FFFFFF;

  --wrap: 74rem;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --out: cubic-bezier(.16, 1, .3, 1);

}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0C0C0D;
    --paper-2: #131315;
    --raised: #161618;
    --ink: #EDEDEC;
    --ink-2: #D2D2D0;
    --muted: #9A9C9F;
    --faint: #5F6165;
    --hair: rgb(255 255 255 / .09);
    --hair-strong: rgb(255 255 255 / .18);
    --glass: rgb(12 12 13 / .72);
    --sky: #1B2A4A;
    --navy: #A9BDF3;
    --red: #F09496;
    --navy-soft: #18203A;
    --red-soft: #33191C;
    --on-ink: #0C0C0D;
  }
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  word-spacing: .04em;
  font-synthesis: style; /* the sans ships no italic; let the browser slant it */
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif); font-weight: 400; font-optical-sizing: auto;
  line-height: 1.05; letter-spacing: -0.02em; word-spacing: normal;
  text-wrap: balance;
}
p { text-wrap: pretty; }
a { color: inherit; }
img { max-width: 100%; }
svg { flex: none; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 1rem; top: 1rem; z-index: 60;
  background: var(--ink); color: var(--on-ink);
  padding: .55rem .9rem; border-radius: 999px;
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
main { display: block; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.5rem; border-radius: 999px;
  font-size: .95rem; font-weight: 600; line-height: 1.2; text-decoration: none;
  transition: transform .3s var(--out), box-shadow .3s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-2px); }
.btn-ink {
  background: var(--ink); color: var(--on-ink);
  box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--navy) 55%, transparent), 0 0 0 1px var(--ink);
}
.btn-ink:hover { box-shadow: 0 18px 36px -14px color-mix(in srgb, var(--navy) 70%, transparent), 0 0 0 1px var(--ink); }
.btn-line { color: var(--ink); background: var(--raised); border: 1px solid var(--hair-strong); }
.btn-line:hover { border-color: var(--ink); }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--glass);
  border-bottom: 1px solid var(--hair);
  backdrop-filter: saturate(1.4) blur(18px);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
}
.header-bar {
  position: relative;
  display: flex; align-items: center; gap: 1rem;
  min-height: 4.25rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-right: auto; min-width: 0;
  font-weight: 650; font-size: .95rem; letter-spacing: -0.005em; line-height: 1.15;
  color: var(--ink); text-decoration: none; white-space: nowrap; word-spacing: normal;
}
.brand span { overflow: hidden; text-overflow: ellipsis; }
.brand img { width: auto; height: 1.9rem; }

.site-header nav { position: absolute; left: 50%; transform: translateX(-50%); }
.site-header nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.site-header nav a {
  position: relative; display: block; padding: .5rem .85rem;
  color: var(--muted); text-decoration: none;
  font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  transition: color .2s var(--ease);
}
.site-header nav a::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .2rem; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--out);
}
.site-header nav a:hover { color: var(--ink); }
.site-header nav a:hover::after, .site-header nav [aria-current="page"]::after { transform: scaleX(1); }
.site-header nav [aria-current="page"] { color: var(--ink); }

.lang-switch {
  display: grid; place-items: center;
  height: 2.4rem; padding-inline: 1rem;
  border-radius: 999px; background: var(--ink); color: var(--on-ink);
  text-decoration: none; font-size: .74rem; font-weight: 700; letter-spacing: .14em;
  transition: transform .3s var(--out);
}
.lang-switch:hover { transform: translateY(-1px); }

.menu-toggle { display: none; }

@media (max-width: 60rem) {
  .header-bar { flex-wrap: wrap; gap: .5rem; min-height: 3.75rem; padding-block: .6rem; }
  .brand { flex: 1 1 0; font-size: .9rem; }
  .brand img { height: 1.7rem; }

  /* Without JavaScript the links stay reachable as a sideways-scrolling row. */
  .site-header nav { position: static; transform: none; order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; }
  .site-header nav a { white-space: nowrap; }

  .has-js .menu-toggle {
    display: grid; place-items: center;
    width: 2.4rem; height: 2.4rem; padding: 0;
    border: 1px solid var(--hair-strong); border-radius: 999px; cursor: pointer;
    background: transparent; color: var(--ink);
  }
  .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
    display: block; width: .95rem; height: 1.5px; border-radius: 2px;
    background: currentColor; transition: transform .3s var(--ease), background .2s;
  }
  .menu-toggle span { position: relative; }
  .menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
  .menu-toggle span::before { transform: translateY(-5px); }
  .menu-toggle span::after { transform: translateY(5px); }
  .has-js[data-open] .menu-toggle span { background: transparent; }
  .has-js[data-open] .menu-toggle span::before { transform: rotate(45deg); }
  .has-js[data-open] .menu-toggle span::after { transform: rotate(-45deg); }

  .has-js nav { display: none; }
  .has-js[data-open] nav { display: block; animation: drop .35s var(--out); }
  .has-js nav ul { flex-direction: column; gap: 0; padding: .5rem 0 1rem; }
  .has-js nav li + li { border-top: 1px solid var(--hair); }
  .has-js nav a {
    padding: .9rem 0; font-family: var(--serif); font-size: 1.6rem; line-height: 1.15;
    letter-spacing: -0.01em; text-transform: none; font-weight: 400; color: var(--ink);
  }
  .has-js nav a::after { display: none; }
  .has-js nav [aria-current="page"] { font-style: italic; }
}
@media (max-width: 23rem) {
  .brand { white-space: normal; line-height: 1.1; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- home: intro ---------- */

.intro {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh - 4.25rem, 58rem);
  display: grid; align-items: center;
  text-align: center;
}
/* Concentric rings with a pale sky-blue core, and a faint warm glow low
   on the right: the Icelandic palette at a whisper. */
.intro::before {
  content: ""; position: absolute; z-index: -1;
  left: 50%; top: 42%; width: 64rem; aspect-ratio: 1; translate: -50% -50%;
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--sky) 90%, transparent), color-mix(in srgb, var(--sky) 35%, transparent) 45%, transparent),
    repeating-radial-gradient(circle, transparent 0 46px, var(--hair) 46px 47px);
  mask-image: radial-gradient(closest-side, #000 55%, transparent);
  animation: breathe 14s ease-in-out infinite;
}
.intro::after {
  content: ""; position: absolute; z-index: -1;
  right: -14rem; bottom: 1rem; width: 34rem; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--red) 10%, transparent), transparent);
}
@keyframes breathe { 50% { scale: 1.06; } }

.intro-inner {
  display: flex; flex-direction: column; align-items: center;
  padding-block: clamp(4rem, 10vh, 7rem) clamp(5rem, 12vh, 8rem);
}
.intro-mark { width: auto; height: clamp(4.5rem, 3.5rem + 3vw, 6.5rem); margin-bottom: 1.75rem; }
.intro-name {
  display: inline-flex; align-items: center; gap: .6rem;
  margin: 0 0 2rem; padding: .45rem 1rem;
  border-radius: 999px; background: var(--raised); border: 1px solid var(--hair);
  color: var(--ink-2); font-size: .7rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase;
  line-height: 1.4; box-shadow: 0 1px 2px rgb(0 0 0 / .03);
}
.intro-name::before {
  content: ""; width: .4rem; height: .4rem; border-radius: 50%; flex: none;
  background: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 18%, transparent);
}
.intro h1 {
  max-width: 16ch; margin: 0 0 1.5rem; padding-bottom: .12em;
  font-size: clamp(2.8rem, 1.4rem + 5.4vw, 6.25rem);
  line-height: 1; letter-spacing: -0.03em;
  background: linear-gradient(180deg, var(--ink) 35%, color-mix(in srgb, var(--ink) 62%, var(--paper)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.intro h1 em { font-style: italic; color: var(--faint); -webkit-text-fill-color: var(--faint); }
.intro-lead {
  max-width: 44rem; margin: 0 0 2.5rem;
  color: var(--muted); font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); line-height: 1.6;
}
.intro-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }


/* ---------- marquee ---------- */

.marquee {
  overflow: hidden; border-top: 1px solid var(--hair);
  background: var(--raised);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 120s linear infinite; }
.marquee ul { display: flex; margin: 0; padding: 0; list-style: none; }
.marquee li {
  display: flex; align-items: center; gap: 2.25rem; padding: 1.35rem 0 1.35rem 2.25rem;
  font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1;
  color: var(--ink-2); white-space: nowrap;
}
.marquee li::after {
  content: ""; width: .35rem; height: .35rem; border-radius: 50%;
  background: var(--red); opacity: .7;
}
@keyframes marquee { to { translate: -50% 0; } }

/* ---------- home: chapters ---------- */

.chapters { padding-block: clamp(4rem, 10vw, 8rem); display: grid; gap: clamp(4.5rem, 11vw, 9rem); }

.feature { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.feature-body { max-width: 30rem; }
.feature h2 { margin: 0 0 1.1rem; font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.4rem); }
.feature p { margin: 0 0 2rem; color: var(--muted); font-size: 1.1rem; line-height: 1.7; }

.feature-link {
  display: inline-flex; align-items: center; gap: .9rem;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem;
}
.feature-link span {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: .15rem; transition: background-size .4s var(--out);
}
.arrow-disc {
  display: grid; place-items: center; flex: none;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  border: 1px solid var(--hair-strong);
  transition: transform .4s var(--out), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.arrow-disc svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-link:hover span { background-size: 0 1px; background-position: 100% 100%; }
.feature-link:hover .arrow-disc { transform: translateX(5px); background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

.feature-figure {
  position: relative; overflow: hidden; border-radius: 22px;
  aspect-ratio: 4 / 3; background: var(--paper-2);
}
.feature-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--out);
}
.feature:hover .feature-img { transform: scale(1.035); }

@media (min-width: 52rem) {
  .feature-media { grid-template-columns: 7fr 5fr; }
  /* Pictures alternate sides down the page. */
  .feature-media:nth-child(odd) { grid-template-columns: 5fr 7fr; }
  .feature-media:nth-child(odd) .feature-figure { order: 2; }
  .feature:not(.feature-media) { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

@media (prefers-reduced-motion: no-preference) {
  .intro-inner > * { animation: rise .9s var(--out) both; }
  .intro-inner > :nth-child(2) { animation-delay: .08s; }
  .intro-inner > :nth-child(3) { animation-delay: .16s; }
  .intro-inner > :nth-child(4) { animation-delay: .26s; }
  .intro-inner > :nth-child(5) { animation-delay: .34s; }

  @supports (animation-timeline: view()) {
    .feature-figure, .feature-body {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 60%;
    }
    .feature-figure { animation-name: unveil; }
  }
}
@keyframes rise { from { opacity: 0; translate: 0 28px; } }
@keyframes unveil { from { opacity: 0; clip-path: inset(12% 8% 12% 8% round 22px); } to { clip-path: inset(0 round 22px); } }

/* ---------- content pages ---------- */

.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); }
.page-hero::before {
  content: ""; position: absolute; z-index: -1; right: -10rem; top: -18rem;
  width: 44rem; aspect-ratio: 1;
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--sky) 80%, transparent), transparent),
    repeating-radial-gradient(circle, transparent 0 40px, var(--hair) 40px 41px);
  mask-image: radial-gradient(closest-side, #000 50%, transparent);
}
.page-hero .wrap, .page-body { max-width: 54rem; }
.page-hero h1 {
  margin: 0; padding-bottom: 2rem; border-bottom: 1px solid var(--hair);
  font-size: clamp(2.7rem, 1.7rem + 3.6vw, 4.75rem); line-height: 1;
}
.page-body { padding-bottom: clamp(4rem, 9vw, 7rem); }

/* ---------- prose ---------- */

.prose { font-size: 1.08rem; color: var(--ink-2); }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 3.25rem 0 1rem; font-size: clamp(1.65rem, 1.4rem + .9vw, 2.1rem); color: var(--ink); }
.prose p { margin-block: 0 1.2rem; }
.prose a { text-underline-offset: .2em; text-decoration-thickness: 1px; text-decoration-color: var(--hair-strong); }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { font-weight: 650; color: var(--ink); }

.prose ul { list-style: none; padding: 0; margin-block: 0 1.5rem; }
.prose ul > li { position: relative; padding-left: 1.75rem; margin-block: .55rem; }
.prose ul > li::before {
  content: ""; position: absolute; left: 0; top: .85em;
  width: .9rem; height: 1px; background: var(--ink);
}
.prose ol { counter-reset: step; list-style: none; padding: 0; margin-block: .5rem 1.75rem; border-top: 1px solid var(--hair); }
.prose ol > li {
  counter-increment: step; position: relative;
  padding: 1.35rem 0 1.35rem 3.75rem; border-bottom: 1px solid var(--hair);
}
.prose ol > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 1.35rem;
  font-family: var(--serif); font-style: italic; font-size: 1.45rem; line-height: 1.25; color: var(--faint);
  font-variant-numeric: lining-nums tabular-nums;
}

.prose h2 { clear: both; }

/* A paragraph holding only an image is a portrait beside the opening text. */
.prose p:has(> img:only-child) { margin: 0; }
.prose img {
  float: left; width: min(40%, 14rem); aspect-ratio: 4 / 5; object-fit: cover;
  margin: .35rem 2.25rem 1.5rem 0; border-radius: 18px;
}
.prose p:has(> img:only-child) ~ h2:first-of-type { clear: none; margin-top: 0; }
.prose p:has(> img:only-child) ~ h2:first-of-type + p + p { clear: left; }

/* Company registration details stay folded until the visitor opens them. */
.prose details { clear: both; margin-top: 3rem; border-block: 1px solid var(--hair); }
.prose summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.35rem 0; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: 1.45rem; line-height: 1.15; color: var(--ink);
}
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after {
  content: ""; flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  border: 1px solid var(--hair-strong);
  background:
    linear-gradient(var(--ink), var(--ink)) center / .8rem 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px .8rem no-repeat;
  transition: transform .4s var(--out);
}
.prose details[open] summary::after { transform: rotate(135deg); }
.prose details > p {
  display: inline-block; vertical-align: top;
  width: calc(50% - .75rem); margin: 0 .75rem 1.5rem 0;
  padding: 1.1rem 1.25rem; font-size: .97rem; line-height: 1.65;
  background: var(--raised); border: 1px solid var(--hair); border-radius: 14px;
}
.prose details > p:last-child { margin-right: 0; }

@media (max-width: 40rem) {
  .prose img { float: none; display: block; width: min(62%, 13rem); margin: 0 0 1.75rem; }
  .prose p:has(> img:only-child) ~ h2:first-of-type { margin-top: 0; }
  .prose details > p { display: block; width: auto; margin: 0 0 1rem; }
  .prose ol > li { padding-left: 3rem; }
}

/* ---------- dictionary ---------- */

.dict-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(4rem, 9vw, 6.5rem) 0 2.5rem; }
.dict-hero::before {
  content: ""; position: absolute; z-index: -1; left: 55%; top: -22rem;
  width: 52rem; aspect-ratio: 1;
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--sky) 85%, transparent), transparent),
    repeating-radial-gradient(circle, transparent 0 42px, var(--hair) 42px 43px);
  mask-image: radial-gradient(closest-side, #000 50%, transparent);
}
.dict-hero h1 { margin: 0 0 1.25rem; font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.5rem); line-height: 1; }
.dict-about { max-width: 44rem; margin: 0; color: var(--muted); font-size: 1.02rem; }

.search {
  position: relative; display: flex; align-items: center;
  max-width: 44rem; margin: 2.5rem 0 1.25rem;
  background: var(--raised);
  border: 1px solid var(--hair-strong); border-radius: 999px;
  box-shadow: 0 1px 2px rgb(0 0 0 / .03), 0 24px 48px -28px rgb(17 18 19 / .25);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sky) 70%, transparent), 0 24px 48px -28px rgb(17 18 19 / .3); }
.search-icon {
  position: absolute; left: 1.35rem; width: 1.2rem; height: 1.2rem; pointer-events: none;
  fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round;
}
.search input {
  flex: 1 1 auto; min-width: 0;
  font: inherit; font-size: 1.15rem; color: var(--ink);
  padding: 1.15rem 1rem 1.15rem 3.35rem;
  background: transparent; border: 0; border-radius: 999px;
}
.search input:focus { outline: none; }
.search input::placeholder { color: var(--faint); }
.search button {
  display: grid; place-items: center; flex: none;
  width: 3.1rem; height: 3.1rem; margin-right: .45rem;
  border: 0; border-radius: 50%; cursor: pointer;
  background: var(--ink); color: var(--on-ink);
  transition: transform .3s var(--out);
}
.search button svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.search button:hover { transform: scale(1.06); }

#suggestions {
  position: absolute; top: calc(100% + .5rem); left: 0; right: 0; z-index: 20;
  margin: 0; padding: .4rem; list-style: none;
  background: var(--raised); border: 1px solid var(--hair); border-radius: 20px;
  box-shadow: 0 24px 50px -20px rgb(17 18 19 / .3);
}
#suggestions li { padding: .6rem 1rem; border-radius: 12px; cursor: pointer; font-family: var(--serif); font-size: 1.2rem; line-height: 1.25; }
#suggestions li[aria-selected="true"], #suggestions li:hover { background: var(--paper-2); }

.charpad { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; max-width: 44rem; }
.charpad-group { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.charpad-label { font-size: .66rem; font-weight: 700; letter-spacing: .14em; color: var(--muted); margin-right: .25rem; }
.charkey {
  min-width: 2.1rem; height: 2.1rem; padding: 0 .35rem;
  font-family: var(--serif); font-size: 1.1rem; line-height: 1;
  color: var(--ink); background: var(--raised);
  border: 1px solid var(--hair); border-radius: 999px; cursor: pointer;
  transition: border-color .15s var(--ease), transform .25s var(--out);
}
.charkey:hover { border-color: var(--ink); transform: translateY(-1px); }
.charkey:active { transform: translateY(1px); }

.dict-results { padding-block: 1.5rem clamp(4rem, 9vw, 7rem); }
.result-count { color: var(--muted); font-size: .72rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .5rem; }
.result-count strong { color: var(--ink); }

.entries { max-width: 52rem; margin: 0; border-top: 1px solid var(--hair); }
.entry {
  --dir-color: var(--navy);
  --dir-soft: var(--navy-soft);
  display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr; gap: .4rem 2rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--hair);
}
.entry[data-direction="is_pl"] { --dir-color: var(--red); --dir-soft: var(--red-soft); }
.entry dt {
  display: flex; flex-direction: column; align-items: flex-start; gap: .5rem;
  font-family: var(--serif); font-size: 1.65rem; line-height: 1.05; color: var(--ink);
  overflow-wrap: anywhere;
}
.entry dd { margin: .2rem 0 0; line-height: 1.75; color: var(--ink-2); }
.dir {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--sans); font-size: .62rem; font-weight: 700; letter-spacing: .14em; line-height: 1;
  color: var(--dir-color); background: var(--dir-soft);
  border-radius: 999px; padding: .35rem .6rem; white-space: nowrap;
}
.dir svg { width: .8rem; height: .8rem; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Semantic spans authored inside the dictionary definitions themselves. */
.entry dd .Abbr { font-style: italic; color: var(--muted); font-size: .93em; }
.entry dd .DefN { font-family: var(--serif); font-size: 1.2em; color: var(--dir-color); }
.entry dd .Example { font-family: var(--serif); font-style: italic; font-size: 1.12em; color: var(--muted); }
.entry dd .Comment { color: var(--muted); }
.entry dd .inflection { color: var(--muted); font-size: .93em; }
.entry dd .CrossRef { color: var(--navy); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.entry dd .Lemma { font-weight: 650; }
.entry dd .Latin { font-style: italic; color: var(--muted); }

@media (max-width: 40rem) {
  .entry { grid-template-columns: 1fr; }
  .entry dt { flex-direction: row; align-items: center; flex-wrap: wrap; font-size: 1.5rem; }
  .charpad-group { gap: .2rem; }
  .charkey { min-width: 1.85rem; height: 2rem; padding: 0 .2rem; font-size: 1.1rem; }
  .charpad-label { margin-right: 0; min-width: 1.2rem; }
  .search input { font-size: 1.05rem; padding-block: 1rem; }
  .search button { width: 2.75rem; height: 2.75rem; margin-right: .35rem; }
}

.notice {
  max-width: 44rem; margin: 0; padding: 1.25rem 0; color: var(--muted);
  border-block: 1px solid var(--hair);
  font-family: var(--serif); font-size: 1.3rem; line-height: 1.35;
}
.dict-rights { max-width: 52rem; margin: 3rem 0 0; color: var(--muted); font-size: .85rem; line-height: 1.6; }
.dict-rights a { color: var(--muted); text-underline-offset: .15em; }
.dict-rights a:hover { color: var(--ink); }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--hair); background: var(--raised); }
.footer-main {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  gap: 1.25rem 3.5rem; padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2.5rem, 5vw, 3.5rem);
}
.footer-main h2 { margin: 0; font-size: clamp(2.2rem, 1.7rem + 1.8vw, 3.2rem); line-height: 1; letter-spacing: -0.025em; }
.footer-links { display: grid; gap: .35rem; justify-items: start; }
.footer-links a {
  font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); line-height: 1.25;
  text-decoration: none; color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .45s var(--out);
}
.footer-links a:hover { background-size: 100% 1px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem;
  padding-block: 1.5rem 2rem; border-top: 1px solid var(--hair);
  color: var(--muted); font-size: .8rem;
}
.footer-brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-weight: 650; }
.footer-brand img { width: auto; height: 1.5rem; }
.colophon { margin: 0; }
.colophon a { color: var(--muted); text-decoration: none; }
.colophon a:hover, .colophon a:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .marquee-track { animation: none; }
}
