/* The wikimenu.app landing page: one chalkboard listing the city sites. The
   colours, wood, slate and type are the app's own (next/styles/global.css,
   components/Layout.module.css, styles/Home.module.css); keep them in step. */

@font-face {
  font-family: Fraunces;
  font-weight: 900;
  font-display: swap;
  src: url(fonts/fraunces-latin-900-normal.woff2) format('woff2');
}
@font-face {
  font-family: Fraunces;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/fraunces-latin-700-normal.woff2) format('woff2');
}
@font-face {
  font-family: Figtree;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/figtree-latin-400-normal.woff2) format('woff2');
}
@font-face {
  font-family: Figtree;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/figtree-latin-600-normal.woff2) format('woff2');
}
@font-face {
  font-family: Caveat;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/caveat-latin-700-normal.woff2) format('woff2');
}

:root {
  --cream: #F7F0E1;
  --chalk: #F2EEE4;
  --chalk-head: #F7F3EA;
  --chalk-muted: #C4C9C3;
  --gold: #F2C94C;
  --frame: #7A4E2E;
  --serif: Fraunces, Georgia, serif;
  --sans: Figtree, system-ui, sans-serif;
  --hand: Caveat, cursive;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  color: var(--cream);
}

a { text-decoration: none; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wood {
  background-color: #5B3720;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 238px, rgba(20, 10, 4, .55) 238px 240px, rgba(255, 220, 180, .06) 240px 241px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .10) 0 1px, transparent 1px 7px, rgba(0, 0, 0, .05) 7px 9px, transparent 9px 17px),
    repeating-linear-gradient(91deg, rgba(255, 210, 160, .05) 0 2px, transparent 2px 31px),
    linear-gradient(90deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, 0) 12%, rgba(0, 0, 0, .12) 25%, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, .16) 50%, rgba(0, 0, 0, 0) 63%, rgba(0, 0, 0, .1) 75%, rgba(0, 0, 0, 0) 88%, rgba(0, 0, 0, .18)),
    linear-gradient(180deg, #6A4227, #4E2E1A);
}

.slate {
  background-color: #252B27;
  background-image:
    radial-gradient(ellipse at 25% 15%, rgba(255, 255, 255, .06), transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(255, 255, 255, .035), transparent 50%),
    radial-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: auto, auto, 4px 4px;
}

/* ── Header ── */
.header {
  background: rgba(25, 14, 7, .55);
  border-bottom: 1px solid rgba(255, 230, 200, .12);
}
.bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logoName {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -.01em;
}
.dot { color: #D9826F; }
.tagline {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #D8C6A8;
  margin-top: 6px;
}

/* ── The board ── */
.wrap {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}
.hero {
  border: 14px solid var(--frame);
  border-radius: 6px;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .35), 0 24px 46px rgba(10, 4, 0, .5);
  padding: 36px 44px 30px;
  color: var(--chalk);
}
.heroHead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 2px dashed rgba(242, 238, 228, .28);
}
.hand {
  margin: 0;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 34px;
  color: var(--gold);
}
h1 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--chalk-head);
}
.blurb {
  margin: 0;
  max-width: 320px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--chalk-muted);
}
.cities {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 36px;
}
.city {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: 'name arrow' 'domain domain';
  align-items: baseline;
  gap: 6px 8px;
  padding: 20px 0 18px;
  border-bottom: 1px dashed rgba(242, 238, 228, .22);
  color: var(--chalk);
}
.name {
  grid-area: name;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.05;
}
.arrow {
  grid-area: arrow;
  font-size: 20px;
  color: var(--chalk-muted);
}
.domain {
  grid-area: domain;
  font-weight: 600;
  font-size: 14px;
  color: var(--gold);
}
.city:hover .name {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.city:hover .arrow { color: var(--chalk); }

/* ── Footer ── */
.footer {
  padding: 24px;
  text-align: center;
  background: rgba(25, 14, 7, .55);
  border-top: 1px solid rgba(255, 230, 200, .12);
}
.footerLogo {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 20px;
}

@media (max-width: 640px) {
  .logoName { font-size: 24px; }
  .wrap { padding: 20px 12px 32px; }
  .hero { border-width: 10px; padding: 24px 20px 20px; }
  .hand { font-size: 28px; }
  .cities { grid-template-columns: minmax(0, 1fr); }
}
