@font-face {
    font-family: "Barlow Condensed";
    src: url("/fonts/BarlowCondensed-Bold.ttf") format("truetype");
    font-display: swap;
    font-style: normal;
    font-weight: 700;
}

:root {
    --ink: #26302a;
    --olive: #384935;
    --paper: #f3f0e6;
    --card: #fbf9f1;
    --line: #c9c9ba;
    --muted: #535e51;
    --rust: #90452d;
    --gold: #e8bc77;
    --mono: "IBM Plex Mono",Consolas,"Courier New",monospace;
    --display: "Barlow Condensed","Arial Narrow",sans-serif;
    --serif: Baskervville,Georgia,serif;
    --body: "Source Sans 3","Segoe UI",Arial,sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-padding-top: 20px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    line-height: 1.55;
}

a {
    color: inherit;
}

button,input {
    font: inherit;
}

a:focus-visible,button:focus-visible,input:focus-visible {
    outline: 3px solid #bc642d;
    outline-offset: 4px;
}

.wrap {
    width: min(1240px,calc(100% - clamp(32px,8.6vw,144px)));
    margin-inline: auto;
}

.mast {
    background: #222c24;
    color: #f7f2df;
    border-bottom: 1px solid #596457;
}

.mast-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    white-space: nowrap;
    font: 700 clamp(18px,2vw,27px)/1 var(--display);
    letter-spacing: .025em;
}

.brand b {
    font: 700 .75em var(--display);
    color: var(--gold);
    padding-left: 8px;
    border-left: 1px solid #75806d;
    margin-left: 6px;
}

.insignia {
    display: grid;
    place-items: center;
    position: relative;
    width: 37px;
    height: 42px;
    clip-path: polygon(0 4%,100% 4%,100% 65%,50% 100%,0 65%);
    background: var(--gold);
    color: #eac994;
}

.insignia:before {
    content: "";
    position: absolute;
    inset: 2px;
    background: #2b392c;
    clip-path: inherit;
}

.insignia:after {
    content: "";
    position: absolute;
    bottom: 8px;
    width: 21px;
    height: 14px;
    background: #eac994;
    clip-path: polygon(0 0,50% 50%,100% 0,100% 23%,50% 74%,0 23%);
}

.insignia i {
    position: relative;
    font: 17px Georgia,serif;
    align-self: start;
    margin-top: 4px;
}

.mast nav {
    display: flex;
    align-items: center;
    gap: clamp(18px,3vw,42px);
    font: 600 14px var(--body);
}

.mast nav a {
    text-decoration: none;
    padding: 6px 0;
    color: #dadfd0;
}

.mast nav a:hover,.mast nav a[aria-current] {
    color: #f4ce8b;
}

.mast nav a[aria-current]:not(.inspector-nav) {
    box-shadow: 0 2px var(--gold);
}

.mast nav .inspector-nav {
    border: 1px solid #89967c;
    padding: 9px 15px;
    color: #f8f1d9;
}

.inspector-nav span {
    color: var(--gold);
    padding-left: 7px;
}

.skip {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 5;
    background: white;
    color: black;
    padding: 8px;
}

.skip:focus {
    top: 8px;
}

.cover {
    background: #293829;
    color: #f9f3da;
    overflow: hidden;
    border-bottom: 5px solid #a88250;
}

.cover-inner {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 43% 57%;
    min-height: 448px;
}

.cover-copy {
    position: relative;
    z-index: 1;
    align-self: center;
    padding: 46px 0 48px;
}

.cover-copy h1 {
    font: 700 clamp(62px,6.1vw,93px)/.91 var(--display);
    text-transform: uppercase;
    letter-spacing: -.018em;
    margin: 21px 0 19px;
}

.cover-copy p {
    font-size: clamp(16px,1.2vw,19px);
    line-height: 1.48;
    max-width: 415px;
    color: #e0e4cf;
    margin: 0 0 24px;
}

.cover-art {
    position: relative;
    align-self: stretch;
    margin: 0 -12vw 0 -7%;
    z-index: 0;
}

.cover-art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 53%;
}

.cover-art:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,#293829 0%,rgba(41,56,41,.75) 7%,transparent 30%);
}

