/*
Theme Name: Dighush Studios
Description: A field notebook framed by sections and evidence rails.
Version: 1.7.56
Text Domain: dighush
*/

:root {
    --paper: #F2F0EC;
    --ochre: #926224;
    --moss: #928D52;
    --water: #176886;
    --type: #28211a;
    --rule: #baa987;
    background: var(--paper);
    color: var(--type);
    font: 18px/1.58 Georgia, serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--water); text-underline-offset: .19em; }
a:hover { color: var(--ochre); }
:focus-visible { outline: 3px solid var(--water); outline-offset: 4px; }
h1, h2, h3 { line-height: 1.03; letter-spacing: -.04em; margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.45rem, 6vw, 6.4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
h3 { font-size: clamp(1.28rem, 2.1vw, 1.65rem); }
.sill-skip { position: absolute; top: -8rem; left: .75rem; z-index: 5; background: white; padding: .6rem; }
.sill-skip:focus { top: .7rem; }
.survey-bar {
    display: grid;
    grid-template-columns: minmax(10rem, 1fr) minmax(0, 2fr) minmax(6rem, 1fr);
    padding: 14px clamp(14px, 4vw, 60px);
    gap: 18px;
    align-items: center;
    border-bottom: 1px solid var(--ochre);
    font: 700 15px/1.4 Arial, sans-serif;
}
.survey-bar nav { display: flex; justify-content: center; gap: 9px 24px; flex-wrap: wrap; }
.sill-brand { width: min(100%, 232px); }
.slip-ticket { justify-self: end; background: var(--water); color: white; padding: .6em .75em; text-decoration: none; }
.slip-ticket:hover { color: white; background: #134657; }
.trench-window { margin: 0; }
.excavation-view { position: relative; background: #332819; isolation: isolate; }
.excavation-view img { width: 100%; height: clamp(380px, 63vh, 720px); object-fit: cover; object-position: 50% 57%; }
.datum-grid {
    position: absolute;
    inset: 0;
    opacity: 0;
    background:
        repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), #d8ecea 10%),
        repeating-linear-gradient(0deg, transparent 0 calc(16.66% - 1px), #d8ecea 16.66%),
        linear-gradient(35deg, transparent 45%, #d8ecea 45.2%, transparent 45.45%);
    pointer-events: none;
}
.dighush-title {
    position: absolute;
    max-width: min(28ch, 95%);
    left: clamp(15px, 6vw, 100px);
    bottom: 9%;
    padding: .75em 1.15em 1em;
    background: var(--paper);
    box-shadow: 8px 8px 0 var(--moss);
}
.dighush-title h1 { max-width: 12ch; }
.stratum-key { margin: 0; padding: .55em max(16px, 5vw); background: var(--type); color: var(--paper); font: 14px/1.5 Arial, sans-serif; }
.field-entry {
    width: min(1230px, 100% - 46px);
    margin: clamp(28px, 5vw, 68px) auto;
    display: grid;
    grid-template-columns: minmax(11rem, 1fr) minmax(0, 2.5fr);
    gap: 2rem clamp(18px, 5vw, 100px);
    align-items: start;
}
.on-the-ground { display: grid; border-top: 4px solid var(--water); gap: .7em; padding-top: .85em; }
.on-the-ground span { font: 700 14px/1.5 Arial, sans-serif; }
.trench-text { max-width: 75ch; }
.trench-text > h2, .trench-text > aside { margin-top: 1.6em; }
.trench-text > p { margin: .8em 0 1.05em; }
.section-title { width: min(1170px, 100% - 46px); margin: clamp(26px, 6vw, 80px) auto 1.8rem; }
.rail-plane { width: min(1170px, 100% - 46px); margin: 0 auto 4em; display: grid; gap: 30px; }
.rail-plane > section { border-top: 5px solid var(--ochre); padding-top: 1.05em; }
.rail-carriages { margin-top: 1rem; display: grid; gap: 1rem; grid-template-columns: repeat(2,minmax(0,1fr)); }
.rail-carriages article { border-bottom: 1px solid var(--rule); padding-bottom: 1rem; }
.rail-carriages h3 { margin: .6em 0 .25em; }
.rail-carriages img { width: 100%; aspect-ratio: 2; object-fit: cover; }
.rail-plane .rails-methods { max-width: 100%; columns: 2 320px; column-gap: 2.5em; }
.rails-methods > h2:first-child { column-span: all; margin: 0; }
.rails-methods nav { display: flex; flex-wrap: wrap; gap: .75em 1.5em; }
.notebook-intro { width: min(1170px, 100% - 46px); margin: 0 max(23px, calc((100% - 1170px)/2)) 1.5em; }
.field-strips { margin: auto auto 4em; width: min(1170px, 100% - 46px); }
.field-strips figure { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(12px, 4vw, 48px); align-items: center; border-top: 1px solid var(--rule); padding: 16px 0; }
.field-strips img { width: 100%; aspect-ratio: 2.5; object-fit: cover; }
.field-strips span, .field-slip-plate figcaption, .folio-reference { font: 700 14px/1.5 Arial, sans-serif; }
.field-strips h2 { margin-top: .3em; }
.field-folio {
    display: grid;
    grid-template-columns: minmax(0, 33%) minmax(0, 1fr);
    width: min(1230px, 100% - 46px);
    margin: clamp(26px, 5vw, 70px) auto 4em;
    gap: 2em clamp(18px, 5vw, 65px);
    align-items: start;
}
.field-slip-plate { position: sticky; top: 1em; border: 1px solid var(--rule); padding: .55em; background: #fcf9f2; }
.field-slip-plate figcaption { padding: .65em .4em .2em; }
.case-record { width: min(1040px, 100% - 46px); margin: auto auto 4em; }
.case-record .section-title { width: 100%; }
.case-record figure { border-bottom: 6px solid var(--moss); margin-bottom: 1.5em; }
.case-record .trench-text { margin: 0 auto; }
.slip-desk {
    width: min(1040px, 100% - 46px);
    display: grid;
    grid-template-columns: minmax(0, .89fr) minmax(0, 1fr);
    gap: 2em 3em;
    margin: clamp(30px, 6vw, 78px) auto 4em;
}
.field-form { padding: 1.3em; border: 1px solid var(--rule); background: #fcf9f2; align-self: start; display: grid; gap: .35em; }
.field-form input:not([type=hidden]), .field-form textarea { width: 100%; padding: .6em; margin-bottom: .55em; font: inherit; color: var(--type); background: white; border: 1px solid #897250; }
.field-form label { font-weight: 700; }
.field-form button { justify-self: start; font: inherit; color: white; background: var(--water); border: 0; padding: .6em 1.15em; }
.field-form p { font-size: 16px; margin: .35em 0 .55em; }
.deposit-register { width: min(960px, 100% - 46px); margin: 0 auto 4em; }
.deposit-register > div { display: grid; margin: 0; grid-template-columns: minmax(9rem, .7fr) minmax(0, 1.6fr); gap: .6em; border-top: 1px solid var(--rule); padding: 1em 0; }
.deposit-register dt { font-weight: 700; }
.deposit-register dd, .deposit-register ul { margin: 0; }
.bench-paper { width: min(740px, 100% - 46px); margin: clamp(30px, 6vw, 78px) auto 4em; }
.bench-paper aside { border-left: 4px solid var(--moss); padding-left: 1em; }
.field-colophon {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 1em;
    align-items: center;
    border-top: 1px solid var(--ochre);
    padding: 15px clamp(14px, 4vw, 60px);
    font: 14px/1.5 Arial, sans-serif;
}
.field-colophon nav { display: flex; flex-wrap: wrap; gap: 10px; }
.field-colophon p { text-align: center; }
.field-colophon nav:last-child { justify-content: flex-end; }

@media (max-width: 670px) {
    .survey-bar { grid-template-columns: minmax(0, 1fr) minmax(0, auto); gap: 10px; }
    .survey-bar nav { grid-column: 1/-1; grid-row: 2; justify-content: flex-start; }
    .slip-ticket { grid-column: 2; grid-row: 1; }
    .dighush-title { max-width: calc(100% - 36px); }
    .field-entry, .rail-carriages, .field-folio, .slip-desk, .field-colophon { grid-template-columns: minmax(0, 1fr); }
    .field-slip-plate { position: static; }
    .slip-desk .trench-text { grid-row: 1; }
    .field-colophon p { text-align: left; }
    .field-colophon nav:last-child { justify-content: flex-start; }
    .field-strips figure { grid-template-columns: minmax(0, 1fr); }
    .deposit-register > div { grid-template-columns: minmax(0, 1fr); }
}
