/* The Measured Plate — series pages. Self-contained: does not use the main site stylesheet. */
:root {
    --navy: #0F2A3D;
    --navy-d: #0A1E2C;
    --teal: #1F7A7A;
    --teal-l: #DCEBE9;
    --gold: #F2B544;
    --gold-l: #FBE3B5;
    --coral: #E4572E;
    --cream: #FBF6EA;
    --ink: #1B2B38;
    --muted: #4A5B68;
    --line: #D9DFE3;
    --serif: Georgia, 'Times New Roman', serif;
    --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    font-size: 19px;               /* large type: most readers are over 60 */
    line-height: 1.6;
    color: var(--ink);
    background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .6rem 1rem; z-index: 50; }

/* header */
.mp-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; }
.mp-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; flex-wrap: wrap; padding-block: .5rem; }
.mp-brand { color: var(--gold); text-decoration: none; font-weight: bold; letter-spacing: .28em; font-size: .95rem; white-space: nowrap; }
.mp-nav { display: flex; gap: 1.6rem; list-style: none; flex-wrap: wrap; }
.mp-nav a { color: #fff; text-decoration: none; font-size: 1rem; padding: .4rem 0; border-bottom: 2px solid transparent; }
.mp-nav a:hover, .mp-nav a[aria-current="page"] { border-bottom-color: var(--gold); }

/* buttons */
.btn {
    display: inline-block; font-family: var(--sans); font-size: 1.05rem; font-weight: bold; text-decoration: none;
    padding: .85rem 1.5rem; border-radius: 10px; border: 2px solid transparent; cursor: pointer; line-height: 1.2;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #e9a82e; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: #17605f; }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: rgba(255, 255, 255, .12); }
.btn[aria-disabled="true"] { background: #C9D3D8; color: var(--navy); cursor: default; }

/* hero */
.hero { background: var(--navy); color: #fff; padding: 3.5rem 0 4rem; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.kicker { color: var(--gold); font-weight: bold; letter-spacing: .22em; font-size: .85rem; text-transform: uppercase; margin-bottom: 1rem; }
h1 { font-family: var(--serif); font-size: clamp(2.2rem, 4.6vw, 3.5rem); line-height: 1.12; margin-bottom: 1.2rem; }
.hero p { font-size: 1.25rem; color: #E6EDF1; max-width: 34em; margin-bottom: 1.8rem; }
.hero .actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero .cover { justify-self: center; width: min(360px, 100%); border-radius: 6px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }

/* sections */
section { padding: 4rem 0; }
section.tint { background: var(--cream); }
h2 { font-family: var(--serif); font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.18; color: var(--navy); margin-bottom: .8rem; }
h3 { font-size: 1.25rem; color: var(--navy); margin-bottom: .4rem; line-height: 1.3; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 40em; margin-bottom: 2.2rem; }
.rule { width: 72px; height: 5px; background: var(--gold); border-radius: 3px; margin-bottom: 1.2rem; }

/* printables */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.card {
    background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column;
    box-shadow: 0 2px 10px rgba(15, 42, 61, .06);
}
.card .thumb { background: var(--teal-l); padding: 1.1rem 1.1rem 0; height: 215px; overflow: hidden; }
.card .thumb img { width: 100%; border-radius: 4px 4px 0 0; box-shadow: 0 4px 16px rgba(15, 42, 61, .22); }
.card .body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card p { color: var(--muted); font-size: 1rem; flex: 1; }
.card .meta { font-size: .9rem; color: var(--muted); }
.card .btn { align-self: flex-start; }
.allrow { margin-top: 2.2rem; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; padding: 1.4rem 1.6rem; background: var(--navy); color: #fff; border-radius: 14px; }
.allrow p { flex: 1; min-width: 16em; }
.notes { margin-top: 1.6rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; list-style: none; }
.notes li { border-left: 5px solid var(--teal); padding: .2rem 0 .2rem 1rem; color: var(--muted); font-size: 1rem; }
.notes strong { color: var(--navy); display: block; }

/* evidence */
.evidence { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.3rem; margin-bottom: 2rem; }
.stat { background: #fff; border-radius: 14px; border-top: 7px solid var(--teal); padding: 1.4rem 1.5rem; box-shadow: 0 2px 10px rgba(15, 42, 61, .07); }
.stat:nth-child(2) { border-top-color: var(--gold); }
.stat:nth-child(3) { border-top-color: var(--coral); }
.stat b { display: block; font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--navy); margin-bottom: .4rem; }
.stat span { color: var(--muted); font-size: 1.02rem; }

/* book rows */
.book { display: grid; grid-template-columns: 300px 1fr; gap: 2.6rem; align-items: start; }
.book img { border-radius: 6px; box-shadow: 0 14px 40px rgba(15, 42, 61, .25); }
.tag { display: inline-block; background: var(--gold-l); color: var(--navy); font-weight: bold; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; margin-bottom: .9rem; }
.ticks { list-style: none; margin: 1.1rem 0 1.6rem; display: grid; gap: .55rem; }
.ticks li { padding-left: 1.7rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: .8rem; height: .8rem; border-radius: 50%; background: var(--coral); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem 1.6rem; }
.panel ul { margin: .6rem 0 0 1.2rem; display: grid; gap: .4rem; }
.figure { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--cream); }
.figure figcaption { padding: .7rem 1rem; font-size: .95rem; color: var(--muted); background: #fff; border-top: 1px solid var(--line); }
.coming { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.coming div { border: 2px dashed var(--line); border-radius: 14px; padding: 1.3rem 1.4rem; color: var(--muted); }

/* footer */
.mp-footer { background: var(--navy-d); color: #C9D6DE; padding: 2.6rem 0; font-size: .98rem; }
.mp-footer .wrap { display: grid; gap: 1.1rem; }
.mp-footer a { color: var(--gold); }
.mp-footer .legal { border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 1.1rem; display: flex; gap: 1.4rem; flex-wrap: wrap; }

@media (max-width: 860px) {
    body { font-size: 18px; }
    .hero .wrap, .book, .two { grid-template-columns: 1fr; }
    .hero .cover { width: min(280px, 80%); }
    .book img { width: min(280px, 80%); }
    .mp-header { position: static; }
    section { padding: 3rem 0; }
}

@media print {
    .mp-header, .mp-footer, .btn { display: none; }
}
