/* Diksyunaryo — lightweight, no webfonts, no framework. */

:root {
  --bg: #fbfaf6;
  --surface: #ffffff;
  --sand: #f1eee6;
  --sage: #e8efed;
  --ink: #1e2926;
  --muted: #5f6b67;
  --line: #d8ddd8;
  --brand: #1e5b60;
  --brand-ink: #15494e;
  --brand-dark: #153f43;
  --accent: #9d4a34;
  --accent-soft: #f4e9e4;
  --focus: #176d75;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.025em; line-height: 1.12; }
h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); margin: .35em 0 .3em; }
h2 { font-size: clamp(1.65rem, 3.5vw, 2.7rem); margin: 1.4em 0 .5em; }

.wrap { margin: 0 auto; max-width: 72rem; padding-left: 1.4rem; padding-right: 1.4rem; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 45rem; }
.text-link { font-size: .9rem; font-weight: 750; }
.eyebrow, .quick-label, .post-card-label {
  color: var(--brand);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  margin: 0 0 1.1rem;
  text-transform: uppercase;
}

/* Header */
.site-header { background: rgb(251 250 246 / .96); border-bottom: 1px solid var(--line); }
.header-inner { align-items: center; display: flex; gap: 2rem; justify-content: space-between; min-height: 4.8rem; }
.brand { align-items: center; color: var(--ink); display: flex; gap: .8rem; line-height: 1; }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; flex: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-text > span { font: 600 1.55rem var(--serif); letter-spacing: -.03em; }
.brand small { color: var(--muted); font-size: .5rem; font-weight: 800; letter-spacing: .13em; margin-top: .35rem; text-transform: uppercase; }
.site-nav { display: flex; flex-wrap: wrap; gap: 1.65rem; }
.site-nav a { color: var(--ink); font-size: .78rem; font-weight: 700; }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--brand); text-decoration: none; }
.header-search { padding-bottom: .8rem; }

