/* Realtor Site Template — shared design system */

@font-face {
  font-family: "Young Serif";
  src: url("../fonts/young-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Theme tokens --- */
:root,
html {
  --paper: #f8f6ee;
  --surface: #ffffff;
  --surface-alt: #f0ede2;
  --ink: #17332d;
  --muted: #4b615b;
  --brand: #103e37;
  --brand-deep: #0b2b26;
  --accent: #c99e4c;
  --accent-soft: #f3e8cf;
  --hair: #d4d3c5;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 12px 40px rgba(23, 51, 45, 0.08);
  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, sans-serif;
}

html[data-theme="cedar"] {
  --paper: #f7f3ec;
  --surface: #ffffff;
  --surface-alt: #eee6da;
  --ink: #2b1d14;
  --muted: #665244;
  --brand: #8c3f22;
  --brand-deep: #2b1d14;
  --accent: #c47d3b;
  --accent-soft: #f4e4d4;
  --hair: #d7ccbe;
  --shadow: 0 12px 40px rgba(43, 29, 20, 0.08);
}

html[data-theme="slate"] {
  --paper: #f5f7fa;
  --surface: #ffffff;
  --surface-alt: #e9eef4;
  --ink: #16253b;
  --muted: #4d6078;
  --brand: #1c3d5a;
  --brand-deep: #102438;
  --accent: #3a7ca5;
  --accent-soft: #ddebf4;
  --hair: #cfd8e3;
  --shadow: 0 12px 40px rgba(22, 37, 59, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

em {
  font-style: italic;
  color: var(--brand);
}

/* --- Utilities --- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--brand);
  color: var(--surface);
  border-radius: var(--radius-sm);
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(100% - 2rem, 1160px);
  margin-inline: auto;
}

.band {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.band-alt {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: var(--surface-alt);
  border-block: 1px solid var(--hair);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.print-only {
  display: none;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.btn.primary {
  background: var(--brand);
  color: var(--surface);
  border-color: var(--brand);
}

.btn.primary:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: var(--surface);
}

.btn.ghost {
  background: transparent;
  color: var(--brand);
  border-color: var(--hair);
}

.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn.small {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
}

/* --- Cards & sheets --- */
.card,
.sheet {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem;
}

.sheet {
  padding: 1.5rem 1.75rem;
}

.grid-2 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* --- Masthead --- */
.mast {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hair);
}

.mast-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-agent {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.brand-broker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  padding: 0.35rem 0.25rem;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--brand);
  border-bottom-color: var(--accent);
}

.nav-cta {
  margin-left: 0.5rem;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--hair);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.65rem;
  cursor: pointer;
}

.menu-bars {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 6px 0 var(--ink), 0 -6px 0 var(--ink);
}

@media (max-width: 880px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--hair);
    box-shadow: var(--shadow);
    display: none;
    padding: 1rem 1.25rem 1.25rem;
  }

  .nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .nav-cta .btn {
    width: 100%;
  }
}

/* --- Footer --- */
.foot {
  background: var(--brand-deep);
  color: color-mix(in srgb, var(--surface) 92%, transparent);
  margin-top: auto;
}

.foot a {
  color: var(--accent-soft);
}

.foot a:hover {
  color: var(--accent);
}

.foot-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 2.5rem 0 2rem;
}

.foot-agent-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.foot-agent-title,
.foot-license,
.foot-address {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--surface) 75%, transparent);
}

.foot-nav ul,
.foot-socials {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot-nav li + li,
.foot-socials li + li {
  margin-top: 0.35rem;
}

.foot-nav-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 0.75rem;
}

.foot-compliance {
  border-top: 1px solid color-mix(in srgb, var(--surface) 15%, transparent);
}

.foot-compliance-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 0 1.5rem;
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--surface) 70%, transparent);
}

.eho {
  font-size: 1.25rem;
  line-height: 1;
}

