/*
Theme Name: Boghex Studios
Description: A set of illustrated folklore folds and marsh volumes.
Version: 6.67.2
Text Domain: boghex
*/

:root {
    --alder: #8A1313;
    --foxglove: #9F63B3;
    --mire: #0A5D2B;
    --mist: #ACA0C8;
    --ink: #281727;
    --pale: #eee4f1;
    background: var(--mist);
    color: var(--ink);
    font: 18px/1.58 Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--mire); text-underline-offset: .14em; }
a:hover { color: var(--alder); }
:focus-visible { outline: 3px solid var(--alder); outline-offset: 5px; }
figure { margin: 0; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.06; margin: 0; letter-spacing: -.035em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.65rem, 7vw, 7rem); font-weight: normal; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }
.sedge-skip { position: absolute; top: -9rem; left: .8em; background: var(--pale); padding: .55em; z-index: 3; }
.sedge-skip:focus { top: .55em; }
.mire-canopy {
    border-bottom: 1px solid var(--alder);
    background: var(--pale);
    display: grid;
    align-items: center;
    grid-template-columns: minmax(150px, .7fr) minmax(0, 1.35fr) max-content;
    gap: .65em 1.6em;
    padding: .35em max(18px, (100% - 1260px)/2);
}
.marsh-crest { max-width: 223px; }
.mire-canopy nav { display: flex; flex-wrap: wrap; gap: .4em 1.15em; }
.mire-canopy nav:last-child a { color: var(--alder); font-weight: 700; }
.marsh-opening {
    width: min(1370px, 100% - 40px);
    margin: clamp(16px, 4vw, 55px) auto 1.5em;
    display: grid;
    align-items: end;
    grid-template-columns: repeat(14,minmax(0,1fr));
}
.whole-marsh { grid-column: 1/-1; grid-row: 1; position: relative; clip-path: polygon(1% 0,99% 0,100% 100%,0 100%); }
.whole-marsh img { aspect-ratio: 2.6; object-fit: cover; object-position: 50% 61%; }
.marsh-pointer { position: absolute; width: 32px; top: 7%; right: 4%; fill: var(--pale); }
.basin-markers { position: absolute; inset: 0; }
.basin-markers a {
    position: absolute;
    left: 22%;
    top: 34%;
    display: block;
    padding: .35em .5em;
    border: 1px solid var(--pale);
    color: var(--pale);
    background: var(--mire);
    font-size: clamp(12px, 1.4vw, 16px);
    line-height: 1.4;
}
.basin-markers a:nth-child(2) { left: 47%; top: 19%; }
.basin-markers a:nth-child(3) { left: auto; right: 11%; top: 40%; }
.basin-markers a:focus-visible { outline-color: white; }
.dark-mire-title {
    position: relative;
    grid-row: 1;
    grid-column: 2/10;
    margin-bottom: .7em;
    padding: .75em 1em .9em;
    background: var(--ink);
    color: var(--pale);
    border-top: 7px solid var(--foxglove);
}
.dark-mire-title h1 { font-size: clamp(2.3rem, 5vw, 5.2rem); }
.marsh-locations {
    width: min(1100px, 100% - 40px);
    margin: 0 auto 2.7em;
    display: grid;
    grid-template-columns: minmax(0, .8fr) repeat(3,minmax(0,1fr));
    gap: .55em;
    align-items: start;
}
.marsh-locations h2 { font-size: 1.55rem; padding: .45em .4em 0 0; }
.marsh-locations details {
    border-bottom: 3px solid var(--mire);
    background: var(--pale);
}
.marsh-locations summary, .tale-folds summary { cursor: pointer; font-weight: 700; }
.marsh-locations summary { padding: .6em; }
.marsh-locations details div { padding: 0 .7em .7em; }
.marsh-locations p { margin: .15em 0 .55em; }
.leaf-heading { width: min(1080px, 100% - 40px); margin: clamp(20px, 6vw, 76px) auto 1.4em; }
.silt-copy { max-width: 730px; }
.silt-copy > h2 { margin: 1.48em 0 .4em; }
.wet-intro, .single-leaf { width: min(730px, 100% - 40px); margin: 0 auto 3em; }
.single-leaf { margin-top: clamp(20px, 6vw, 76px); }
.tale-folds, .volumes {
    width: min(1060px, 100% - 40px);
    margin: 0 auto 4em;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    align-items: start;
    gap: 1.5em;
}
.tale-folds details { border: 3px solid var(--alder); background: var(--pale); }
.tale-folds summary { list-style-position: inside; background: var(--alder); color: white; padding-top: .2em; }
.tale-folds summary img { aspect-ratio: 5/3; object-fit: cover; }
.tale-folds summary span { display: inline-block; padding: .62em .6em; }
.tale-folds details > div { padding: .1em .85em .85em; }
.volumes > section { padding: 1em; border: 1px solid var(--alder); background: var(--pale); }
.volumes article { padding: 1em .6em .3em; margin-top: 1em; border-top: 1px solid var(--foxglove); }
.volumes article:first-of-type { border-left: 4px solid var(--alder); }
.volumes p { margin: .55em 0 .48em; }
.hut-case { width: min(1080px, 100% - 40px); margin: 0 auto 4em; }
.hut-case .leaf-heading { width: 100%; }
.hut-case figure { border-bottom: 6px solid var(--mire); }
.hut-case figure img { aspect-ratio: 2.2; object-fit: cover; }
.hut-case .silt-copy { margin: 1.2em auto 0; }
.mire-leaf {
    width: min(1040px, 100% - 40px);
    margin: clamp(28px,6vw,78px) auto 4em;
    display: grid;
    grid-template-columns: minmax(150px, .45fr) minmax(0, 1fr);
    gap: 1em 1.6em;
    align-items: start;
}
.mire-leaf h1, .mire-leaf figure { grid-column: 1/-1; }
.mire-leaf figure img { aspect-ratio: 2.4; object-fit: cover; }
.mire-leaf aside { display: flex; flex-direction: column; gap: .45em; border-left: 4px solid var(--alder); padding: .4em .64em; }
.mire-leaf aside time, .mire-leaf figcaption { font-size: 14px; }
.mire-leaf figcaption { padding: .45em .6em; background: var(--pale); }
.mire-leaf .silt-copy > :first-child { margin-top: 0; }
.reed-counter {
    width: min(1100px, 100% - 40px);
    margin: clamp(25px, 6vw, 72px) auto 4em;
    display: grid;
    gap: 1.5em 3em;
    grid-template-columns: minmax(0,1fr) minmax(0,.85fr);
}
.reed-form { align-self: start; padding: 1.1em; border: 2px solid var(--mire); background: var(--pale); display: grid; gap: .23em; }
.reed-form label { font-weight: 700; }
.reed-form input:not([type=hidden]), .reed-form textarea { width: 100%; margin-bottom: .65em; padding: .58em; background: white; color: var(--ink); border: 1px solid var(--mire); font: inherit; }
.reed-form p { font-size: .9rem; margin: 0 0 .6em; }
.reed-form button { justify-self: start; background: var(--alder); color: white; padding: .68em .85em; font: inherit; border: 0; }
.atlas-folds { margin-top: 2em; }
.atlas-folds section { border-left: 4px solid var(--mire); margin-top: 1.45em; padding: .2em 1em; }
.mire-footer {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    justify-items: start;
    align-items: start;
    gap: .8em 1em;
    padding: 1.6em max(20px,(100% - 1080px)/2);
    background: var(--ink);
    color: var(--pale);
}
.mire-footer h2 { grid-row: 1; }
.mire-footer p { margin: 0; grid-row: 2; }
.mire-footer a { color: var(--pale); }
.mire-footer nav { display: flex; flex-wrap: wrap; gap: .5em 1em; }
@media (max-width: 810px) {
    .marsh-locations { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .marsh-locations h2 { grid-column: 1/-1; }
    .dark-mire-title { grid-column: 2/13; }
}
@media (max-width: 650px) {
    .mire-canopy { grid-template-columns: minmax(0,1fr); }
    .mire-canopy nav { font-size: 15px; }
    .marsh-opening { display: block; }
    .whole-marsh img { aspect-ratio: 1.8; }
    .basin-markers a { left: 5%; }
    .basin-markers a:nth-child(3) { right: 5%; top: 57%; }
    .dark-mire-title { margin: 0; }
    .marsh-locations, .tale-folds, .volumes, .mire-leaf, .reed-counter, .mire-footer { grid-template-columns: minmax(0,1fr); }
    .mire-footer p { grid-row: auto; }
}
