/* ---- client-site-kit: review marks and utilities (keep at the top of every site's style.css) ---- */
.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; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: .75rem 1rem; background: #000; color: #fff; }
.skip-link:focus { left: 1rem; top: 1rem; }
.hp { position: absolute; left: -9999px; }
.concept-strip { background: #fff8d6; color: #3b3200; font: 500 .82rem/1.4 system-ui, sans-serif; padding: .45rem 1rem; text-align: center; border-bottom: 1px solid #e6d78a; }
.concept-strip a { color: inherit; font-weight: 700; }
.mark-toggle { font: inherit; font-weight: 700; background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; }
.prov { text-decoration: underline dotted 2px; text-decoration-color: #c08a00; text-underline-offset: .18em; cursor: help; }
.todo { background: #ffe14d; color: #222; padding: 0 .25em; border-radius: 2px; }
body.clean .prov { text-decoration: none; cursor: auto; }
body.clean .todo { background: none; color: inherit; padding: 0; }
body.clean .review-only { display: none; }
.form-status:empty { display: none; }
.form-status { margin-top: 1rem; padding: .75rem 1rem; border-radius: 4px; }
.form-status.ok { background: #e3f4e6; color: #14532d; }
.form-status.err { background: #fde8e8; color: #7f1d1d; }
.cookie-banner { position: fixed; inset: auto 1rem 1rem 1rem; z-index: 50; max-width: 40rem; margin: 0 auto; background: #fff; color: #111; padding: 1rem 1.25rem; box-shadow: 0 8px 30px rgba(0,0,0,.2); }
/* ---- end review marks ---- */

/* ---- Magnacourt: pattern-book layout (numbered plates, gabled cards, roofline dividers, elevation drawing) ---- */
@font-face { font-family: "Gelasio"; src: url("../fonts/gelasio-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
:root { --ink: #2b2a26; --stone: #ece6da; --stone-2: #ddd4c3; --heather: #5d4a66; --pine: #2f4a3a; --tile: #a24d32; --serif: "Gelasio", Georgia, serif; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font: 400 1.06rem/1.7 "Hanken Grotesk", system-ui, sans-serif; color: var(--ink); background: var(--stone); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pine); text-decoration-color: var(--tile); text-underline-offset: .2em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
.wrap, .container { width: min(1160px, 100% - 2.5rem); margin: 0 auto; }
.narrow { width: min(800px, 100% - 2.5rem); margin: 0 auto; }
.center { text-align: center; }
.btn { display: inline-flex; align-items: center; font: 600 1rem/1 "Hanken Grotesk", sans-serif; padding: 1rem 1.5rem; background: var(--tile); color: #fff; text-decoration: none; }
.btn:hover { background: #82381f; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.center .btn-row { justify-content: center; }
.plate-no { font: italic 700 1rem var(--serif); color: var(--tile); letter-spacing: .04em; margin-bottom: .4rem; }
.plate-no::before, .plate-no::after { content: "\2014"; margin: 0 .5rem; color: var(--stone-2); }
.roofline { display: block; width: 100%; height: 44px; color: var(--ink); }

/* header */
.site-header { background: var(--stone); position: sticky; top: 0; z-index: 20; border-bottom: 1.5px solid var(--ink); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 1rem; }
.logo img { width: 230px; }
.site-nav ul { list-style: none; display: flex; margin: 0; padding: 0; }
.site-nav a { display: block; padding: .55rem .8rem; font-size: .97rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--tile); }
.site-nav a[aria-current] { color: var(--tile); background: linear-gradient(var(--tile), var(--tile)) center bottom / 60% 2px no-repeat; }
.nav-toggle { display: none; font: 600 1rem "Hanken Grotesk"; background: var(--ink); color: var(--stone); border: 0; padding: .6rem 1rem; }

/* hero: title page with elevation drawing and photograph */
.title-page { padding: clamp(3rem, 7vw, 5.5rem) 0 0; }
.title-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.title-grid .lede { font-size: 1.2rem; max-width: 34rem; }
.elevation { width: 100%; max-width: 420px; color: var(--ink); margin-top: 1.5rem; }
.gable { clip-path: polygon(50% 0, 100% 22%, 100% 100%, 0 100%, 0 22%); }
.hero-photo { aspect-ratio: 4/5; background: var(--ink) var(--img) center/cover; }

/* plates */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.plates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.plate { background: #f7f3eb; border: 1.5px solid var(--ink); padding: 0 0 1.4rem; text-align: center; }
.plate .pic { aspect-ratio: 5/4; background: var(--ink) var(--img) center/cover; border-bottom: 1.5px solid var(--ink); }
.plate .gable-top { height: 46px; background: var(--ink); clip-path: polygon(50% 0, 100% 100%, 0 100%); margin: -1px -1px 0; }
.plate h3 { margin: 1.1rem 1.2rem .4rem; }
.plate p { margin: 0 1.4rem; }
.plate .plate-no { margin-top: 1rem; }
.pine { background: var(--pine); color: #dfe6df; }
.pine h2, .pine h3 { color: #fff; }
.pine a { color: #fff; }
.pine .roofline { color: #9fb3a5; }
.photo { aspect-ratio: 4/3; background: var(--ink) var(--img) center/cover; border: 1.5px solid var(--ink); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split.flip > :first-child { order: 2; }
.anchor { scroll-margin-top: 110px; }
.ticks { list-style: none; padding: 0; margin: .8rem 0 0; }
.ticks li { padding: .35rem 0 .35rem 1.8rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .75rem; width: 14px; height: 10px; background: var(--tile); clip-path: polygon(50% 0, 100% 50%, 100% 100%, 0 100%, 0 50%); }
.table { width: 100%; border-collapse: collapse; background: #f7f3eb; border: 1.5px solid var(--ink); }
.table th, .table td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--stone-2); vertical-align: top; }
.course { counter-reset: c; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.course li { counter-increment: c; padding: 1.4rem 1.1rem; background: #f7f3eb; border: 1.5px solid var(--ink); margin: 0 -1.5px -1.5px 0; }
.course li:nth-child(even) { transform: translateY(2.2rem); }
.course li::before { content: counter(c, upper-roman); display: block; font: 700 1.7rem/1 var(--serif); color: var(--tile); margin-bottom: .6rem; }
.course strong { font-family: var(--serif); font-size: 1.12rem; display: block; margin-bottom: .2rem; }

/* inner page heroes */
.page-hero { padding: clamp(2.8rem, 6vw, 4.5rem) 0 0; text-align: center; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 22ch; margin: 0 auto .4em; }
.page-hero p { max-width: 42rem; margin: 0 auto 1.2rem; font-size: 1.12rem; }
.page-hero::after { content: ""; display: block; height: 44px; margin-top: 1.2rem; background: linear-gradient(transparent 42px, var(--ink) 42px); }
.breadcrumb { font: italic 700 .95rem var(--serif); color: var(--tile); }
.card { background: #f7f3eb; border: 1.5px solid var(--ink); padding: 1.8rem clamp(1.2rem, 3vw, 2.2rem); }

/* prose / legal */
.prose { padding: 3.5rem 0 4.5rem; }
.prose .narrow { background: #f7f3eb; border: 1.5px solid var(--ink); padding: 2.5rem clamp(1.25rem, 4vw, 3rem); }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .96rem; }
.prose th, .prose td { text-align: left; border-bottom: 1px solid var(--stone-2); padding: .6rem .5rem; vertical-align: top; }
.prose th { width: 34%; }
.notice { border-left: 4px solid var(--tile); background: var(--stone); padding: 1rem 1.2rem; margin: 1rem 0 1.5rem; }
.updated, .hint { font-size: .92rem; color: #5c5a52; }
.toc ol { columns: 2; }
.sitemap-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
details { border-bottom: 1px solid var(--stone-2); padding: 1rem 0; }
summary { font: 700 1.15rem/1.35 var(--serif); cursor: pointer; }
details div { padding-top: .6rem; }

/* forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; background: #f7f3eb; border: 1.5px solid var(--ink); padding: 1.8rem; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .3rem; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; font: inherit; padding: .7rem .8rem; border: 1px solid #b9b09f; background: #fff; }
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus { outline: 3px solid #e6b9a7; border-color: var(--tile); }
.form-grid textarea { min-height: 140px; }

/* footer */
.cta { padding: 0 0 3.5rem; text-align: center; }
.cta-inner { padding-top: 2rem; }
.cta h2 { max-width: 24ch; margin: 0 auto .4rem; }
.cta .btn-row { justify-content: center; margin-top: 1rem; }
.site-footer { background: var(--ink); color: #cfc9bc; padding: 3.2rem 0 1.4rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 2.5rem; }
.foot-brand img { margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul.cols { columns: 2; }
.site-footer li { margin-bottom: .45rem; }
.site-footer li a { text-decoration: none; }
.footer-heading { font: italic 700 1rem var(--serif); color: #e0a58d; }
.footer-legal { margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid #4a4840; font-size: .82rem; }

@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--stone); border-bottom: 1.5px solid var(--ink); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: .5rem 1.25rem 1rem; }
  .header-inner { position: relative; }
}
@media (max-width: 860px) {
  .title-grid, .plates, .split, .foot-grid, .form-grid, .sitemap-cols, .course { grid-template-columns: 1fr; }
  .course li:nth-child(even) { transform: none; }
  .split.flip > :first-child { order: 0; }
  .hero-photo { aspect-ratio: 4/3; }
  .logo img { width: 190px; }
  .site-footer ul.cols, .toc ol { columns: 1; }
}
