/* Bones Property Maintenance — THE CHART concept.
   Deep chart-ink field, bone-white linework, burgundy rationed.
   Type: Source Serif 4 (cartouche) + Archivo (chart lettering). */

:root {
  --ink: #0a1712;
  --water: #0d2019;
  --land: #08130e;
  --bone: #e9e2ce;
  --bone-85: rgba(233, 226, 206, 0.85);
  --bone-70: rgba(233, 226, 206, 0.7);
  --bone-55: rgba(233, 226, 206, 0.55);
  --bone-40: rgba(233, 226, 206, 0.4);
  --bone-25: rgba(233, 226, 206, 0.25);
  --bone-15: rgba(233, 226, 206, 0.15);
  --burgundy: #9e2b3f;
  --burgundy-bright: #cd5570;
  --pad: clamp(20px, 5.6vw, 72px);
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body.locked { overflow: hidden; }

a { color: inherit; text-decoration: none; }

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

::selection { background: var(--burgundy); color: var(--bone); }

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px var(--pad);
  background: var(--ink);
  border-bottom: 1px solid var(--bone-25);
}

.brand { display: flex; align-items: center; gap: 12px; min-height: 48px; }

.brand-mark {
  width: 9px; height: 9px; flex: none;
  background: var(--burgundy);
  transform: rotate(45deg);
}

.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.14em;
  line-height: 1;
}

.brand-sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bone-55);
}

@media (max-width: 560px) { .brand-sub { display: none; } }

.menu-toggle {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 48px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--bone);
  cursor: pointer;
  font-family: var(--sans);
}

.mt-word { font-size: 13px; font-weight: 600; letter-spacing: 0.3em; }

.mt-lines { display: flex; flex-direction: column; gap: 6px; }
.mt-lines i { display: block; width: 22px; height: 1.5px; background: var(--bone); }

/* ---------- menu sheet ---------- */

.menu-sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  background:
    linear-gradient(rgba(233, 226, 206, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 226, 206, 0.04) 1px, transparent 1px),
    var(--ink);
  background-size: 52px 52px;
  padding: 118px var(--pad) 40px;
  overflow-y: auto;
}

.sheet-nav a {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 7.4vw, 40px);
  padding: 13px 0;
  border-bottom: 1px solid var(--bone-15);
}

.sheet-nav a:first-child { border-top: 1px solid var(--bone-15); }

.sheet-foot {
  margin-top: 34px;
  font-size: 12.5px;
  line-height: 2;
  color: var(--bone-70);
}

.sheet-foot span { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-40); }

/* ---------- hero / chart ---------- */

.hero { padding: 22px var(--pad) 0; max-width: 1384px; margin: 0 auto; }

.chart-panel {
  border: 1px solid var(--bone-40);
  background: var(--water);
  padding: 14px;
  display: grid;
  gap: 20px;
}

@media (min-width: 920px) {
  .chart-panel { grid-template-columns: 7fr 5fr; align-items: center; padding: 24px; gap: 30px; }
  .chart-wrap { display: flex; justify-content: center; }
  .chart-wrap .chart-svg { height: min(78vh, 850px); width: auto; max-width: 100%; }
}

.chart-svg { display: block; width: 100%; height: auto; }

.water { fill: var(--water); }

.grat path { stroke: rgba(233, 226, 206, 0.05); stroke-width: 1; fill: none; }