@media (max-width: 768px) {
  .foot-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Theme switcher --- */
.theme-switcher {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 90;
  display: flex;
  gap: 0;
  padding: 0.2rem;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.theme-btn {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.7rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.theme-btn[aria-pressed="true"] {
  background: var(--brand);
  color: var(--surface);
}

.theme-btn:hover:not([aria-pressed="true"]) {
  color: var(--brand);
}

/* --- Hero --- */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.hero-copy .deck {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 42ch;
}

.hero-plate {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--hair);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-plate figure {
  margin: 0;
}

.hero-plate img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.hero-plate-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 0.5rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-plate-controls button {
  pointer-events: auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--hair);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.hero-caption {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--hair);
  background: var(--surface-alt);
  font-size: 0.9rem;
}

.hero-caption strong {
  display: block;
  font-family: var(--font-display);
}

.agent-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 0.5rem 0.75rem 0.5rem 0.5rem;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 999px;
  font-size: 0.85rem;
}

.agent-chip img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.proof-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hair);
}

.proof-bar dt {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.proof-bar dd {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
  }

  .proof-bar {
    grid-template-columns: 1fr;
  }
}

/* --- Property collection --- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filters button,
.filters [role="tab"] {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.filters button[aria-selected="true"],
.filters button.is-active {
  background: var(--brand);
  color: var(--surface);
  border-color: var(--brand);
}

.properties {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.property-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.property-photo {
  position: relative;
  margin: 0;
}

.property-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.property-state {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--surface);
}

.property-body {
  padding: 1rem 1.1rem 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.property-body .price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.property-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.75rem 0;
}

.save-home {
  margin-top: auto;
  align-self: flex-start;
}

.portfolio-dialog {
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 0;
  max-width: min(96vw, 720px);
  box-shadow: var(--shadow);
}

.portfolio-dialog::backdrop {
  background: rgba(11, 43, 38, 0.45);
}

.portfolio-dialog article {
  padding: 1.5rem;
}

.portfolio-dialog table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.portfolio-dialog th,
.portfolio-dialog td {
  border: 1px solid var(--hair);
  padding: 0.5rem 0.65rem;
  text-align: left;
}

/* --- Neighborhood atlas --- */
.atlas-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.atlas-tabs button {
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: var(--surface);
  cursor: pointer;
}

.atlas-tabs button[aria-selected="true"] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--brand-deep);
}

.atlas-panel[hidden] {
  display: none;
}

.atlas-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.atlas-photo img {
  border-radius: var(--radius);
  border: 1px solid var(--hair);
}

.atlas-story .tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.atlas-stopover {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .atlas-panel {
    grid-template-columns: 1fr;
  }
}

/* --- Tool showcase --- */
.tool-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.tool-card h3 {
  margin-bottom: 0.5rem;
}

@media (max-width: 640px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Agent story --- */
.agent-story {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 2rem;
  align-items: start;
}

.story-portrait img {
  border-radius: var(--radius);
  border: 1px solid var(--hair);
}

.agent-story blockquote {
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent);
  background: var(--surface-alt);
  font-family: var(--font-display);
  font-size: 1.15rem;
}

@media (max-width: 640px) {
  .agent-story {
    grid-template-columns: 1fr;
  }
}

/* --- Move planner --- */
.move-planner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.planner-frame {
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.25rem;
}

.planner-paper {
  background: var(--surface-alt);
  border: 1px dashed var(--hair);
  border-radius: var(--radius-sm);
  padding: 1rem;
  min-height: 200px;
}

.move-planner label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.move-planner input,
.move-planner select,
.move-planner textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--hair);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  background: var(--surface);
  color: var(--ink);
}

#review {
  list-style: none;
  margin: 0;
  padding: 0;
}

#review li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--hair);
  font-size: 0.9rem;
}

.progress-bar {
  height: 8px;
  background: var(--hair);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.75rem;
}

.progress-bar > span {
  display: block;
  height: 100%;
  background: var(--accent);
  width: var(--progress, 0%);
  transition: width 0.2s;
}

@media (max-width: 768px) {
  .move-planner {
    grid-template-columns: 1fr;
  }
}

/* --- Second look --- */
.sl-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
}

.cutaway-scroll {
  overflow: auto;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--surface);
}

.cutaway {
  position: relative;
  min-width: min(100%, 1000px);
}

.cutaway img {
  width: 100%;
}

.pin {
  position: absolute;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid var(--surface);
  background: var(--brand);
  color: var(--surface);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
}

