:root {
  --ink: #1c1d1f;
  --navy: #142454;
  --link: #143a86;
  --paper: #efeae0;
  --sheet: #f8f6f1;
  --line: #c9c2b3;
  --brass: #8a6730;
  --brass-light: #b5894a;
  --header: #3c4044;
  --steel: #2a2d30;
  --steel-dark: #1e2022;
  --muted: #5e584e;
  --focus: #8a6730;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; }

a { color: var(--link); }
a:hover { color: #071433; }

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

.skip {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  background: #fff;
  color: var(--navy);
  padding: 0.4rem 0.7rem;
  z-index: 10;
}
.skip:focus { top: 0.5rem; }

.site-header {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 2px, transparent 2px, transparent 10px),
    linear-gradient(180deg, #46494d 0%, var(--steel) 55%, var(--steel-dark) 100%);
  color: #f3efe6;
  border-bottom: 1px solid #16181a;
}

.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.15rem 1.25rem 1rem;
}

.site-header a { color: inherit; }

.brandrow {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.brandmark {
  margin: 0;
  flex: none;
}

.brandmark img {
  display: block;
  width: clamp(110px, 13vw, 165px);
  height: auto;
  background: #d9dbda;
  border-radius: 4px;
}

.wordmark {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  color: #cfc8b8;
  margin: 0;
}

.wordmark a { text-decoration: none; }

.founded {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0.4rem 0 0;
  color: #e4d3ad;
}

.topmeta {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.98rem;
  margin: 0.85rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.2rem;
}

.topmeta a { text-underline-offset: 2px; }

.brass {
  height: 6px;
  background:
    radial-gradient(circle, rgba(0,0,0,0.35) 1.1px, transparent 1.3px) 0 50% / 18px 100%,
    linear-gradient(180deg, var(--brass-light), var(--brass) 60%, #6e4f22);
}

.primary {
  background: var(--steel-dark);
  border-bottom: 1px solid #0f1011;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

.primary ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
  padding: 0 0.85rem;
  max-width: 1320px;
}

.primary a {
  display: block;
  padding: 0.85rem 0.95rem;
  color: #d8d2c4;
  text-decoration: none;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
}

.primary a[aria-current="page"] {
  background: rgba(138, 103, 48, 0.22);
  border-bottom-color: var(--brass-light);
  color: #fff;
}
.primary a:hover { background: rgba(255,255,255,0.06); color: #fff; }

main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.6rem 1.25rem 3rem;
}

.stack p, .stack ul, main > p {
  max-width: 68ch;
}

h1 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.7rem);
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--navy);
  margin: 0 0 0.85rem;
}

h2 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: 0.03em;
  color: var(--navy);
  line-height: 1.1;
  margin: 1.9rem 0 0.4rem;
  padding-left: 0.65rem;
  border-left: 5px solid var(--brass);
}

h2 a { text-decoration: none; }
h2 a:hover { text-decoration: underline; }

.torbase-logo {
  margin: 0 0 0.5rem;
}

.torbase-logo img {
  display: block;
  width: min(100%, 420px);
  height: auto;
}

.cry {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-style: italic;
  font-size: 2rem;
  letter-spacing: 0.04em;
  margin: 0.2rem 0;
  color: var(--ink);
}

.subcry {
  font-style: italic;
  margin-top: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 360px);
  gap: 1.75rem 2.5rem;
  align-items: start;
}

.stack > * + * { margin-top: 0; }

figure {
  position: relative;
  margin: 0 0 1rem;
  background: #e4ded2;
  padding: 0.5rem;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px #fff;
}

figure::before, figure::after {
  content: "";
  position: absolute;
  top: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8f8a7c;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.6);
}

figure::before { left: 6px; }
figure::after { right: 6px; }

figure img {
  display: block;
  background: #d5d0c6;
}

figcaption {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: flex-start;
  margin: 1rem 0;
}

ul { padding-left: 1.2rem; }
li { margin: 0.2rem 0; }

.pair {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 0.9rem;
  align-items: start;
  margin: 0.5rem 0 1rem;
}

.map-embed {
  width: 100%;
  height: 280px;
  border: 1px solid var(--line);
  margin: 0.5rem 0 1rem;
}

.addr {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
}

form { max-width: 42rem; }

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

.fields .full { grid-column: 1 / -1; }

.cityzip {
  display: grid;
  grid-template-columns: 1.6fr 0.5fr 0.8fr;
  gap: 0.6rem;
}

label {
  display: block;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  margin: 0.75rem 0 0.2rem;
}

input, textarea {
  width: 100%;
  font: 1rem "Source Sans 3", "Segoe UI", sans-serif;
  padding: 0.45rem 0.55rem;
  border: 1px solid #8b8578;
  background: #fff;
  color: var(--ink);
}

button {
  margin-top: 1rem;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  background: var(--navy);
  color: #fff;
  border: 0;
  padding: 0.65rem 1.15rem;
  cursor: pointer;
}

button:hover { background: var(--brass); }

.form-note {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.92rem;
  color: var(--muted);
}

.site-footer {
  background: var(--steel-dark);
  color: #cfc8ba;
  border-top: 3px solid var(--brass);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  text-align: center;
  padding: 1.4rem 1rem 2rem;
}

.site-footer a { color: #e4d3ad; }
.site-footer p { margin: 0.35rem 0; }

.fine {
  color: #8d8778;
  font-size: 0.82rem;
}

@media (max-width: 760px) {
  .split, .pair, .fields, .cityzip { grid-template-columns: 1fr; }
  .fields .full { grid-column: auto; }
  main { padding-top: 1.1rem; }
  .brandmark img { width: 110px; }
}

@media (max-width: 480px) {
  .brandrow { align-items: flex-start; }
  .brandmark img { width: 96px; }
}
