:root {
  --ink: #2a2118;
  --teal: #2f6f6a;
  --wash: #e4e6df;
  --panel: #f0f1eb;
  --mute: #5c564c;
  --rule: #b7b8af;
  --radius: 5px;
  --read: 40rem;
  --sash: 72rem;
  --rail: 36px;
  --ribbon: 10px;
  --gutter: 1.25rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--wash);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 13px,
      rgba(42, 33, 24, 0.04) 13px,
      rgba(42, 33, 24, 0.04) 14px
    );
  font-family: Karla, "Segoe UI", sans-serif;
  font-size: 1.02rem;
  line-height: 1.62;
}

.os-body::before {
  content: "";
  position: fixed;
  left: 0;
  right: var(--rail);
  top: 0;
  height: var(--ribbon);
  background: linear-gradient(90deg, #3a2d22 0 28%, #2f6f6a 28% 72%, #3a2d22 72% 100%);
  z-index: 5;
  pointer-events: none;
}

.os-body::after {
  content: "";
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: var(--rail);
  background:
    repeating-linear-gradient(
      90deg,
      #2a2118 0 8px,
      #3a2d22 8px 16px
    );
  box-shadow: inset 3px 0 0 var(--teal);
  z-index: 4;
  pointer-events: none;
}

.os-body.os-inner::after {
  background:
    repeating-linear-gradient(
      90deg,
      #2a2118 0 8px,
      #3a2d22 8px 16px
    );
  box-shadow: inset 3px 0 0 var(--teal), inset 10px 0 0 rgba(47, 111, 106, 0.28);
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--teal);
  text-underline-offset: 0.16em;
}

a:hover { color: var(--ink); }

h1, h2, h3 {
  font-family: "Zilla Slab", Georgia, serif;
  font-weight: 700;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 0.6rem;
  letter-spacing: -0.012em;
}

h1 { font-size: clamp(1.65rem, 3.4vw, 2.35rem); }
h2 { font-size: 1.16rem; }
h3 { font-size: 1rem; }

p { margin: 0 0 0.9rem; }

.os-kicker {
  font-family: "Zilla Slab", Georgia, serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 0.4rem;
}

.os-skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--panel);
  padding: 0.35rem 0.65rem;
}

.os-skip:focus {
  left: 0.7rem;
  top: calc(var(--ribbon) + 0.5rem);
  z-index: 8;
}

.os-lintel {
  background: var(--ink);
  color: var(--wash);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem 0.9rem;
  padding: calc(var(--ribbon) + 0.7rem) calc(var(--rail) + 1rem) 0.8rem 1.1rem;
  border-bottom: 3px solid var(--teal);
  position: relative;
}

.os-mark {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--wash);
  text-decoration: none;
  min-width: 0;
}

.os-mark img {
  width: 44px;
  height: 44px;
  border: 1px solid #5a6f68;
  background: #1d1812;
}

.os-word {
  display: grid;
  line-height: 1.05;
}

.os-word b {
  font-family: "Zilla Slab", Georgia, serif;
  font-size: 1.02rem;
}

.os-word i {
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: #9fc4bf;
  text-transform: uppercase;
}

.os-mark:hover { color: #d7ebe8; }

.os-fold {
  margin-left: auto;
  background: transparent;
  color: var(--wash);
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  padding: 0.38rem 0.7rem;
  font: inherit;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.os-links {
  display: none;
  grid-column: 1 / -1;
  gap: 0.75rem 1.05rem;
}

.os-links.is-open { display: flex; flex-wrap: wrap; }

.os-links a {
  color: var(--wash);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.08rem;
  font-family: "Zilla Slab", Georgia, serif;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
}

.os-links a[aria-current="page"],
.os-links a:hover {
  border-bottom-color: var(--teal);
}

@media (min-width: 760px) {
  .os-fold { display: none; }
  .os-links {
    display: flex;
    width: auto;
    margin-left: auto;
    grid-column: auto;
  }
}

#os-sash {
  padding: 0 calc(var(--rail) + 1.2rem) 0 1.2rem;
}

.os-ribbon,
.os-wards,
.os-walk-note,
.os-chip,
.os-read {
  width: 100%;
  max-width: var(--sash);
  margin: 0 auto;
  padding: 0 0 2.2rem;
}

.os-ribbon {
  padding-top: 1.7rem;
}

.os-notch-art {
  width: 220px;
  margin-bottom: 0.85rem;
}

.os-notch-art .os-draw {
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  animation: sash-draw 1s ease forwards;
}

@keyframes sash-draw {
  to { stroke-dashoffset: 0; }
}

.os-ticks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  padding: 0;
}

.os-ticks li {
  background: var(--ink);
  color: var(--wash);
  border-radius: var(--radius);
  padding: 0.28rem 0.62rem;
  font-family: "Zilla Slab", Georgia, serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.os-lead { max-width: 40rem; }

.os-bound {
  margin: 0.7rem 0 1rem;
  padding: 0.7rem 0 0;
  border: 0;
  border-top: 1px solid var(--rule);
  font-size: 0.93rem;
  color: var(--mute);
}

.os-ward-list,
.os-notch-list,
.os-map,
.os-walk-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0;
}

