/* scarn.au: the sites' look (cream paper, ink outlines, pastel shapes), on a sea of its own. */

:root {
  --paper: #fffaf1;
  --card: #ffffff;
  --ink: #2b2a33;
  --muted: #5f5c68;
  --line: #ece3d3;
  --sea: #8fd3d8;
  --sea-deep: #63bcc8;
  --land: #f4eee3;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.5 var(--font); }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
a:hover { text-decoration-color: currentColor; }
h1, h2 { line-height: 1.1; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 900; margin: 0 0 0.3rem; }
.button { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; font-weight: 800; padding: 11px 22px; border-radius: 99px; box-shadow: 3px 3px 0 #ff8fab; }
.button:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #ff8fab; }
.chip { display: inline-block; justify-self: start; font-size: 0.75rem; font-weight: 800; padding: 2px 10px; border-radius: 99px; background: var(--ink); color: #fff; }

/* The sea, with Australia in it */
.hero {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 12px 32px;
  padding: clamp(24px, 5vw, 64px) max(20px, calc((100vw - 1180px) / 2)) clamp(32px, 6vw, 72px);
  background:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.35) 1.2px, transparent 1.6px) 0 0 / 18px 18px,
    radial-gradient(120% 90% at 75% 40%, var(--sea) 0%, var(--sea-deep) 100%);
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
}
.domain { margin: 0; font-weight: 800; letter-spacing: 0.04em; }
h1 { font-size: clamp(3.2rem, 10vw, 6.4rem); font-weight: 900; margin: 0 0 18px; text-shadow: 3px 3px 0 #fff; }
h1 .q { color: #fff; text-shadow: 3px 3px 0 var(--ink); margin-left: 0.04em; }

.definition {
  font-family: var(--serif); font-size: 1.12rem; line-height: 1.5;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 6px; box-shadow: 6px 6px 0 var(--ink);
  padding: 20px 24px 16px; max-width: 34em;
}
.definition p, .definition ol { margin: 0; }
.headword { margin-bottom: 8px !important; }
.headword dfn { font-style: normal; font-weight: 700; font-size: 1.6rem; letter-spacing: -0.01em; }
.say { color: var(--muted); margin: 0 4px; }
.pos { font-style: italic; color: var(--muted); }
.definition ol { padding-left: 1.4em; }
.definition li { padding-left: 0.2em; margin-bottom: 6px; }
.definition li::marker { font-weight: 700; }
.definition q { font-style: italic; quotes: "“" "”"; }
.definition .origin { font-size: 0.95rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; margin-top: 10px; }
.jump { margin: 24px 0 0; }

.hero-map { margin: 0; }
.aus-map { display: block; width: 100%; height: auto; overflow: visible; }
.aus-map .shadow { fill: var(--ink); transform: translate(6px, 6px); }
.aus-map .state { stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.aus-map .state.is-home { fill: #ffb347; }
.aus-map .site-dot { stroke: var(--ink); stroke-width: 1.5; }
.aus-map .patch { fill: rgba(255,255,255,.25); stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: 5 4; }
.aus-map .patch-label { font: 900 22px var(--font); fill: var(--ink); dominant-baseline: middle; paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; }
.aus-map a:hover .patch { fill: rgba(255,255,255,.6); }

/* Pick your patch */
main { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.places { padding-top: clamp(32px, 5vw, 56px); }
.intro { margin: 0 0 20px; color: var(--muted); max-width: 36em; }
.places-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; align-items: start; }
.region { margin: 0; border: 2px solid var(--ink); border-radius: 22px; overflow: hidden; box-shadow: 5px 5px 0 var(--ink); background: var(--sea); }
.region-map { display: block; width: 100%; height: auto; }
.region-map .sea { fill: var(--sea); }
.region-map .land { fill: var(--land); stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.region-map .area { stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; }
.region-map a:hover .area { filter: brightness(1.08); stroke-width: 3.2; }
.region-map .area-label { font: 900 17px var(--font); fill: var(--ink); text-anchor: middle; dominant-baseline: middle; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.region-map .town { fill: var(--ink); }
.region-map .town-label { font: 700 14px var(--font); fill: var(--muted); dominant-baseline: middle; paint-order: stroke; stroke: var(--land); stroke-width: 4px; stroke-linejoin: round; }
.region-map .scale path { fill: none; stroke: var(--ink); stroke-width: 2; }
.region-map .scale text { font: 700 12px var(--font); fill: var(--ink); dominant-baseline: middle; }

.site-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.site-card a {
  display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; text-decoration: none;
  padding: 14px 18px 14px 14px; background: var(--card); border: 2px solid var(--ink); border-radius: 20px;
  box-shadow: 4px 4px 0 var(--c); transition: transform .12s, box-shadow .12s;
}
.site-card a:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--c); }
.site-card .sticker { width: 112px; height: auto; display: block; }
.sticker .shadow { fill: var(--ink); transform: translate(3px, 3px); }
.sticker .suburb { stroke: rgba(43,42,51,.35); stroke-width: 0.6; }
.sticker .outline { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; }
.site-text { display: grid; gap: 2px; }
.site-name { font-size: 1.35rem; font-weight: 900; line-height: 1.15; }
.site-tagline { font-weight: 700; }
.site-what { color: var(--muted); font-size: 0.95rem; }
.site-count { font-size: 0.85rem; font-weight: 800; color: var(--muted); }
.is-friend a { background: color-mix(in srgb, var(--c) 10%, white); border-style: dashed; }

.more { margin-top: 48px; padding: 22px 24px; border: 2px dashed var(--line); border-radius: 20px; }
.more h2 { font-size: 1.35rem; }
.more p { margin: 0; }

footer { max-width: 1180px; margin: 3.5rem auto 0; padding: 1.5rem 20px 3rem; border-top: 2px dashed var(--line); color: var(--muted); font-size: 0.9rem; }
footer p { margin: 0 0 0.5rem; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-map { max-width: 520px; width: 100%; justify-self: center; }
  .places-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .site-card a { grid-template-columns: 80px 1fr; gap: 12px; }
  .site-card .sticker { width: 80px; }
  .definition { padding: 16px 18px 12px; font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  .site-card a, .button { transition: none; }
}