/* Search */
.search { max-width: 36rem; position: relative; }
.search-large { margin-top: 1.8rem; max-width: 43rem; }
.search-input {
  background: var(--surface);
  border: 1px solid #c7ceca;
  border-radius: 0;
  color: var(--ink);
  font: inherit;
  padding: .75rem 3.1rem .75rem 1rem;
  width: 100%;
}
.search-large .search-input { font-size: 1.03rem; padding: 1rem 3.5rem 1rem 1.15rem; }
.search-input:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.search-btn { align-items: center; background: none; border: 0; color: var(--brand); cursor: pointer; display: flex; inset: 0 .35rem 0 auto; padding: .6rem; position: absolute; }
.search:has(.search-results:not([hidden])) .search-btn { display: none; }
.search-results { background: var(--surface); border: 1px solid var(--line); left: 0; list-style: none; margin: .35rem 0 0; max-height: 24rem; overflow-y: auto; padding: .25rem; position: absolute; right: 0; top: 100%; z-index: 20; }
.search-results a { align-items: baseline; color: var(--ink); display: flex; gap: .75rem; padding: .6rem .7rem; }
.search-results a:hover, .search-results li.active a { background: #f0f4f1; text-decoration: none; }
.search-results li.active a { outline: 2px solid var(--focus); outline-offset: -2px; }
.search-result-word { font-family: var(--serif); font-weight: 700; white-space: nowrap; }
.search-result-gloss { color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-empty { color: var(--muted); font-size: .9rem; padding: .7rem .8rem; }

/* Home */
.hero-travel { display: grid; gap: clamp(2.5rem, 7vw, 7rem); grid-template-columns: minmax(0, 1.35fr) minmax(18rem, .65fr); padding: 5.8rem 0 5.5rem; text-align: left; }
.hero-copy { align-self: center; }
.hero h1 { font-size: clamp(3.25rem, 7vw, 6rem); margin: 0; max-width: 47rem; }
.hero-sub { color: var(--muted); font-size: 1.02rem; margin: 1.5rem 0 0; max-width: 42rem; }
.hero-hint { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; font-size: .78rem; gap: .4rem; justify-content: flex-start; margin-top: .85rem; }
.quick-phrases { align-self: center; background: var(--surface); border: 1px solid var(--line); padding: 1.6rem 1.8rem; }
.quick-phrases > a { align-items: baseline; border-top: 1px solid var(--line); color: var(--ink); display: flex; justify-content: space-between; padding: 1rem 0; }
.quick-phrases > a:hover { color: var(--brand); text-decoration: none; }
.quick-phrases strong { font: 600 1.18rem var(--serif); }
.quick-phrases span { color: var(--muted); font-size: .72rem; margin-left: 1rem; text-align: right; }
.travel-shortcuts { background: var(--brand-dark); color: #fff; display: grid; grid-template-columns: repeat(3, 1fr); margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding-left: max(1.4rem, calc((100vw - 72rem) / 2 + 1.4rem)); padding-right: max(1.4rem, calc((100vw - 72rem) / 2 + 1.4rem)); }
.travel-shortcuts a { border-right: 1px solid rgb(255 255 255 / .18); color: #fff; display: flex; flex-direction: column; min-height: 9.6rem; padding: 1.8rem 2rem; }
.travel-shortcuts a:first-child { border-left: 1px solid rgb(255 255 255 / .18); }
.travel-shortcuts a:hover { background: rgb(255 255 255 / .04); text-decoration: none; }
.travel-shortcuts span { color: #9fc1be; font-size: .52rem; font-weight: 800; letter-spacing: .16em; }
.travel-shortcuts strong { font: 600 1.25rem var(--serif); margin: .8rem 0 .45rem; }
.travel-shortcuts small { color: #c3d4d1; font-size: .66rem; }
.section { margin: 0; padding: 5.6rem 0; }
.section-tight { margin: 2rem 0; }
.section-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 2.7rem; }
.section-heading h2 { font-size: clamp(2.1rem, 4.5vw, 3.7rem); margin: 0; }
.section-heading > p { color: var(--muted); font-size: .8rem; line-height: 1.8; max-width: 24rem; }
.word-grid { border-left: 1px solid var(--line); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); }
.word-grid .word-card { border: 0; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); min-height: 8.8rem; padding: 1.35rem; }
.word-grid .word-card:hover { background: var(--surface); }
.word-card-word { color: var(--ink); display: block; font: 600 1.25rem var(--serif); }
.word-card-gloss { color: var(--muted); display: block; font-size: .76rem; margin-top: .35rem; }
.guide-section { background: var(--sage); margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding-left: max(1.4rem, calc((100vw - 72rem) / 2 + 1.4rem)); padding-right: max(1.4rem, calc((100vw - 72rem) / 2 + 1.4rem)); }
.guide-grid { border-left: 1px solid #c4d0cc; display: grid; grid-template-columns: repeat(2, 1fr); }
.post-card { border-bottom: 1px solid #c4d0cc; border-right: 1px solid #c4d0cc; color: var(--ink); display: block; min-height: 14rem; padding: 1.8rem; }
.post-card:hover { background: rgb(255 255 255 / .25); text-decoration: none; }
.post-card h2, .post-card h3 { color: var(--ink); font-size: 1.55rem; margin: 1.35rem 0 .6rem; }
.post-card p { color: var(--muted); font-size: .78rem; margin: 0 0 1rem; }
.post-card-more { color: var(--brand); font-size: .7rem; font-weight: 800; }
.about-band { align-items: center; display: grid; gap: 5rem; grid-template-columns: 1.2fr .8fr; }
.about-band h2 { font-size: clamp(2rem, 4.5vw, 3.7rem); margin: 0; }
.about-band > p { color: var(--muted); font-size: .86rem; line-height: 1.9; }

/* Shared cards and chips */
.card-grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); margin-top: .8rem; }
.card { background: var(--surface); border: 1px solid var(--line); color: var(--ink); display: block; padding: 1rem; }
.card:hover { border-color: var(--brand); text-decoration: none; }
.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.chip { background: var(--surface); border: 1px solid var(--line); color: var(--brand-ink); display: inline-block; font-size: .82rem; font-weight: 650; padding: .2rem .65rem; }
.chip:hover { border-color: var(--brand); text-decoration: none; }
.chip-letter { min-width: 2.25rem; text-align: center; }
span.chip-letter { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Word pages */
.breadcrumb { color: var(--muted); font-size: .7rem; margin-top: 1.2rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { color: var(--muted); content: '›'; margin-right: .35rem; }
.word-page { max-width: 54rem; }
.word-header { border-bottom: 1px solid var(--line); margin-top: 2rem; padding-bottom: 1.4rem; }
.word-title { font-size: clamp(3.5rem, 9vw, 6.8rem); line-height: .9; margin: 0; }
.word-sub { color: var(--muted); font-size: .65rem; letter-spacing: .1em; margin: 1.1rem 0 0; text-transform: uppercase; }
.word-summary { font: 500 1.25rem var(--serif); margin: 1.8rem 0; }
.definition-list { display: grid; gap: .7rem; list-style: none; margin: 0; padding: 0; }
.definition { background: var(--surface); border: 1px solid var(--line); padding: 1.15rem 1.25rem; }
.definition-head { align-items: center; display: flex; gap: .6rem; margin-bottom: .5rem; }
.def-num { color: var(--muted); font-family: var(--serif); font-weight: 700; }
.pos-badge { background: var(--accent-soft); color: var(--accent); display: inline-block; font-size: .65rem; font-weight: 800; letter-spacing: .05em; padding: .08rem .5rem; text-transform: uppercase; }
.def-eng { font-size: 1rem; margin: 0; }
.def-ceb { color: var(--muted); font-size: .85rem; font-style: italic; margin: .55rem 0 0; }
.def-label { font-size: .65rem; font-style: normal; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.def-word { font-family: var(--serif); font-size: 1.1rem; }
.word-faq h3 { font-size: 1rem; margin: 1.2rem 0 .3rem; }
.word-faq p { color: var(--muted); margin: 0; }

/* Browse pages remain crawlable but are not promoted in navigation. */
.letter-grid { grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); }
.letter-card { text-align: center; }
.letter-card-letter { color: var(--brand-ink); display: block; font: 700 2rem var(--serif); }
.letter-card-count { color: var(--muted); font-size: .75rem; }
.word-index { column-gap: 2rem; columns: 2; list-style: none; margin: 1.2rem 0 2rem; padding: 0; }
.word-index li { break-inside: avoid; }
.word-index a { align-items: baseline; border-bottom: 1px dotted var(--line); color: var(--ink); display: flex; gap: .6rem; padding: .3rem .4rem; }
.word-index a:hover { background: var(--surface); text-decoration: none; }
.index-word { font-family: var(--serif); font-weight: 700; white-space: nowrap; }
.index-gloss { color: var(--muted); font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Guides and prose */
.listing-header { margin: 4.5rem 0 2.8rem; }
.listing-header h1 { margin: 0; }
.post-list { border-left: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, 1fr); margin: 1.2rem 0 3rem; }
.post-list .post-card { border-color: var(--line); }
.post-date { color: var(--muted); font-size: .72rem; margin: 0 0 .8rem; }
.prose { max-width: 46rem; }
.prose p, .prose li { font-size: 1rem; }
.prose blockquote { border-left: 3px solid var(--brand); color: var(--muted); margin: 1rem 0; padding: .2rem 1rem; }
.prose table { border-collapse: collapse; font-size: .9rem; margin: 1rem 0; width: 100%; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .45rem .7rem; text-align: left; }
.prose th { color: var(--muted); font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; }
.prose td:first-child { font-family: var(--serif); font-weight: 600; }
.post-footer { border-top: 1px solid var(--line); color: var(--muted); margin-top: 2rem; padding-top: 1rem; }
.policy-page { margin-top: 4rem; }
.policy-page h1 { margin-bottom: .15em; }

/* Support */
.support-page { margin-top: 4rem; }
.support-grid { border-left: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); margin: 3rem 0; }
.support-grid section { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); border-top: 1px solid var(--line); padding: 1.6rem; }
.support-grid span { color: var(--brand); font-size: .65rem; font-weight: 800; }
.support-grid h2 { font-size: 1.35rem; margin: 1.3rem 0 .6rem; }
.support-grid p, .support-callout p, .support-note { color: var(--muted); font-size: .82rem; }
.support-callout { align-items: center; background: var(--sand); display: flex; justify-content: space-between; margin-bottom: 2.5rem; padding: 2rem; }
.support-callout h2 { font-size: 1.8rem; margin: .4rem 0; }
.button-link { border: 1px solid var(--ink); color: var(--ink); font-size: .72rem; font-weight: 800; padding: .7rem .9rem; }
.button-link:hover { background: var(--ink); color: #fff; text-decoration: none; }
.support-note { border-top: 1px solid var(--line); padding-top: 1.2rem; }

/* Footer and 404 */
.site-footer { background: var(--ink); color: #fff; margin-top: 3.5rem; }
.footer-inner { color: #aeb9b5; font-size: .75rem; padding-bottom: 2rem; padding-top: 2rem; }
.footer-inner strong { color: #fff; font: 600 1.35rem var(--serif); }
.footer-brand { align-items: center; display: flex; gap: .7rem; margin: 0 0 .4rem; }
.footer-brand svg { flex: none; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: .7rem 0; }
.footer-inner nav a { color: #e2e9e6; }
.footer-note { font-size: .68rem; }
.notfound { padding: 4rem 0; text-align: center; }
main:focus { outline: none; }

@media (max-width: 52rem) {
  .header-inner { min-height: 4.2rem; }
  .site-nav { gap: 1rem; }
  .hero-travel { grid-template-columns: 1fr; padding: 4rem 0; }
  .quick-phrases { max-width: 38rem; }
  .word-grid { grid-template-columns: repeat(2, 1fr); }
  .about-band { gap: 2rem; grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
}

@media (max-width: 40rem) {
  .wrap { padding-left: 1rem; padding-right: 1rem; }
  .brand small { display: none; }
  .hero h1 { font-size: 3.25rem; }
  .travel-shortcuts { grid-template-columns: 1fr; padding-left: 1rem; padding-right: 1rem; }
  .travel-shortcuts a, .travel-shortcuts a:first-child { border-bottom: 1px solid rgb(255 255 255 / .18); border-left: 0; border-right: 0; min-height: 8rem; padding: 1.4rem 0; }
  .section { padding: 4rem 0; }
  .section-heading { align-items: start; flex-direction: column; gap: .7rem; }
  .word-grid, .guide-grid, .post-list { grid-template-columns: 1fr; }
  .guide-grid, .post-list { border-left: 0; }
  .post-card { border-right: 0; padding-left: 0; padding-right: 0; }
  .word-index { columns: 1; }
  .support-callout { align-items: start; flex-direction: column; gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