.corner {
    position: absolute;
    z-index: 1;
    width: 14px;
    height: 14px;
    border-color: #e4c598;
    opacity: .85;
}

.corner.nw {
    left: 13%;
    top: 24px;
    border-top: 1px solid;
    border-left: 1px solid;
}

.corner.se {
    right: calc(12vw + 4px);
    bottom: 24px;
    border-bottom: 1px solid;
    border-right: 1px solid;
}

.eyebrow,.field-label,.topic small,.index-card small,.filter-bar>span {
    font: 700 11px/1.4 var(--mono);
    text-transform: uppercase;
    letter-spacing: .12em;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--rust);
}

.eyebrow i {
    display: inline-block;
    width: 25px;
    border-top: 2px solid currentColor;
}

.eyebrow.light {
    color: #e8c68d;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    padding: 12px 19px;
    font: 700 15px/1.4 var(--body);
    border-radius: 2px;
}

.button span,.text-link span,.topic-action b {
    font-size: 19px;
    line-height: 1;
}

.button.gold {
    background: var(--gold);
    color: #263021;
}

.button.gold:hover {
    background: #f5d39c;
}

.button.dark {
    background: var(--olive);
    color: white;
}

.button.dark:hover {
    background: #243327;
}

.guide-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.guide-steps {
    display: inline-grid;
    max-width: 100%;
    gap: 8px;
}

.guide-steps .button {
    justify-content: space-between;
}

.recipe-guide .doc-section h3 {
    margin: 1.4em 0 .4em;
    font-size: 1.18rem;
}

.recipe-guide ol {
    padding-inline-start: 1.5em;
}

.recipe-guide li + li {
    margin-top: .45em;
}

.recipe-guide .doc-section p {
    white-space: normal;
}

.recipe-guide .contents nav {
    max-height: calc(100dvh - 6rem);
    overflow-y: auto;
}

.recipe-guide .capture-links {
    margin: 0 0 5px;
    padding-left: 14px;
    list-style: none;
    border-left: 1px solid var(--line);
}
.recipe-guide .capture-links a {
    font-size: 13px;
    padding-block: 4px;
}

.text-link,.topic-action {
    font: 700 14px var(--body);
    color: var(--olive);
    text-decoration: none;
}

.text-link:hover,.all-topics:hover {
    text-decoration: underline;
}

.text-link span {
    margin-left: 5px;
}

.home-section {
    padding-block: 49px 65px;
}

.example-map {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 275px), 1fr));
    gap: clamp(20px, 4vw, 48px);
    align-items: center;
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.example-map img {
    display: block;
    width: 100%;
    height: auto;
}

.example-map h3 {
    margin: 0;
    font: normal clamp(26px, 3vw, 38px)/1.13 var(--serif);
}

.example-map h3 a {
    text-decoration-thickness: 1px;
    text-underline-offset: .14em;
}

.home-examples-heading {
    margin-top: 48px;
}

.example-jumps {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding-bottom: 22px;
}

.example-jumps a,.map-entry a:not(.button),.example-launch a {
    color: var(--olive);
    text-underline-offset: .18em;
}

.map-entry {
    padding: clamp(24px, 3vw, 42px) 0;
    border-top: 2px solid var(--olive);
    scroll-margin-top: 12px;
}

.map-heading {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.map-heading h2 {
    margin: 0;
    font: normal clamp(32px, 4vw, 49px)/1.1 var(--serif);
    letter-spacing: -.035em;
}

.map-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 23px);
}

.map-gallery figure {
    margin: 0;
}

.map-gallery a,.map-gallery img {
    display: block;
}

.map-gallery img {
    width: 100%;
    height: auto;
}

.map-gallery figcaption {
    padding: 6px 0;
    font-size: .9rem;
    color: var(--muted);
}

.map-entry h3 {
    font: 700 1.35rem/1.25 var(--display);
    margin: 24px 0 8px;
}

.map-entry h3 span {
    display: inline-block;
    margin-left: 8px;
    padding-left: 10px;
    border-left: 1px solid var(--line);
    font: normal 1.22rem var(--serif);
}

.map-entry > p,.example-launch p {
    max-width: 83ch;
    margin: 8px 0 12px;
}

