@font-face { font-family:Geist; src:url(/type/geist.woff2) format("woff2"); font-weight:100 900; font-display:swap }
@font-face { font-family:Plex; src:url(/type/plex.woff2) format("woff2"); font-weight:400; font-display:swap }
:root { --paper:#eaf0ed; --white:#f9fcf9; --ink:#142c39; --soft:#455c62; --line:#a6b7b6; --navy:#112c3a; --deck:#173949; --gold:#ffe184; --green:#ccead7; --bad:#ffe0c5; --danger:#8a361b; --sans:Geist,system-ui,sans-serif; --mono:Plex,ui-monospace,monospace }
*,*::before,*::after { box-sizing:border-box }
[hidden] { display:none!important }
body { margin:0; background:var(--paper); color:var(--ink); font:1rem/1.5 var(--sans) }
img { display:block;width:100%;max-width:100%;height:auto }
h1,h2,h3,p,figure { margin:0 }
h1,h2,h3 { line-height:1.04;overflow-wrap:anywhere }
a,p,td,th { overflow-wrap:anywhere }
a { color:#1d5665;text-underline-offset:.18em }
a:hover { text-decoration-thickness:2px }
button,input,select,textarea { font:inherit }
button { cursor:pointer }
button:disabled { cursor:default;opacity:.55 }
:focus-visible { outline:3px solid #a04022;outline-offset:3px }
.fit-report :focus-visible { outline-color:var(--gold) }
.frame { width:min(78rem,calc(100% - clamp(1.4rem,6vw,6rem)));margin-inline:auto }
.spread,.mast-line { display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.45rem 1rem }
.mast { border-bottom:1px solid var(--line);background:var(--white) }
.mast-line { min-height:3.75rem;padding:.45rem 0 }
.brand { display:inline-flex;align-items:center;gap:.43rem;color:var(--ink);font-size:1.22rem;font-weight:835;letter-spacing:-.04em;text-decoration:none }
.brand img { width:29px;height:29px;border-radius:.23rem;flex:none }
.foot .brand img { width:25px;height:25px }
nav { display:flex;gap:.4rem 1.15rem;align-items:center;flex-wrap:wrap }
nav a,.mast-line>a:last-child { font-size:.9rem;font-weight:670 }
.skip { position:absolute;top:-4rem;left:.45rem;padding:.5rem .75rem;background:var(--white);z-index:4 }
.skip:focus { top:.45rem }
.mono { font-family:var(--mono) }
.eyebrow { text-transform:uppercase;font-size:.8rem;letter-spacing:.08em;color:#2c646a }
.hero { display:grid;grid-template-columns:1fr 1.07fr;gap:clamp(.8rem,3vw,3rem);align-items:center;padding:clamp(.95rem,3.7vw,2.8rem) 0 clamp(.95rem,2.5vw,1.9rem) }
.hero h1 { font-size:clamp(4rem,9.2vw,8.1rem);line-height:.87;letter-spacing:-.052em;word-spacing:.012em;font-weight:800;margin:.34rem 0 .6rem }
.hero h1 span { color:#96710e }
.lead { color:var(--soft);font-size:clamp(1.05rem,1.62vw,1.25rem);max-width:43ch }
.hero .guide { display:inline-block;margin-top:.58rem;font-weight:685 }
.hero figure { border-radius:.27rem;overflow:hidden;border:1px solid #7d9596;background:#d9d4c6 }
.hero figure img { aspect-ratio:2.85;object-fit:cover;object-position:50% 54% }
.bench { border-top:1px solid var(--ink);padding-top:.58rem }
.bench-header h2 { font-size:clamp(2rem,4.1vw,3rem);font-weight:810;letter-spacing:-.06em }
.unit-picker { background:#d8e6e1;border:1px solid #8ba6a7;border-radius:.28rem;padding:.17rem;display:flex;gap:.12rem }
.unit-picker button { border:0;min-height:36px;min-width:45px;background:transparent;color:var(--ink);font-family:var(--mono);border-radius:.15rem }
.unit-picker button[aria-pressed=true] { background:var(--navy);color:var(--white) }
.input-panels { display:grid;grid-template-columns:1fr 1.08fr;gap:.65rem;margin-top:.6rem }
.device-panel,.bags-panel { background:var(--white);border:1px solid var(--line);padding:.65rem .76rem;min-width:0 }
.device-panel h3,.bags-panel h3 { font-size:1.26rem;letter-spacing:-.03em }
label { display:grid;gap:.16rem;font-size:.91rem;font-weight:690;margin:.35rem 0;min-width:0 }
label small,.fine { font-size:.84rem;font-weight:470;color:var(--soft) }
input,select,textarea { min-height:41px;width:100%;min-width:0;padding:.37rem .49rem;color:var(--ink);background:#fff;border:1px solid #7f9a9b;border-radius:.15rem }
textarea { resize:vertical }
.triple,.double { display:grid;gap:.32rem .5rem;align-items:start }
.triple { grid-template-columns:repeat(3,minmax(0,1fr)) }
.double { grid-template-columns:repeat(2,minmax(0,1fr)) }
.button { min-height:43px;display:inline-flex;align-items:center;justify-content:center;text-align:center;border:1px solid var(--navy);border-radius:.18rem;padding:.43rem .63rem;background:var(--navy);color:#fff;text-decoration:none;font-weight:740;line-height:1.22;font-size:.92rem }
.button:hover:not(:disabled) { background:#235369 }
.button.outline { background:transparent;color:var(--ink);border-color:#789496 }
.button.outline:hover:not(:disabled) { background:#deece7;color:var(--ink) }
.link-button { min-height:39px;border:0;background:transparent;color:#1d5665;text-decoration:underline;text-underline-offset:.19em;font-weight:690;text-align:left;padding:.25rem 0;font-size:.9rem }
.link-button:hover:not(:disabled) { text-decoration-thickness:2px }
.link-button.danger,.form-error { color:var(--danger) }
.form-error { font-size:.9rem;margin:.25rem 0 }
.form-error:empty,#device-provenance:empty,#bag-provenance:empty { display:none }
#device-form>.button { margin-top:.35rem }
#device-provenance a,#bag-provenance a { font-weight:680 }
.shelf { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.37rem;list-style:none;margin:.55rem 0 .25rem;padding:0 }
.shelf button { display:grid;align-content:start;gap:.23rem;width:100%;min-height:87px;text-align:left;padding:.45rem .5rem;border:1px solid #91a7a8;border-left:4px solid #8aa6a4;background:#eef5ef;color:var(--ink) }
.shelf button:hover { border-color:#50767d }
.shelf button[aria-pressed=true] { border-color:#3a6872;background:#dfede6;border-left-color:#32616d }
.shelf strong { font-weight:780;overflow-wrap:anywhere }
.shelf small { color:var(--soft);font-size:.79rem;overflow-wrap:anywhere }
.bag-tools { display:flex;align-items:baseline;gap:.2rem .85rem;flex-wrap:wrap }
.fit-report { margin:.67rem 0 0;background:var(--navy);color:#f4faf4;border-radius:.23rem;border:1px solid #0b222c;padding:clamp(.6rem,2vw,1rem) }
.report-top .eyebrow { color:#e6d08b }
.report-top h3 { font-size:clamp(1.45rem,3vw,2.24rem);letter-spacing:-.042em;margin:.12rem 0 }
.fit-report .button.outline { color:#f3faf4;border-color:#84a6a4 }
.fit-report .button.outline:hover:not(:disabled) { color:var(--ink) }
.result-banner { display:flex;align-items:baseline;flex-wrap:wrap;gap:.16rem .62rem;margin:.5rem 0;padding:.45rem .59rem;background:var(--gold);color:var(--ink);border-radius:.14rem }
.result-banner[data-kind=fit] { background:var(--green) }
.result-banner[data-kind=small] { background:var(--bad) }
.result-banner[data-kind=unknown] { background:#e2ebee }
.result-banner strong { font-weight:850 }
.result-banner p { font-size:.93rem }
.report-grid { display:grid;grid-template-columns:1.08fr 1fr;gap:.55rem .85rem }
.diagram { background:#0d2633;border:1px solid #44636c;min-width:0 }
.diagram figcaption { display:flex;align-items:baseline;gap:.18rem .55rem;flex-wrap:wrap;font-weight:700;padding:.4rem .5rem }
.diagram figcaption span { font:400 .82rem var(--mono);color:#bdcfd0 }
.diagram canvas { width:100%;height:225px;display:block }
.legend { display:flex;align-items:center;gap:.18rem .38rem;flex-wrap:wrap;padding:.35rem .46rem;color:#d7e6e1;font-size:.82rem }
.line-key { display:inline-block;width:16px;border-top:2px solid #abd3cf;margin-left:.45rem }
.line-key:first-child { margin-left:0 }
.device-key { border-color:#6ebc9d }
.opening-key { border-color:var(--gold) }
.measurements { min-width:0 }
table { width:100%;border-collapse:collapse;text-align:left;font-size:.86rem }
caption { text-align:left;color:#d5e5df;font-weight:670;padding:0 0 .22rem }
th,td { border-bottom:1px solid #4a666f;padding:.32rem .25rem;vertical-align:top }
thead th { font-weight:720;color:#d5e5df }
tbody td { font-family:var(--mono) }
tbody th { font-weight:660 }
td.negative { color:#ffd6b6 }
td.unknown { color:#c7d6db }
.fit-report .fine,.limit { color:#d7e7e1 }
.fit-report .link-button { color:#f9dc87 }
.report-tools { margin-top:.18rem }
#constraint-help { margin:.15rem 0 }
.settings { display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,.85fr) auto;gap:.25rem .6rem;align-items:end;margin-top:.45rem;padding-top:.34rem;border-top:1px solid #526d75 }
.settings label small { color:#e1e9e2 }
.settings .button { margin-bottom:.35rem }
.settings .form-error { color:#ffd8ba }
.limit { font-size:.85rem;margin-top:.27rem }
.notice { padding:.54rem .67rem;background:#dae8e4;border-left:3px solid #4b7379;margin:.45rem 0 }
.notice.error { background:#f9e7d9;color:var(--danger);border-color:var(--danger) }
.foot { border-top:1px solid var(--line);margin-top:1rem;padding-bottom:1.15rem;color:var(--soft);font-size:.9rem }
.essay { max-width:53rem;padding:clamp(1rem,4vw,3rem) 0 1.2rem }
.essay h1 { font-size:clamp(2.8rem,7vw,5.35rem);letter-spacing:-.071em;line-height:.95;margin:.3rem 0 .57rem }
.essay .lead { max-width:54ch }
.essay h2 { font-size:clamp(1.4rem,3vw,2rem);margin:1.25rem 0 .23rem;letter-spacing:-.035em }
.essay p { max-width:70ch }
.worked { margin-top:.65rem;padding:.58rem .69rem;background:var(--white);border-left:4px solid #8c740f }
.essay .button { margin-top:.72rem }
dialog { width:min(40rem,calc(100% - 1rem));max-height:calc(100dvh - 1rem);padding:.7rem;border:1px solid var(--navy);border-top:5px solid var(--navy);color:var(--ink);background:var(--white);overflow:auto }
dialog::backdrop { background:#0c2633b5 }
dialog h2 { font-size:1.55rem;letter-spacing:-.036em }
dialog fieldset { margin:.48rem 0;padding:.35rem .5rem;border:1px solid var(--line);min-width:0 }
dialog legend { font-weight:790 }
@media(max-width:750px) {
  .hero,.input-panels,.report-grid { grid-template-columns:1fr }
  .hero { gap:.6rem }
  .hero figure img { aspect-ratio:2.85 }
  .hero h1 { font-size:clamp(3.7rem,13vw,6.45rem) }
}
@media(max-width:410px) {
  .mast-line { gap:.45rem .6rem }
  nav { gap:.42rem .6rem }
  nav a { font-size:.82rem }
  .brand { font-size:1.08rem }
  .brand img { width:24px;height:24px }
  .triple { gap:.17rem .29rem }
  .triple label { font-size:.84rem }
  .settings { grid-template-columns:1fr }
  .settings .button { margin-top:.15rem }
  .shelf { grid-template-columns:1fr }
  .diagram canvas { height:201px }
  th,td { padding:.29rem .2rem;font-size:.79rem }
}