@media (min-width: 820px) {
  .os-ward-list,
  .os-map { grid-template-columns: 1fr 1fr 1fr; }
}

.os-slip {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-left: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.9rem 1rem 0.75rem 1.15rem;
  box-shadow: none;
  position: relative;
}

.os-slip::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  bottom: 0.55rem;
  width: 7px;
  background:
    linear-gradient(#2a2118 0 28%, transparent 28% 36%, #2a2118 36% 64%, transparent 64% 72%, #2a2118 72% 100%);
}

.os-slip:hover { transform: translateX(2px); }

.os-n {
  display: inline-block;
  color: var(--teal);
  font-family: "Zilla Slab", Georgia, serif;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.os-chip address {
  display: block;
  font-style: normal;
  background: var(--ink);
  color: var(--wash);
  padding: 1.1rem 1.15rem 0.65rem;
  border-left: 8px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.os-chip address a { color: #9fc4bf; }
.os-chip address h2 { color: var(--wash); }

.os-clerk-chip { margin-top: 1rem; }

.os-fill,
.os-ghost,
button.os-fill {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: break-word;
  border-radius: var(--radius);
  padding: 0.5rem 0.95rem;
  text-decoration: none;
  font-family: "Zilla Slab", Georgia, serif;
  font-weight: 700;
  margin: 0 0.45rem 0.45rem 0;
  border: 1px solid var(--teal);
  cursor: pointer;
}

.os-fill,
button.os-fill {
  background: var(--teal);
  color: #f4f6f1;
}

.os-fill:hover,
button.os-fill:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #d7ebe8;
}

.os-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.os-inner .os-read {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.os-read > p,
.os-read .os-asks,
.os-read .os-form,
.os-read .os-where,
.os-read .os-hint,
.os-read .os-points {
  max-width: var(--read);
}

.os-open { margin-bottom: 1.2rem; }

.os-fields { margin: 0 0 1.2rem; }

.os-fields div {
  display: grid;
  grid-template-columns: minmax(7rem, 13rem) 1fr;
  gap: 0.3rem 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rule);
}

.os-fields dt {
  font-weight: 700;
  margin: 0;
  font-family: "Zilla Slab", Georgia, serif;
}

.os-fields dd { margin: 0; }

.os-points {
  margin: 0 0 1.2rem;
  padding-left: 1.1rem;
}

.os-asks dt {
  border-top: 1px solid var(--rule);
  padding: 0.8rem 0 0.18rem;
  font-family: "Zilla Slab", Georgia, serif;
  font-weight: 700;
}

.os-asks dd { margin: 0 0 0.7rem; }

.os-form {
  display: grid;
  gap: 0.75rem;
  max-width: 28rem;
}

.os-form label { display: grid; gap: 0.26rem; font-weight: 600; }

.os-form input,
.os-form textarea {
  font: inherit;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 0.46rem 0.6rem;
  background: var(--panel);
}

.os-hint { color: var(--mute); font-size: 0.92rem; }

.os-where {
  display: block;
  font-style: normal;
  margin: 0 0 1.2rem;
  padding: 0.85rem 1rem;
  background: var(--panel);
  border-left: 7px solid var(--teal);
}

.os-foot {
  background: var(--ink);
  color: var(--wash);
  padding: 1.4rem calc(var(--rail) + 1rem) 1.6rem 1.15rem;
  border-top: 3px solid var(--teal);
  display: grid;
  gap: 0.95rem;
}

@media (min-width: 860px) {
  .os-foot {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
  .os-foot .os-legal,
  .os-foot .os-line,
  .os-foot .os-edge {
    grid-column: 1 / -1;
  }
}

.os-deed,
.os-clerk {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.os-deed a,
.os-clerk a { color: #b7d4d0; text-decoration: none; }
.os-deed a:hover,
.os-clerk a:hover { color: #fff; }

.os-ink {
  width: 100%;
  margin: 0 0 0.35rem;
  color: #9fc4bf;
  font-family: "Zilla Slab", Georgia, serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.os-ink img {
  width: 52px;
  height: 52px;
  margin-bottom: 0.35rem;
  border: 1px solid var(--teal);
}

.os-legal,
.os-line,
.os-edge {
  color: #c8c6bd;
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: var(--sash);
  overflow-wrap: break-word;
}

.os-legal a { color: #b7d4d0; }

@media (max-width: 700px) {
  :root { --rail: 16px; }
  #os-sash {
    padding: 0 calc(var(--rail) + 0.85rem) 0 0.85rem;
  }
  .os-fields div { grid-template-columns: 1fr; }
  .os-ward-list,
  .os-map { grid-template-columns: 1fr; }
}