.land {
  fill: var(--land);
  stroke: var(--bone);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

@media (prefers-reduced-motion: no-preference) {
  .land {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    fill-opacity: 0;
    animation: ch-draw 2.1s ease-out forwards, ch-fill 1.1s ease 1s forwards;
  }
  @keyframes ch-draw { to { stroke-dashoffset: 0; } }
  @keyframes ch-fill { to { fill-opacity: 1; } }
}

.towns circle { fill: var(--water); stroke: var(--bone); stroke-width: 1.2; }

.t-town {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  fill: var(--bone);
}

.homebase circle { fill: none; stroke: var(--burgundy); stroke-width: 1.6; }
.homebase .hb-dot { fill: var(--burgundy); stroke: none; }

.t-home { font-family: var(--serif); font-size: 14.5px; font-weight: 600; fill: var(--bone); }
.t-home-sub { font-family: var(--sans); font-size: 7.5px; font-weight: 700; letter-spacing: 2px; fill: var(--burgundy-bright); }

.t-ocean { font-family: var(--serif); font-style: italic; font-size: 12px; letter-spacing: 5px; fill: var(--bone-55); }
.t-river { font-family: var(--sans); font-size: 8px; letter-spacing: 2.5px; fill: rgba(233, 226, 206, 0.5); }
.t-inlet { font-family: var(--sans); font-size: 7.5px; letter-spacing: 1.5px; fill: rgba(233, 226, 206, 0.5); }

.t-sound text { font-family: var(--sans); font-size: 9px; fill: rgba(233, 226, 206, 0.38); text-anchor: middle; }

.compass circle { fill: none; stroke: rgba(233, 226, 206, 0.6); stroke-width: 1; }
.compass .compass-in { stroke: rgba(233, 226, 206, 0.3); }
.compass-star { fill: rgba(233, 226, 206, 0.16); stroke: rgba(233, 226, 206, 0.75); stroke-width: 0.8; }
.compass-n { fill: var(--burgundy); }
.t-compass-n { font-family: var(--serif); font-size: 11px; font-weight: 700; fill: var(--bone); }

.scalebar rect { fill: var(--bone); }
.scalebar .sb-open { fill: none; stroke: var(--bone); stroke-width: 0.8; }
.scalebar text { font-family: var(--sans); font-size: 7px; fill: rgba(233, 226, 206, 0.65); }

.frame-out { fill: none; stroke: rgba(233, 226, 206, 0.85); stroke-width: 1; }
.frame-in { fill: none; stroke: rgba(233, 226, 206, 0.3); stroke-width: 0.5; }
.ticks { stroke: rgba(233, 226, 206, 0.55); stroke-width: 1; fill: none; }
.t-grat { font-family: var(--sans); font-size: 8px; letter-spacing: 0.5px; fill: var(--bone-55); }

/* reprise: labels a step larger */
.chart--area .t-town { font-size: 12.5px; }
.chart--area .t-home { font-size: 16px; }

/* ---------- cartouche ---------- */

.cartouche {
  border: 1px solid rgba(233, 226, 206, 0.75);
  outline: 1px solid var(--bone-25);
  outline-offset: 5px;
  padding: 28px 24px;
}

.cart-note {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bone-55);
}

.cart-name {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(46px, 11.5vw, 78px);
  line-height: 0.95;
  text-transform: uppercase;
}

.cart-name span {
  display: block;
  margin-top: 12px;
  font-size: 0.3em;
  font-weight: 600;
  letter-spacing: 0.34em;
}

.cart-rule {
  height: 1px;
  margin: 20px 0;
  background: linear-gradient(90deg, var(--burgundy) 0 54px, var(--bone-40) 54px);
}

.cart-line { margin: 0; font-family: var(--serif); font-size: 17.5px; line-height: 1.55; }

.cart-tag {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 21px;
}

.cart-link {
  display: inline-block;
  margin-top: 22px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--burgundy);
  padding-bottom: 5px;
}

/* ---------- symbols strip ---------- */

.symbols {
  margin-top: 16px;
  border: 1px solid var(--bone-25);
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
}

.symbols-head {
  margin: 0;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bone-55);
}

.symbols-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.symbols-list li { display: flex; flex-direction: column; align-items: center; gap: 6px; }

.symbols-list span { font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone-55); }

.glyph { width: 26px; height: 26px; }
.glyph path, .glyph circle {
  stroke: var(--bone);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- sections ---------- */

.work, .owner, .area, .visit {
  padding: 66px var(--pad) 6px;
  max-width: 1384px;
  margin: 0 auto;
}

.note-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  border-bottom: 1px solid var(--bone-40);
  padding-bottom: 13px;
}

.note-head span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--burgundy-bright);
  white-space: nowrap;
}

.note-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.05;
}

.work-intro {
  margin: 22px 0 6px;
  max-width: 56ch;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  color: var(--bone-85);
}

/* legend */

.legend { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--bone-15); }

.legend-row {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--bone-15);
}