.entity-examples {
    display: grid;
    grid-template-columns: minmax(145px, 1fr) minmax(0, 3fr);
    margin: 12px 0 0;
}

.entity-examples dt,.entity-examples dd {
    margin: 0;
    border-top: 1px solid var(--line);
    padding: 13px 0;
}

.entity-examples dt {
    color: var(--olive);
    font-weight: 700;
    padding-right: 24px;
}

.example-library code {
    font: .89em var(--mono);
    overflow-wrap: anywhere;
}

.passage-example {
    display: inline-block;
    margin-top: 12px;
}

.example-launch {
    border-left: 3px solid var(--olive);
    background: #e7eadc;
    padding: 18px clamp(16px, 3vw, 32px);
}

.example-launch h2 {
    margin: 0 0 10px;
    font: normal 1.65rem var(--serif);
}

.section-heading,.report-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.section-heading {
    margin-bottom: 22px;
}

.section-heading h2,.report-block h2,.field-note h2,.doc-section h2 {
    font: normal clamp(29px,3.1vw,44px)/1.13 var(--serif);
    letter-spacing: -.036em;
    margin: 8px 0 0;
}

.section-heading>a {
    padding-bottom: 6px;
}

.topic-grid,.index-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 17px;
}

.topic,.index-card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    text-decoration: none;
    position: relative;
    transition: background .15s,border-color .15s;
}

.topic {
    padding: 22px 24px 20px;
    border-top: 3px solid #697854;
}

.topic:hover,.index-card:hover {
    background: #fffdf4;
    border-color: #7d8979;
}

.topic-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topic small,.index-card small {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .085em;
}

.topic h3,.index-card h2 {
    font: normal 28px/1.14 var(--serif);
    letter-spacing: -.035em;
    margin: 22px 0 8px;
}

.topic p,.index-card p {
    font-size: 15px;
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.topic-action {
    margin-top: auto;
    padding-top: 21px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tool-card {
    border-top-color: #9f6142;
}

.tool-card .glyph {
    color: #8b5239;
    background: #eee1cd;
}

.glyph {
    display: inline-block;
    position: relative;
    width: 39px;
    height: 39px;
    background: #e3e5d5;
    color: #4a5b42;
    border-radius: 2px;
}

.glyph:before,.glyph:after {
    position: absolute;
    content: "";
}

.glyph.flag:before {
    width: 2px;
    height: 22px;
    background: currentColor;
    left: 11px;
    top: 9px;
}

.glyph.flag:after {
    width: 16px;
    height: 12px;
    left: 13px;
    top: 9px;
    background: currentColor;
    clip-path: polygon(0 0,100% 10%,78% 58%,100% 100%,0 90%);
}

.glyph.door:before {
    inset: 7px 10px;
    border: 2px solid;
}

.glyph.door:after {
    inset: 9px 13px 9px 12px;
    background: currentColor;
    clip-path: polygon(0 0,78% 17%,78% 85%,0 100%);
}

.glyph.file:before {
    inset: 7px 11px;
    border: 2px solid;
}

.glyph.file:after {
    width: 10px;
    height: 6px;
    left: 15px;
    top: 16px;
    border-block: 1px solid;
}

footer {
    border-top: 1px solid var(--line);
    background: #e9e9dc;
    color: #4c5649;
}

footer .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 24px 0;
    font: 700 11px var(--mono);
    letter-spacing: .045em;
}

footer b {
    color: #a4784f;
}

footer a {
    font: 600 13px var(--body);
    text-decoration: none;
}

.inner-page {
    padding: 29px 0 70px;
    min-height: calc(100vh - 141px);
}

.breadcrumb,.crumb-end {
    font: 600 12px var(--body);
    color: #626e5e;
}

.breadcrumb {
    text-decoration: none;
}

.breadcrumb:hover {
    text-decoration: underline;
}

.page-title {
    padding: 36px 0 24px;
}

.page-title h1 {
    font: 700 clamp(46px,6vw,76px)/1.01 var(--display);
    letter-spacing: -.012em;
    margin: 12px 0 12px;
    overflow-wrap: anywhere;
}

.page-title p {
    max-width: 75ch;
    color: var(--muted);
    margin: 0;
    font-size: 18px;
}

.search-form {
    max-width: 640px;
}

.search-form label,.field-label {
    display: block;
    font: 700 14px var(--body);
    margin-bottom: 6px;
}

.search-row {
    display: flex;
    gap: 8px;
}

.search-row input {
    min-width: 0;
    flex: 1;
    padding: 10px 13px;
    border: 1px solid #9ea997;
    background: var(--card);
    border-radius: 1px;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    border-bottom: 1px solid var(--line);
    margin: 25px 0 16px;
    padding-bottom: 10px;
}

.filter-bar a {
    padding: 6px 13px;
    border-radius: 2px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.filter-bar a[aria-current] {
    background: #dbe1d0;
    color: #293f2b;
}

.filter-bar>span {
    margin-left: auto;
    color: #606a5a;
}

.index-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
}

.index-card {
    padding: 20px 44px 22px 22px;
}

.index-card h2 {
    margin-top: 8px;
}

.index-card>span {
    position: absolute;
    right: 18px;
    top: 18px;
    color: #768069;
}

.doc-layout {
    display: grid;
    grid-template-columns: minmax(0,2.8fr) minmax(210px,1fr);
    gap: clamp(36px,7vw,100px);
}

.doc {
    min-width: 0;
}

.doc-section {
    border-top: 1px solid var(--line);
    padding: 24px 0 20px;
    scroll-margin: 16px;
}

.doc-section h2,.report-block h2,.field-note h2 {
    font-size: clamp(24px,2.5vw,32px);
    margin: 0 0 12px;
}

.doc-section p,.field-note p,.report-block li {
    line-height: 1.65;
}

.doc-section p {
    white-space: pre-line;
}

.doc-section pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    padding: 16px 20px;
    background: #26342b;
    color: #eeeace;
    border-left: 4px solid #a1ac79;
    font: 13px/1.55 var(--mono);
}

