@font-face {
  font-family: DM Sans;
  src: url("assets/fonts/dm-sans-normal-400.ttf");
}
@font-face {
  font-family: DM Sans;
  src: url("assets/fonts/dm-sans-normal-500.ttf");
  font-weight: 500;
}
@font-face {
  font-family: DM Sans;
  src: url("assets/fonts/dm-sans-normal-600.ttf");
  font-weight: 600;
}
@font-face {
  font-family: DM Sans;
  src: url("assets/fonts/dm-sans-normal-700.ttf");
  font-weight: 700;
}
@font-face {
  font-family: DM Serif Text;
  src: url("assets/fonts/dm-serif-text-normal-400.ttf");
}
@font-face {
  font-family: DM Serif Text;
  src: url("assets/fonts/dm-serif-text-italic-400.ttf");
  font-style: italic;
}
:root {
  --ink: #193f49;
  --muted: #586965;
  --red: #a9472a;
  --coral: #df744f;
  --cream: #faf9f4;
  --line: #d7d9ce;
  --light: #fffdf6;
  --serif: "DM Serif Text", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font: 1rem/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  color: inherit;
  cursor: pointer;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #c35130;
  outline-offset: 4px;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 400;
}
button {
  border: 0;
  background: none;
}
svg.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  background: var(--ink);
  color: white;
  padding: 0.7rem;
  z-index: 9;
}
.skip:focus {
  top: 0;
}
.wrap,
.top-inner {
  width: min(1200px, calc(100% - clamp(40px, 9vw, 150px)));
  margin-inline: auto;
}
.topbar {
  border-bottom: 1px solid var(--line);
  background: #fcfbf7;
}
.top-inner {
  height: 80px;
  display: flex;
  align-items: center;
  gap: 46px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 1.875rem/1 var(--serif);
  text-decoration: none;
  letter-spacing: -1.6px;
  white-space: nowrap;
}
.brand b,
.footer b {
  color: var(--coral);
}
nav {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  gap: 29px;
}
nav a {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  padding-top: 3px;
}
nav a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--coral);
}
nav .icon {
  width: 17px;
  height: 17px;
}
.atlas-button,
.outline,
.solid,
.choice-btn,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 7px;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25;
  min-height: 44px;
  padding: 10px 17px;
}
.atlas-button,
.outline,
.choice-btn,
.pill {
  border: 1px solid #bac5bc;
  background: transparent;
}
.atlas-button {
  margin-left: auto;
  border-radius: 25px;
  min-height: 38px;
  padding: 8px 16px;
}
.atlas-button .icon {
  width: 17px;
  height: 17px;
}
.solid {
  background: var(--ink);
  color: white;
  border: 1px solid var(--ink);
}
.solid:hover {
  background: #275660;
}
.outline:hover,
.atlas-button:hover,
.pill:hover,
.choice-btn:hover {
  background: #eeeee3;
}
.solid .icon,
.outline .icon,
.choice-btn .icon {
  width: 17px;
  height: 17px;
}
main {
  min-height: 65vh;
  outline: none !important;
}
.postcard {
  isolation: isolate;
  overflow: hidden;
  position: relative;
  margin: 31px 0 32px;
  border-radius: 13px;
  border: 1px solid #c2c9b9;
  min-height: 300px;
  background: #d6e5d7;
  box-shadow: 0 3px 0 #e7e5d9;
}
.postcard:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/volendam.jpg");
  background-size: cover;
  background-position: center 55%;
}
.postcard:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    #f8f1db 0%,
    rgba(248, 241, 219, 0.98) 20%,
    rgba(248, 241, 219, 0.9) 31%,
    rgba(248, 241, 219, 0.6) 40%,
    rgba(248, 241, 219, 0) 57%
  );
}
.hero-content {
  padding: 30px 42px 32px;
  position: relative;
  max-width: 51%;
}
.eyebrow,
.smallcaps,
.count,
.stamp-type,
.card-counter,
.hanger {
  font: 700 0.65625rem/1.5 var(--sans);
  letter-spacing: 1.65px;
  text-transform: uppercase;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--red);
}
.eyebrow .icon {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}
.postcard h1 {
  font: clamp(4.0625rem, 6.6vw, 5.8125rem) / 0.93 var(--serif);
  letter-spacing: -4px;
  margin: 12px 0 16px;
}
.postcard h1 span {
  display: block;
  font: italic 0.53em/1.06 var(--serif);
  letter-spacing: -1.9px;
}
.postcard h1 em {
  color: var(--coral);
  font-style: normal;
}
.hero-text {
  max-width: 320px;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: #354c4b;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 19px;
  color: #3c5351;
  font-size: 0.75rem;
  font-weight: 600;
}
.hero-stats span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.hero-stats .icon {
  width: 16px;
  height: 16px;
}
.hero-stats span + span {
  border-left: 1px solid #b5baaa;
  padding-left: 15px;
}
.post-edge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  border-top: 1px solid #f5efd5;
  background: repeating-linear-gradient(
    130deg,
    #d86c4b 0 12px,
    #f6efdb 12px 24px,
    #254b59 24px 36px,
    #f6efdb 36px 48px
  );
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.53fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 42px);
  align-items: start;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.section-title h2,
