/* Area pages: the landing page's paper-craft system, cut down to what these
   pages use. Tokens and components are copied from index.html, not changed;
   if the landing page changes a token, change it here too. Light only. */
:root {
  --paper: #FAF3E1;
  --card: #FFFDF6;
  --ink: #22334F;
  --slate: #5F6C86;
  --amber: #EDA23F;
  --amber-deep: #C9821B;
  --amber-text: #845414;
  --peach: #F8D9AC;
  --sky-pale: #E4F1F8;
  --sage: #D9DFBC;
  --line: #E8DCBE;
  --stack: #EFDFB8;
  --radius: 12px;
  color-scheme: light;
}
@font-face {
  font-family: "Fredoka";
  src: url("../assets/fonts/fredoka.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../assets/fonts/nunito.woff2") format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--paper); color: var(--ink); line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 70; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: 0.045; mix-blend-mode: multiply;
}
::selection { background: var(--peach); color: var(--ink); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--amber-text); outline-offset: 3px; border-radius: 4px;
}
.btn:focus-visible, .btn-ghost:focus-visible { border-radius: var(--radius); }
.skip-link {
  position: absolute; left: 12px; top: 12px; z-index: 100;
  background: var(--amber); color: #2B1B04; font-weight: 700;
  padding: 12px 20px; border-radius: var(--radius); text-decoration: none;
  box-shadow: 0 3px 0 var(--amber-deep); white-space: nowrap;
  transform: translateY(calc(-100% - 24px)); transition: transform 0.15s ease;
}
.skip-link:focus { transform: translateY(0); }

/* cut-paper buttons */
.btn {
  display: inline-flex; align-items: center; min-height: 44px; border: 0; cursor: pointer;
  text-decoration: none; background: var(--amber); color: #2B1B04; font-weight: 650;
  padding: 13px 24px; border-radius: var(--radius); font-size: 1rem;
  box-shadow: 0 3px 0 var(--amber-deep);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}
.btn:hover { background: #F2B054; transform: translateY(-1px); box-shadow: 0 4px 0 var(--amber-deep); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--amber-deep); }
.btn-ghost {
  display: inline-flex; align-items: center; min-height: 44px; text-decoration: none;
  font-weight: 650; font-size: 1rem; color: var(--ink); padding: 13px 24px;
  border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 3px 0 var(--line); transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-ghost:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--line); }
.btn-ghost:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }

.paper-cut {
  border: 16px solid transparent;
  border-image: url("../assets/paper/card-frame.webp") 76 fill / 16px stretch;
  filter: drop-shadow(0 6px 12px rgba(34, 51, 79, 0.14));
}

/* header */
header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 1.06rem; min-height: 44px; }
.brand .disc {
  width: 24px; height: 24px; flex: none;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2032%2032%27%3E%3Cpath%20d%3D%27M16.00%200.40L18.74%205.76L23.80%202.49L23.50%208.50L29.51%208.20L26.24%2013.26L31.60%2016.00L26.24%2018.74L29.51%2023.80L23.50%2023.50L23.80%2029.51L18.74%2026.24L16.00%2031.60L13.26%2026.24L8.20%2029.51L8.50%2023.50L2.49%2023.80L5.76%2018.74L0.40%2016.00L5.76%2013.26L2.49%208.20L8.50%208.50L8.20%202.49L13.26%205.76Z%27%20fill%3D%27%23EDA23F%27%2F%3E%3Ccircle%20cx%3D%2716%27%20cy%3D%2716%27%20r%3D%2711.4%27%20fill%3D%27%23F8D9AC%27%2F%3E%3Ccircle%20cx%3D%2716%27%20cy%3D%2716%27%20r%3D%279.2%27%20fill%3D%27%23F3B064%27%2F%3E%3Ccircle%20cx%3D%2716%27%20cy%3D%2716%27%20r%3D%276.6%27%20fill%3D%27%23EDA23F%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
}
.brand strong { font-weight: 750; }
.nav .btn { padding: 9px 16px; font-size: 0.92rem; box-shadow: 0 2px 0 var(--amber-deep); white-space: nowrap; }

h1, h2, h3 { font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; text-wrap: balance; }
h1 {
  font-size: clamp(2.1rem, 4.4vw, 3rem); line-height: 1.1; letter-spacing: -0.01em; max-width: 18ch;
  filter:
    drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.85))
    drop-shadow(0 2px 0 rgba(201, 130, 27, 0.16))
    drop-shadow(0 7px 9px rgba(34, 51, 79, 0.16));
}
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); line-height: 1.18; letter-spacing: -0.005em; }
p a, li a, td a, th a { color: var(--ink); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; text-decoration-color: var(--amber); }
p a:hover, li a:hover, td a:hover, th a:hover { color: var(--amber-text); text-decoration-color: var(--amber-text); }