.legend-glyph {
  width: 54px; height: 54px;
  border: 1px solid var(--bone-40);
  display: grid;
  place-items: center;
}

.legend-glyph .glyph { width: 30px; height: 30px; }

.legend-body h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.2; }
.legend-body p { margin: 5px 0 0; font-size: 15px; line-height: 1.55; color: var(--bone-70); }

.legend-ref { font-size: 10px; letter-spacing: 0.2em; color: var(--bone-40); white-space: nowrap; }

@media (max-width: 560px) {
  .legend-row { grid-template-columns: 48px 1fr; }
  .legend-glyph { width: 46px; height: 46px; }
  .legend-ref { display: none; }
  .legend-body h3 { font-size: 20px; }
}

/* owner */

.owner-cartouche {
  border: 1px solid rgba(233, 226, 206, 0.75);
  outline: 1px solid var(--bone-25);
  outline-offset: 5px;
  max-width: 740px;
  margin: 10px auto 0;
  padding: 46px 28px;
  text-align: center;
}

.owner-name {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(40px, 9.5vw, 66px);
  line-height: 1;
  text-transform: uppercase;
}

.owner-cartouche .cart-rule { max-width: 340px; margin-left: auto; margin-right: auto; }

.owner-badge {
  margin: 16px 0 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--burgundy-bright);
}

/* area */

.chart-panel--area { margin-top: 26px; display: block; }

.chart-wrap--area { display: flex; justify-content: center; }
.chart-wrap--area .chart-svg { width: 100%; height: auto; }

@media (min-width: 920px) {
  .chart-wrap--area .chart-svg { width: min(700px, 100%); }
}

.town-index { list-style: none; margin: 28px 0 0; padding: 0; }

.town-index li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--bone-15);
}

.ti-name { font-family: var(--serif); font-size: 19px; }
.ti-tag { font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bone-55); white-space: nowrap; }

.town-index .ti-home .ti-name { font-weight: 700; }
.town-index .ti-home .ti-tag { color: var(--burgundy-bright); }

@media (min-width: 920px) {
  .town-index { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
}

/* visit / form */

.visit { padding-bottom: 76px; }

.visit-panel {
  position: relative;
  margin-top: 26px;
  border: 1px solid rgba(233, 226, 206, 0.6);
  padding: 32px 24px;
  background: repeating-linear-gradient(180deg, transparent 0 31px, rgba(233, 226, 206, 0.045) 31px 32px);
}

.corner { position: absolute; width: 15px; height: 15px; border: 0 solid var(--burgundy-bright); }
.corner-tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.corner-tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.corner-bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.corner-br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

.visit-intro { margin: 0; font-family: var(--serif); font-style: italic; font-size: 17.5px; line-height: 1.6; color: var(--bone-85); }

#visit-form { display: grid; gap: 22px; margin-top: 24px; }

.field span {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--bone-55);
}

.field input, .field select, .field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--bone-40);
  border-radius: 0;
  color: var(--bone);
  font-family: var(--sans);
  font-size: 16px;
  padding: 8px 2px;
}

.field select option { color: #141414; }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--burgundy-bright);
}

.visit-submit {
  justify-self: stretch;
  background: var(--burgundy);
  color: #f3eddc;
  border: 0;
  padding: 17px 34px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (min-width: 920px) { .visit-submit { justify-self: start; } }

.form-note {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  border-left: 2px solid var(--burgundy-bright);
  padding-left: 13px;
  color: var(--bone-85);
}

/* ---------- footer ---------- */

.foot { border-top: 1px solid var(--bone-25); padding: 0 var(--pad) 46px; }

.foot-ticks {
  height: 11px;
  margin: 0 calc(var(--pad) * -1) 28px;
  border-bottom: 1px solid var(--bone-25);
  background: repeating-linear-gradient(90deg, var(--bone-55) 0 1px, transparent 1px 26px);
}

.foot-name { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: 0.06em; text-transform: uppercase; }
.foot-line { margin: 7px 0 0; font-size: 12.5px; color: var(--bone-70); }
.foot-towns { margin: 15px 0 0; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; line-height: 2; color: rgba(233, 226, 206, 0.5); }
.foot-fine { margin: 15px 0 0; font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--bone-40); }