.subpage h1,
.modal-head h2,
.result h3,
.panel h2,
.empty h2,
.list-title {
  font: 2rem/1.15 var(--serif);
  letter-spacing: -1.2px;
}
.section-title .count {
  color: var(--muted);
  background: #efefe6;
  border: 1px solid #ddded1;
  border-radius: 20px;
  padding: 4px 10px;
  letter-spacing: 1px;
  font-size: 0.625rem;
  white-space: nowrap;
}
.card-outer {
  position: relative;
  margin: 0 4px 8px 0;
  isolation: isolate;
}
.card-outer:before,
.card-outer:after {
  content: "";
  position: absolute;
  inset: 5px -3px -4px 4px;
  z-index: -1;
  transform: rotate(0.45deg);
  background: #f7f1df;
  border: 1px solid #c8caba;
  border-radius: 11px;
}
.card-outer:before {
  inset: 10px -5px -7px 8px;
  transform: rotate(0.7deg);
  background: #efebda;
}
.flashcard {
  overflow: hidden;
  position: relative;
  background: radial-gradient(
    ellipse at 70% 30%,
    #fffdf3 0%,
    #fcf5e6 70%,
    #f8f0db 100%
  );
  border: 1px solid #c9c8b6;
  border-radius: 11px;
  padding: 20px 24px 16px;
  min-height: 257px;
}
.flashcard:before,
.postcard .grain,
.quiz-tile:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("assets/grain.png") repeat;
  opacity: 0.24;
  mix-blend-mode: multiply;
}
.card-head,
.card-bottom,
.card-face {
  position: relative;
}
.card-head {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--red);
  font-size: 0.625rem;
  letter-spacing: 1.7px;
}
.card-head:before {
  content: "";
  width: 16px;
  height: 2px;
  background: #b96042;
}
.gull-stamp {
  position: absolute;
  top: 17px;
  right: 23px;
  width: 62px;
  height: 78px;
  background: #faf5e3;
  padding: 6px;
  transform: rotate(7deg);
  filter: drop-shadow(0 1px 1px #9998);
  mask:
    linear-gradient(#000 0 0) center/calc(100% - 6px) calc(100% - 6px) no-repeat,
    radial-gradient(circle, #000 64%, transparent 68%) 0 0/7px 7px;
}
.gull-stamp img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid #7e9c92;
}
.cancellation {
  position: absolute;
  right: 66px;
  top: 45px;
  width: 81px;
  height: 31px;
  opacity: 0.52;
  color: #55747b;
  transform: rotate(-9deg);
}
.card-face {
  text-align: center;
  min-height: 145px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 25px 48px 10px;
}
.card-face h3 {
  font: clamp(2.625rem, 4.6vw, 4.0625rem) / 1.07 var(--serif);
  letter-spacing: -2.2px;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.card-face p {
  font-size: 0.875rem;
  margin-top: 6px;
  color: var(--muted);
}
.card-face.answer h3 {
  font-size: clamp(1.6875rem, 2.7vw, 2.4375rem);
  margin-top: 7px;
}
.card-face.answer p {
  max-width: 460px;
  margin: 7px auto 4px;
  line-height: 1.4;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 13px;
  border-top: 1px dashed #c8c9b7;
}
.round {
  display: inline-grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  border: 1px solid #bfc4b4;
  background: transparent;
}
.round .icon {
  width: 17px;
  height: 17px;
}
.round:hover {
  background: #f1eedf;
}
.round.selected,
.pill.selected {
  background: #dce7dc;
  border-color: #849e8d;
}
.card-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 3px 0;
  font-size: 0.75rem;
  color: var(--muted);
}
.card-meta button,
.textbtn,
.linkbtn {
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--ink);
  font-weight: 600;
}
.card-meta .icon,
.textbtn .icon,
.linkbtn .icon {
  width: 15px;
  height: 15px;
}
.linkbtn {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.card-counter {
  color: var(--muted);
  letter-spacing: 1.2px;
  font-size: 0.625rem;
}
.mode-list {
  display: grid;
  gap: 10px;
}
.quiz-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  border: 1px solid #d5d9ce;
  background: #fffef9;
  border-radius: 10px;
  padding: 15px;
  min-height: 79px;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.quiz-tile:before {
  opacity: 0.08;
}
.quiz-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 9px #31403b10;
}
.tile-icon {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 10px;
}
.tile-icon .icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.65;
}
.peach {
  color: #953e25;
  background: #f8e1cc;
}
.mint {
  color: #2c6255;
  background: #dfece0;
}
.lilac {
  color: #625082;
  background: #eae4f0;
}
.quiz-tile strong {
  display: block;
  font-size: 1rem;
  letter-spacing: -0.3px;
}
.quiz-tile small {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 2px;
}
.quiz-tile > .icon {
  margin-left: auto;
  width: 17px;
}
.tile-copy {
  flex: 1;
}
.footer {
  margin-top: 38px;
  padding-block: 19px 25px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  gap: 12px;
}
.footer > span {
  font: 1.125rem var(--serif);
  letter-spacing: -0.6px;
}
.footer button {
  font-size: 0.75rem;
  display: flex;
  gap: 5px;
  align-items: center;
}
.footer .icon {
  width: 14px;
  height: 14px;
}
.subpage {
  padding: 45px 0 10px;
}
.subpage h1 {
  font-size: clamp(2.4375rem, 5vw, 3.9375rem);
  margin: 7px 0;
}
.lead {
  font-size: 1rem;
  color: var(--muted);
  margin: 5px 0 22px;
}
.controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #bbc6bd;
  border-radius: 8px;
  background: #fffef9;
  padding: 0 12px;
  max-width: 100%;
  flex: 1;
}
.search .icon {
  width: 18px;
  color: var(--muted);
}
.search input {
  padding: 11px 0;
  border: none;
  background: transparent;
  color: var(--ink);
  width: 100%;
  min-width: 60px;
}
.search:focus-within {
  outline: 2px solid var(--ink);
}
.search input:focus {
  outline: none;
}
.pill {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 24px;
  font-size: 0.8125rem;
}
.pill .icon {
  width: 15px;
  height: 15px;
}
.word-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-top: 13px;
}
.word-tile,
.panel,
.stat,
.empty,
.answer-review {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--light);
  padding: 20px;
}
.word-tile {
  position: relative;
}
.word-tile h2 {
  font: 1.75rem/1.2 var(--serif);
  letter-spacing: -0.7px;
  margin: 10px 38px 2px 0;
  overflow-wrap: anywhere;
}
.word-tile .round {
  position: absolute;
  right: 13px;
  top: 14px;
}
.word-tile > p {
  color: var(--muted);
}
.word-tile .textbtn {
  margin-top: 12px;
}
.smallcaps {
  color: var(--muted);
  font-size: 0.625rem;
}
.summary-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin: 20px 0;
}
.stat strong {
  font: 2.375rem/1.2 var(--serif);
  display: block;
}
.stat span {
  font-size: 0.8125rem;
  color: var(--muted);
}
.panel {
  margin: 14px 0;
}
.panel h2,
.empty h2 {
  font-size: 1.5625rem;
}
.panel p,
.empty p {
  margin: 8px 0 12px;
  color: var(--muted);
}
.history-row,
.atlas-row,
.review-row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.history-row small,
.atlas-row small,
.review-row small {
  color: var(--muted);
  display: block;
}
.empty {
  padding: 28px;
}
.meter {
  height: 6px;
  background: #e5e7db;
  border-radius: 8px;
  overflow: hidden;
}
.meter div {
  height: 100%;
  background: #c76646;
  border-radius: 8px;
}
.panel .meter {
  max-width: 460px;
  margin: 15px 0 9px;
}
dialog {
  background: var(--cream);
  color: var(--ink);
  border: 1px solid #c5cbbe;
  border-radius: 15px;
  padding: 0;
  width: min(580px, calc(100% - 24px));
  max-height: 88dvh;
  box-shadow: 0 20px 90px #19383b33;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #19333979;
  backdrop-filter: blur(3px);
}
body:has(dialog[open]) {
  overflow: hidden;
}
#modal-inner {
  padding: 27px;
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.modal-head h2 {
  font-size: 1.9375rem;
  margin-top: 5px;
}
.modal-head .round {
  flex: none;
}
.quiz-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.75rem;
  margin: 4px 0 19px;
}
.quiz-progress .meter {
  flex: 1;
}
.quiz-question {
  font: 1.625rem/1.28 var(--serif);
  letter-spacing: -0.55px;
  margin-bottom: 18px;
}
.answers {
  display: grid;
  gap: 9px;
  margin-bottom: 15px;
}
.answer-btn {
  padding: 12px 15px;
  min-height: 47px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #bec9c0;
  border-radius: 7px;
  background: #fffef8;
  text-align: left;
  font-weight: 600;
}
.answer-btn:not(:disabled):hover {
  background: #eff1e5;
}
.answer-btn:disabled {
  opacity: 1;
}
.answer-btn.correct {
  background: #e2eddf;
  border-color: #6c9475;
}
.answer-btn.wrong {
  background: #f8e4d8;
  border-color: #c28267;
}
.answer-btn .letter {
  display: grid;
  place-items: center;
  background: #f0efe6;
  border-radius: 4px;
  font: 600 0.6875rem var(--sans);
  width: 23px;
  height: 23px;
  color: var(--muted);
}
.answer-btn .icon {
  margin-left: auto;
}
.form-input {
  display: block;
  width: 100%;
  border: 1px solid #aebeb1;
  padding: 12px 14px;
  color: var(--ink);
  background: #fffef9;
  border-radius: 7px;
}
.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.875rem;
  font-weight: 700;
}
.hint {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 7px 0 15px;
}
.feedback {
  border-left: 3px solid #759b77;
  background: #ecf0e5;
  padding: 12px 15px;
  margin: 16px 0;
  border-radius: 0 6px 6px 0;
}
.feedback.miss {
  border-color: #c47d56;
  background: #f7eadd;
}
.feedback p {
  font-size: 0.875rem;
  margin-top: 4px;
}
.modal-actions {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 17px;
}
.result strong.score {
  display: block;
  font: 4.0625rem/1.1 var(--serif);
  letter-spacing: -2px;
  margin: 8px 0;
}
.result h3 {
  font-size: 1.5rem;
}
.result > p,
.source-copy p {
  color: var(--muted);
  margin: 8px 0 12px;
}
.source-copy h3 {
  font: 1.375rem var(--serif);
  margin-top: 16px;
}
.source-copy a {
  font-size: 0.875rem;
  color: var(--ink);
  text-underline-offset: 3px;
}
.atlas-row a,
.atlas-row button {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8125rem;
  font-weight: 700;
}
.atlas-row .icon {
  width: 14px;
  height: 14px;
}
.atlas-scroll {
  max-height: 42vh;
  overflow-y: auto;
  padding-right: 6px;
}
.atlas-row > div:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.atlas-row a,
.atlas-row button {
  flex: none;
}
.row-count {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 8px 0;
}
.atlas-controls {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(100px, 0.7fr);
  gap: 9px;
}
.atlas-controls select {
  max-width: 100%;
  border: 1px solid #bbc6bd;
  background: var(--light);
  color: var(--ink);
  border-radius: 7px;
  font-size: 0.8125rem;
  padding: 6px;
}
.atlas-controls .search input {
  font-size: 0.875rem;
}
#notice {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: none;
}
#notice:not(:empty) {
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  font-size: 0.875rem;
  box-shadow: 0 3px 10px #0001;
}
.answer-review {
  margin: 14px 0;
}
.answer-review h3 {
  font: 1.25rem var(--serif);
  margin-bottom: 8px;
}
.review-row span {
  font-weight: 600;
}
.short-source {
  font-size: 0.75rem;
  color: var(--muted);
  text-underline-offset: 3px;
}
.sr {
  position: absolute;
  white-space: nowrap;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.hidden {
  display: none !important;
}
@media (min-width: 1450px) {
  .postcard {
    min-height: 330px;
  }
  .hero-content {
    padding-block: 39px;
  }
}
@media (max-width: 950px) {
  .top-inner {
    gap: 26px;
  }
  nav {
    gap: 18px;
  }
  .brand {
    font-size: 1.625rem;
  }
  .workspace {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 22px;
  }
  .hero-content {
    padding-inline: 29px;
    max-width: 55%;
  }
  .flashcard {
    padding: 18px 16px 14px;
  }
  .gull-stamp {
    width: 53px;
    height: 67px;
    right: 17px;
  }
  .card-face {
    padding-inline: 24px;
  }
  .card-face.answer {
    padding-inline: 8px;
    padding-top: 33px;
  }
  .quiz-tile {
    padding: 13px 10px;
    gap: 10px;
  }
  .quiz-tile small {
    font-size: 0.75rem;
  }
  .quiz-tile strong {
    font-size: 0.9375rem;
  }
  .tile-icon {
    width: 40px;
    height: 42px;
  }
  .section-title h2 {
    font-size: 1.8125rem;
  }
  .word-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .wrap,
  .top-inner {
    width: calc(100% - 32px);
  }
  .top-inner {
    height: auto;
    min-height: 88px;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 0;
    padding-top: 12px;
  }
  .brand {
    font-size: 1.625rem;
  }
  .brand img {
    width: 30px;
    height: 31px;
  }
  .atlas-button {
    order: 1;
    font-size: 0.75rem;
    min-height: 34px;
    padding: 6px 12px;
  }
  nav {
    order: 2;
    width: 100%;
    justify-content: space-between;
    gap: 6px;
    margin-top: 5px;
  }
  nav a {
    justify-content: center;
    min-height: 39px;
    padding: 5px 3px 6px;
    font-size: 0.8125rem;
    border-bottom-width: 2px;
  }
  nav .icon {
    width: 15px;
    height: 15px;
  }
  .postcard {
    margin: 17px 0 25px;
    min-height: 260px;
  }
  .postcard:after {
    background: linear-gradient(
      90deg,
      #f8f1db 0%,
      rgba(248, 241, 219, 0.94) 27%,
      rgba(248, 241, 219, 0.77) 43%,
      rgba(248, 241, 219, 0.14) 72%,
      transparent
    );
  }
  .hero-content {
    padding: 24px;
    max-width: 70%;
  }
  .postcard h1 {
    font-size: clamp(3.3125rem, 10.6vw, 4.625rem);
    margin: 12px 0;
  }
  .hero-text {
    font-size: 0.875rem;
    max-width: 229px;
  }
  .hero-stats {
    font-size: 0.6875rem;
    gap: 8px;
    margin-top: 16px;
  }
  .hero-stats span + span {
    padding-left: 8px;
  }
  .workspace {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .section-title h2 {
    font-size: 1.875rem;
  }
  .flashcard {
    min-height: 243px;
  }
  .card-face {
    min-height: 141px;
  }
  .card-face h3 {
    font-size: 3.25rem;
  }
  .card-face.answer h3 {
    font-size: 1.875rem;
  }
  .gull-stamp {
    width: 56px;
    height: 72px;
  }
  .quiz-tile {
    min-height: 74px;
    padding: 12px 15px;
  }
  .tile-icon {
    width: 44px;
    height: 44px;
  }
  .quiz-tile small {
    font-size: 0.8125rem;
  }
  .footer {
    margin-top: 28px;
  }
  .subpage {
    padding-top: 27px;
  }
  .word-grid {
    gap: 9px;
  }
  .word-tile {
    padding: 15px;
  }
  .word-tile h2 {
    font-size: 1.5rem;
  }
  .summary-stats {
    gap: 7px;
  }
  .stat {
    padding: 13px;
  }
  .stat strong {
    font-size: 1.875rem;
  }
  .stat span {
    font-size: 0.75rem;
  }
  .card-outer {
    margin-right: 5px;
  }
}
@media (max-width: 460px) {
  .postcard {
    min-height: 295px;
  }
  .postcard:before {
    background-size: auto 78%;
    background-repeat: no-repeat;
    background-position: 65% bottom;
    background-color: #c5ddda;
  }
  .postcard:after {
    background: linear-gradient(
      110deg,
      #f9f2dc 3%,
      rgba(249, 242, 220, 0.94) 28%,
      rgba(249, 242, 220, 0.75) 43%,
      rgba(249, 242, 220, 0.23) 66%,
      transparent 82%
    );
  }
  .hero-content {
    max-width: 83%;
    padding: 21px 19px;
  }
  .postcard h1 {
    font-size: 3.4375rem;
    letter-spacing: -2.5px;
  }
  .hero-text {
    max-width: 185px;
    font-size: 0.8125rem;
  }
  .hero-stats {
    display: inline-flex;
    flex-wrap: wrap;
    background: #fbf6e5e3;
    border: 1px solid #c1c6b6;
    border-radius: 5px;
    padding: 5px 7px;
    gap: 7px;
  }
  .hero-stats .icon {
    width: 13px;
    height: 13px;
  }
  .hero-stats span + span {
    padding-left: 7px;
  }
  .gull-stamp {
    right: 11px;
    width: 45px;
    height: 56px;
  }
  .cancellation {
    right: 42px;
    width: 53px;
    top: 33px;
  }
  .card-face h3 {
    font-size: 2.875rem;
  }
  .card-face.answer h3 {
    font-size: 1.625rem;
  }
  .card-face.answer {
    padding-top: 25px;
  }
  .card-face.answer p {
    font-size: 0.8125rem;
  }
  .card-meta button {
    font-size: 0.75rem;
  }
  .card-head {
    font-size: 0.5625rem;
    letter-spacing: 1.3px;
  }
  .word-grid {
    grid-template-columns: 1fr;
  }
  .word-tile h2 {
    margin-block: 5px;
  }
  .controls .search {
    flex-basis: 100%;
  }
  .card-bottom .solid,
  .card-bottom .choice-btn {
    min-height: 39px;
    font-size: 0.8125rem;
    padding: 8px 11px;
  }
  .card-actions {
    gap: 5px;
  }
  .round {
    width: 35px;
    height: 35px;
  }
  .section-title h2 {
    font-size: 1.8125rem;
  }
  #modal-inner {
    padding: 19px;
  }
  .modal-head h2 {
    font-size: 1.6875rem;
  }
  .quiz-question {
    font-size: 1.4375rem;
  }
  .atlas-controls {
    grid-template-columns: 1fr;
  }
  .atlas-controls select {
    padding: 8px;
  }
  .subpage .lead {
    font-size: 0.875rem;
  }
  .footer {
    padding-block: 15px;
  }
  .footer button {
    font-size: 0.6875rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}
@media (max-width: 460px) {
  .postcard:before {
    background-size: auto 100%;
    background-position: 63% center;
  }
  .postcard:after {
    background: linear-gradient(
      100deg,
      #f9f2dc 3%,
      rgba(249, 242, 220, 0.97) 28%,
      rgba(249, 242, 220, 0.89) 46%,
      rgba(249, 242, 220, 0.38) 65%,
      transparent 84%
    );
  }
}
.postcard.country::before{background-image:url('assets/streek.jpg')}
.collection-bar,.lex-tabs{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.collection-bar{margin-top:25px;padding:18px 22px;background:#f1f0e5;border:1px solid var(--line);border-radius:11px;font-size:0.875rem}
.collection-bar label{font-weight:700}.collection-bar select{color:var(--ink);border:1px solid #acbbae;border-radius:6px;padding:7px;background:#fffdf6}.collection-bar span{color:var(--muted)}.collection-bar a{margin-left:auto;display:inline-flex;align-items:center;gap:6px}
.lex-list{margin:8px 0 16px}.lex-list button{display:grid;grid-template-columns:minmax(125px,25%) 1fr auto;align-items:center;gap:14px;width:100%;text-align:left;padding:13px 10px;border-bottom:1px solid var(--line)}.lex-list button:hover{background:#eeeee3}.lex-list span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}.lex-list strong{overflow-wrap:anywhere}.lex-detail{padding:18px;background:var(--light);border:1px solid var(--line);border-radius:10px}.lex-detail p,.lex-detail ol{margin:0 0 17px}.panel button{margin:3px}.lex-tabs{margin-top:16px}.postcard.country h1{font-size:clamp(3rem,5.4vw,5.125rem)}.footer a{color:inherit;font-size:0.75rem}
@media(max-width:600px){.collection-bar{gap:8px;padding:14px}.collection-bar span{flex-basis:100%}.collection-bar a{margin-left:0}.postcard.country h1{font-size:clamp(2.625rem,10vw,3.8125rem)}.lex-list button{grid-template-columns:minmax(85px,33%) 1fr auto;gap:6px}.lex-detail button{margin:3px}}
.meaning-picture{width:98px;height:98px;object-fit:contain;mix-blend-mode:multiply;margin-bottom:4px;border-radius:8px}.flashcard:has(.meaning-picture) .card-face{padding-top:10px}.slang-route,.video-lesson{margin-top:16px;border:1px solid var(--line);border-radius:11px;background:var(--light);padding:12px 18px;display:flex;align-items:center;gap:16px;width:100%;text-align:left}.slang-route img{height:55px;width:55px;border-radius:6px}.slang-route span{display:grid}.slang-route strong,.video-lesson h2{font:1.5rem var(--serif)}.slang-route small{letter-spacing:1.6px;color:var(--red);font-size:0.625rem}.slang-route .icon{margin-left:auto}.video-lesson video{width:min(360px,100%);height:200px;background:#f8f2de;object-fit:contain;border-radius:9px}.video-lesson>div{flex:1}.theme-label{display:flex;align-items:center;gap:6px;font-size:0.8125rem}.theme-label select{background:var(--light);color:var(--ink);border:1px solid var(--line);padding:4px;border-radius:4px}.slang-route:hover{background:#f4efe4}@media(max-width:600px){.video-lesson{display:grid}}

/* A postcard keeps its photograph at small widths and leaves the text on paper. */
.postcard.city::before {background-image:url("assets/straat.jpg")}
.hero-content {background:linear-gradient(90deg,#f8f1db 73%,transparent);padding-right:7%}
.reader-button {font:700 1rem Georgia,serif;min-width:44px;min-height:44px;border:1px solid #718279;border-radius:50%;background:#faf9f4;color:var(--ink);flex:none}
.top-inner .reader-button {margin-left:auto}
.top-inner .atlas-button {margin-left:0}
.gull-stamp {animation:stamp-arrives .72s ease-out both}
@keyframes stamp-arrives {0%{transform:translate(12px,-12px) rotate(15deg);opacity:.2}70%{transform:translate(-1px,1px) rotate(5deg)}100%{transform:rotate(7deg);opacity:1}}
.card-face.answer .meaning-picture {animation:picture-arrives .45s ease-out both}
@keyframes picture-arrives {from{transform:translateY(7px) rotate(-3deg)}to{transform:none}}
html[data-still],html[data-still] * {scroll-behavior:auto!important}
html[data-still] *,html[data-still] *::before,html[data-still] *::after {animation:none!important;transition:none!important}
:root[data-ink="zwart"] {--ink:#171717}
:root[data-ink="blauw"] {--ink:#102c68}
:root[data-ink="pruim"] {--ink:#59223d}
:root[data-ink="groen"] {--ink:#15442c}
:root:not([data-ink="inkt"])[data-ink] {--red:var(--ink);--muted:var(--ink)}
:root:not([data-ink="inkt"])[data-ink] :is(.hero-text,.hero-stats,.hint,.eyebrow,.card-face p,.feedback,.tile-copy,.count,.smallcaps,.article,.card-meta) {color:var(--ink)}
html[data-roomy] :is(p,label,button,a,select,input,li,small,span,h1,h2,h3,strong,summary) {line-height:1.6;letter-spacing:.045em;word-spacing:.1em}
:is(button,a,select,input,summary,[tabindex]):focus-visible {outline:3px solid #174b81;outline-offset:2px;box-shadow:0 0 0 2px #fff}
.reading-form {padding:clamp(16px,4vw,32px);display:grid;gap:12px}
.reading-form .modal-head {margin:0 0 5px}
.reading-form select {background:white;color:var(--ink);border:1px solid #687c77;padding:8px;min-height:44px;border-radius:7px;max-width:100%}
.reading-form label {font-weight:600}
.read-check {display:flex;align-items:center;gap:9px;min-height:42px}
.read-check input {width:20px;height:20px;accent-color:var(--ink);flex:none}
.read-sample {border-left:3px solid var(--ink);padding:10px 16px;background:#f2ecdb}
.read-sample span {font-size:.8rem}.read-sample p {font:1.5rem/1.35 var(--serif)}
.reading-form .modal-actions {flex-wrap:wrap}
.atlas-links {margin-block:10px}
dialog {color:var(--ink);max-height:88dvh;overflow:auto;overscroll-behavior:contain}
.top-inner,.hero-stats,.section-title,.card-bottom,.card-meta,.footer,.modal-actions {flex-wrap:wrap}
.top-inner {height:auto;min-height:80px;gap:clamp(8px,2.1vw,32px)}
.top-inner nav {min-height:65px}
h1,h2,h3,p,strong,button,label,.article,dialog {overflow-wrap:anywhere}
input,select,.controls>* {max-width:100%;min-width:0}
.hero-stats span,.count {white-space:normal!important}
.lex-list span {white-space:normal}
body {overflow-wrap:break-word}
[data-large] .workspace,[data-large] .word-grid,[data-large] .summary-stats {grid-template-columns: minmax(0,1fr)}
[data-large] .top-inner nav {order:4;flex-wrap:wrap}
[data-large] .top-inner nav a {min-height:44px}
[data-large] .card-face {padding-inline:0}
[data-large] .gull-stamp,[data-large] .cancellation {display:none}
[data-large] .hero-content {max-width:100%;background:#f8f1db}
[data-large] .postcard {padding-bottom:clamp(105px,19vw,210px);background:#f8f1db}
[data-large] .postcard::before {top:auto;height:clamp(105px,19vw,210px);background-position:right center}
[data-large] .postcard::after {display:none}
[data-large] .atlas-controls,[data-large] .lex-list button {grid-template-columns:minmax(0,1fr)}
[data-large] .atlas-row,[data-large] .section-title {align-items:flex-start;flex-wrap:wrap}
[data-large] .controls {flex-wrap:wrap}
[data-large] .hero-content h1 {font-size:2.6rem;letter-spacing:-.04em}
[data-large] .footer {* {max-width:100%}}
@media(max-width:720px) {
  .top-inner {padding-block:8px 0;gap:3px 8px}
  .top-inner nav {min-height:44px;flex-wrap:wrap}
  .top-inner nav a {min-height:44px}
  .hero-content {background:#f8f1db;max-width:100%;padding:18px 19px 14px}
  .postcard {padding-bottom:clamp(120px,34vw,200px);background:#f8f1db}
  .postcard::before {top:auto;height:clamp(120px,34vw,200px);background-position:right center;background-size:cover}
  .postcard::after {display:none}
  .hero-content h1 {margin-block:7px}
  .hero-text {max-width:100%}
  .hero-stats {margin-top:10px;background:none;border:0;padding:0}
  .top-inner .reader-button {margin-left:auto}
  .workspace,.word-grid {min-width:0}
  .workspace>*,.modal-head>* {min-width:0}
}
@media (prefers-reduced-motion:reduce) {*,*::before,*::after {animation:none!important;transition:none!important}html{scroll-behavior:auto}}
[data-large] .brand {white-space:normal;max-width:100%;font-size:1.35rem}
[data-large] .brand span {min-width:0;overflow-wrap:anywhere}

.dialog-buttons {display:flex;align-items:center;gap:4px;flex-shrink:0}
[data-large] .modal-head {flex-wrap:wrap}