pre code,table code {
    font-family: var(--mono);
}

.contents {
    margin-top: 42px;
}

.contents>div {
    border-top: 3px solid #788568;
    position: sticky;
    top: 20px;
    padding: 15px 0;
}

.contents h2 {
    font: 700 12px var(--mono);
    letter-spacing: .09em;
    text-transform: uppercase;
}

.contents a {
    display: block;
    padding: 7px 0;
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none;
}

.contents .all-topics {
    margin-top: 12px;
    border-top: 1px solid var(--line);
    font-weight: 700;
}

.inspector-grid {
    display: grid;
    grid-template-columns: minmax(0,1.6fr) minmax(250px,1fr);
    gap: 24px;
}

.upload-form,.field-note {
    border: 1px solid var(--line);
    background: var(--card);
    padding: 24px;
}

.drop-target {
    border: 2px dashed #9ca68f;
    background: #f1f2e7;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 28px 12px;
}

.drop-target.drag {
    border-color: #516e45;
    background: #e0e8cf;
}

.drop-target strong {
    font: normal 24px/1.2 var(--serif);
}

.drop-target small {
    color: var(--muted);
    font-size: 13px;
}

.drop-target input {
    max-width: 100%;
    font-size: 14px;
}

.drop-target input::file-selector-button {
    border: 1px solid #83917d;
    background: #fffdf3;
    padding: 6px 11px;
    font: 600 13px var(--body);
    margin-right: 9px;
    cursor: pointer;
}

.upload-form>.button {
    margin-top: 14px;
}

.field-note {
    background: #e7eadc;
    border-top: 3px solid #748666;
}

.field-note p {
    font-size: 15px;
    margin: 11px 0;
}

.error-message {
    color: #7d2719;
    border-left: 3px solid var(--rust);
    background: #f6e4d5;
    padding: 12px;
    margin-bottom: 16px;
}

.report-head {
    align-items: center;
}

.report-head .button {
    flex-shrink: 0;
}

.report-block {
    margin: 8px 0 22px;
    padding: 23px;
    background: var(--card);
    border: 1px solid var(--line);
}

.report-block ul {
    padding-left: 22px;
    margin: 6px 0;
}

.report-block li+li {
    margin-top: 5px;
}

.table-scroll {
    overflow-x: auto;
}

.entity-list summary {
    font: 600 18px var(--body);
    cursor: pointer;
}