/* opening: the area named, and the postcodes it covers on a torn slip */
.area-top { padding: 64px 0 56px; }
.area-top .grid { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: start; }
.area-top .lede { margin-top: 20px; color: var(--slate); font-size: 1.13rem; max-width: 46ch; }
.area-top .actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.area-top .note { margin-top: 14px; color: var(--slate); font-size: 0.9rem; max-width: 52ch; }
.slip { transform: rotate(0.8deg); padding: 6px 4px; }
.slip h2 { font-size: 1.15rem; margin-bottom: 10px; }
.slip p { color: var(--slate); font-size: 0.92rem; }
.codes { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.codes li {
  font-variant-numeric: tabular-nums; font-weight: 700; font-size: 0.9rem;
  background: rgba(248, 217, 172, 0.55); border: 1px solid rgba(201, 130, 27, 0.3);
  border-radius: 8px; padding: 3px 8px;
}

/* torn-paper band edges, copied from index.html */
.torn-top, .torn-bottom { position: relative; }
.torn-top::before, .torn-bottom::after {
  content: ""; position: absolute; left: 0; right: 0; height: 34px;
  z-index: 1; pointer-events: none; background-repeat: no-repeat; background-size: 100% 100%;
}
.torn-top::before { top: -1px; }
.torn-bottom::after { bottom: -1px; transform: scaleY(-1); }
.torn-cream::before, .torn-cream::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 30' preserveAspectRatio='none'%3E%3Cpath fill='%23FAF3E1' d='M0,0 H1200 V16 L1183,24 L1166,13 L1141,21 L1118,10 L1092,19 L1071,27 L1044,15 L1019,23 L998,11 L972,20 L949,28 L921,14 L896,22 L874,9 L848,18 L826,26 L799,13 L771,21 L750,10 L724,19 L699,27 L673,14 L649,22 L622,11 L597,20 L571,28 L548,15 L521,23 L497,10 L472,18 L448,26 L421,13 L399,21 L372,9 L347,19 L322,27 L298,14 L271,22 L248,11 L222,20 L197,28 L173,15 L147,23 L122,10 L98,18 L71,26 L47,13 L23,21 L0,12 Z'/%3E%3C/svg%3E");
}

/* the ledger: what sets the numbers in this area */
.ledger-band { background: linear-gradient(180deg, var(--sky-pale), color-mix(in srgb, var(--sky-pale) 55%, var(--paper))); padding: 72px 0; }
.ledger-band h2 { max-width: 28ch; }
.ledger-band .intro { margin: 12px 0 28px; color: var(--slate); max-width: 62ch; }
.ledger { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 3px 0 var(--stack); }
.ledger th, .ledger td { text-align: left; vertical-align: top; padding: 14px 18px; border-top: 1px solid var(--line); }
.ledger tr:first-child th, .ledger tr:first-child td { border-top: 0; }
.ledger th { width: 30%; font-weight: 700; font-size: 0.95rem; }
.ledger td { color: var(--slate); font-size: 0.97rem; }
.ledger td b { color: var(--ink); font-variant-numeric: tabular-nums; }
.ledger .src { display: block; margin-top: 4px; font-size: 0.82rem; }
@media (max-width: 640px) {
  .ledger, .ledger tbody, .ledger tr, .ledger th, .ledger td { display: block; width: 100%; }
  .ledger td { border-top: 0; padding-top: 0; }
}

/* example estimate, only where a real engine run exists for this area */
.example { padding: 64px 0 0; }
.example .card { max-width: 720px; padding: 8px 6px; transform: rotate(-0.5deg); }
.example dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px 22px; margin: 16px 0 12px; }
.example dt { color: var(--slate); font-size: 0.85rem; }
.example dd { font-weight: 750; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.example p { color: var(--slate); font-size: 0.9rem; }

/* suburbs */
.suburbs { padding: 64px 0; }
.suburbs .intro { margin: 12px 0 24px; color: var(--slate); max-width: 62ch; }
.suburb-list { list-style: none; columns: 3 240px; column-gap: 32px; }
.suburb-list li { break-inside: avoid; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.suburb-list b { font-variant-numeric: tabular-nums; margin-right: 8px; color: var(--amber-text); }

/* who contacts you */
.contact { padding: 0 0 64px; }
.contact .grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.contact p { color: var(--slate); max-width: 60ch; }
.contact p + p { margin-top: 12px; }
.contact img { width: 100%; max-width: 280px; height: auto; transform: rotate(-2deg); }

/* other areas */
.others { padding-bottom: 72px; }
.others h2 { font-size: 1.3rem; margin-bottom: 14px; }
.others ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.others a { display: inline-flex; align-items: center; min-height: 44px; }

.skyline { display: block; width: 100%; height: auto; margin-bottom: -2px; }
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; background: var(--paper); }
.foot { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; color: var(--slate); font-size: 0.9rem; }
.foot a { color: var(--ink); text-decoration: none; font-weight: 650; display: inline-block; padding: 12px 2px; }
.foot a:hover { color: var(--amber-text); }
.foot .legal { width: 100%; margin-top: 10px; font-size: 0.82rem; }

@media (max-width: 860px) {
  .area-top .grid, .contact .grid { grid-template-columns: 1fr; gap: 32px; }
  .contact img { max-width: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