.pin:hover,
.pin.is-active {
  background: var(--accent);
  color: var(--ink);
}

.pin.is-marked {
  outline: 3px solid var(--accent);
}

.point-card {
  padding: 1rem 1.25rem;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--surface);
}

.status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.75rem 0;
}

.status-pills span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--hair);
}

.tick-groups {
  margin-top: 1rem;
}

.tick-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--hair);
}

.tick-item input {
  margin-top: 0.2rem;
}

@media (max-width: 900px) {
  .sl-layout {
    grid-template-columns: 1fr;
  }
}

/* --- Work-back plan --- */
.mode-toggle {
  display: inline-flex;
  border: 1px solid var(--hair);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.mode-toggle button {
  border: none;
  background: var(--surface);
  padding: 0.45rem 1rem;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.mode-toggle button[aria-pressed="true"] {
  background: var(--brand);
  color: var(--surface);
}

.clock {
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.25rem;
}

.clock-row {
  display: grid;
  grid-template-columns: 140px 1fr 100px;
  gap: 0.75rem;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--hair);
  font-size: 0.9rem;
}

.clock-bar-wrap {
  background: var(--surface-alt);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.clock-bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: 999px;
}

.clock-days-input {
  width: 4rem;
  font-family: var(--font-body);
  padding: 0.25rem 0.35rem;
  border: 1px solid var(--hair);
  border-radius: var(--radius-sm);
}

.clock-dates {
  font-size: 0.8rem;
  color: var(--muted);
}

.notice {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .clock-row {
    grid-template-columns: 1fr;
  }
}

/* --- Local guides --- */
.journal-feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.reading-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.reading-card {
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s;
}

.reading-card:hover {
  box-shadow: var(--shadow);
}

.story-cover img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.reading-card h3 {
  padding: 0.75rem 1rem 1rem;
  font-size: 1rem;
  margin: 0;
}

.reading-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
}

.reading-side {
  position: sticky;
  top: 5rem;
  align-self: start;
}

.reading-index {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.reading-index a {
  display: block;
  padding: 0.35rem 0;
  text-decoration: none;
  color: var(--muted);
}

.reading-index a:hover,
.reading-index a[aria-current="true"] {
  color: var(--brand);
}

.reading-copy {
  max-width: 65ch;
}

@media (max-width: 768px) {
  .journal-feature,
  .reading-layout {
    grid-template-columns: 1fr;
  }

  .reading-side {
    position: static;
  }
}

/* --- Outreach studio --- */
.studio-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
}

.studio-brief textarea {
  width: 100%;
  min-height: 120px;
  font-family: var(--font-body);
  padding: 0.75rem;
  border: 1px solid var(--hair);
  border-radius: var(--radius-sm);
}

.studio-letter {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 1.5rem;
  min-height: 280px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.studio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.draft-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  font-size: 0.9rem;
}

.draft-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--hair);
}

@media (max-width: 768px) {
  .studio-layout {
    grid-template-columns: 1fr;
  }
}

/* --- About --- */
.profile-cover {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 2rem;
  align-items: start;
}

.profile-cover img {
  border-radius: var(--radius);
  border: 1px solid var(--hair);
}

.profile-notes {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.profile-address {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 1rem;
  padding: 1rem;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
}

@media (max-width: 640px) {
  .profile-cover {
    grid-template-columns: 1fr;
  }
}

/* --- Forms (global) --- */
button,
input,
select,
textarea {
  font-family: inherit;
}

/* --- Print --- */
@media print {
  .no-print {
    display: none !important;
  }

  .print-only {
    display: block !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
    line-height: 1.4;
  }

  .mast,
  .theme-switcher,
  .foot {
    display: none !important;
  }

  .band,
  .band-alt {
    padding: 0.5rem 0;
    background: transparent;
    border: none;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  .sheet,
  .card,
  .clock,
  .planner-frame {
    box-shadow: none;
    border: 1px solid #333;
    page-break-inside: avoid;
  }

  table {
    width: 100%;
    border-collapse: collapse;
  }

  th,
  td {
    border: 1px solid #333;
    padding: 0.35rem 0.5rem;
    text-align: left;
  }

  h1,
  h2,
  h3 {
    color: #000;
    page-break-after: avoid;
  }
}