.entity-list[open] summary,
.entity-list table {
    margin-bottom: 14px;
}

.report-block h3 {
    margin: 22px 0 8px;
    font: 700 15px var(--body);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

th {
    font: 700 12px var(--mono);
    background: #e9eddf;
}

th,td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

td code {
    overflow-wrap: anywhere;
}

@media(max-width:800px) {
    .cover-inner {
        min-height: 380px;
        grid-template-columns: 49% 51%;
    }
    .cover-copy p {
        font-size: 16px;
    }
    .topic {
        padding: 16px;
    }
    .topic-grid,.index-grid {
        gap: 10px;
    }
    .topic h3 {
        font-size: 25px;
    }
    .doc-layout {
        grid-template-columns: minmax(0,1fr) 200px;
        gap: 26px;
    }
    .mast nav {
        gap: 16px;
    }
}

@media(max-width:620px) {
    .wrap {
        width: calc(100% - 32px);
    }
    .mast-inner {
        flex-wrap: wrap;
        gap: 0;
        padding: 10px 0 0;
    }
    .brand {
        font-size: 22px;
    }
    .insignia {
        width: 27px;
        height: 32px;
    }
    .insignia i {
        font-size: 13px;
        margin-top: 3px;
    }
    .insignia:after {
        width: 16px;
        height: 10px;
        bottom: 6px;
    }
    .mast nav {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        padding: 6px 0 8px;
        gap: 8px;
        font-size: 13px;
    }
    .mast nav .inspector-nav {
        border: 0;
        padding: 6px 0;
    }
    .cover-inner {
        display: block;
        padding: 0;
        min-height: auto;
    }
    .cover-copy {
        padding: 27px 0 22px;
    }
    .cover-copy h1 {
        font-size: 58px;
        margin: 13px 0;
    }
    .cover-copy p {
        margin-bottom: 15px;
    }
    .cover-art {
        margin: 0 -16px;
        height: 180px;
    }
    .cover-art:after {
        background: linear-gradient(#293829,transparent 22%);
    }
    .corner.nw {
        left: 16px;
        top: 12px;
    }
    .corner.se {
        right: 16px;
        bottom: 12px;
    }
    .home-section {
        padding: 29px 0 35px;
    }
    .section-heading {
        align-items: start;
        flex-direction: column;
        gap: 8px;
    }
    .topic-grid,.index-grid,.inspector-grid {
        grid-template-columns: 1fr;
    }
    .topic {
        padding: 16px 19px;
    }
    .topic h3 {
        margin-top: 12px;
    }
    .topic-action {
        padding-top: 12px;
    }
    .doc-layout {
        display: flex;
        flex-direction: column-reverse;
        gap: 0;
    }
    .contents {
        margin-top: 20px;
    }
    .contents>div {
        position: static;
        padding: 8px 0;
        columns: 2;
    }
    .contents h2 {
        column-span: all;
    }
    .contents a {
        font-size: 13px;
        padding: 4px 0;
        break-inside: avoid;
    }
    .recipe-guide .contents > div {
        columns: auto;
    }
    .recipe-guide .contents nav {
        columns: 2;
        column-gap: 16px;
        max-height: none;
        overflow: visible;
    }
    .contents .all-topics {
        display: none;
    }
    .page-title {
        padding: 24px 0 18px;
    }
    .inner-page {
        padding-top: 18px;
    }
    .page-title p {
        font-size: 16px;
    }
    .filter-bar {
        flex-wrap: wrap;
    }
    .filter-bar a {
        padding: 5px 9px;
    }
    .filter-bar>span {
        font-size: 9px;
    }
    .report-head {
        align-items: start;
        flex-direction: column;
        gap: 0;
        margin-bottom: 15px;
    }
    .upload-form,.field-note,.report-block {
        padding: 16px;
    }
    footer .wrap {
        flex-wrap: wrap;
    }
    .button {
        font-size: 14px;
    }

    .map-gallery,.entity-examples {
        grid-template-columns: minmax(0, 1fr);
    }
    .entity-examples dt {
        padding: 12px 0 0;
    }
    .entity-examples dd {
        border-top: 0;
        padding: 4px 0 12px;
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        transition: none!important;
    }
}

