:root {
  color-scheme: light;
  --paper: #f5f5ed;
  --white: #fcfcf7;
  --ink: #202822;
  --muted: #4c584e;
  --line: #d9dfd1;
  --green: #244837;
  --deep: #152b24;
  --lime: #d9ed9b;
  --icon-bg: #e9efdc;
  --accent: #7b4a21;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
button { color: inherit; font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible {
  outline: 3px solid #996520;
  outline-offset: 4px;
}
p, h1, h2 { margin: 0; }
svg { display: block; width: 100%; height: 100%; }
.accent { stroke: #93612f; }
.dashed { stroke-dasharray: 1.7 2.75; }

.shell { width: min(100% - 56px, 1100px); margin-inline: auto; }
.site-header { background: #fbfbf5; border-bottom: 1px solid var(--line); }
.header-row { display: flex; justify-content: space-between; align-items: center; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: .09em; font-size: .86rem; text-decoration: none; white-space: nowrap; }
.brand-light { color: #526354; font-weight: 650; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; background: var(--deep); color: #f2f5e8; border-radius: 9px; font-size: .94rem; letter-spacing: -.02em; overflow: hidden; position: relative; padding-bottom: 5px; }
.brand-mark span { position: absolute; inset: auto 5px 6px; height: 7px; background: var(--lime); clip-path: polygon(0 65%, 27% 65%, 38% 33%, 49% 71%, 61% 0, 74% 65%, 100% 65%, 100% 81%, 71% 81%, 62% 26%, 51% 100%, 38% 55%, 29% 81%, 0 81%); }
.qr-button { display: inline-flex; flex: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); background: var(--white); border-radius: 8px; font-weight: 650; font-size: .84rem; white-space: nowrap; }
.qr-button:hover { background: #e9efdf; }
.qr-icon { width: 20px; height: 20px; }
.skip-link { position: absolute; z-index: 2; top: 5px; left: 10px; padding: 12px; background: white; transform: translateY(-140%); }
.skip-link:focus { transform: none; }

.hero { isolation: isolate; overflow: hidden; position: relative; margin-top: 28px; color: #fffef7; min-height: 338px; display: flex; align-items: center; background: var(--deep); border-radius: 19px; }
.hero-photo { position: absolute; z-index: -1; inset: 0 0 0 34%; background: url("assets/hero.webp") center 8% / cover no-repeat; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #152b24 32%, #152b24f8 38%, #152b2490 53%, transparent 70%); }
.hero-copy { padding: 28px 0 32px 5.1%; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: .7rem; letter-spacing: .15em; font-weight: 750; color: var(--lime); }
.eyebrow span { width: 16px; height: 2px; background: currentColor; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.85rem); line-height: .99; font-weight: 790; letter-spacing: -.065em; margin-top: 14px; }
.hero-description { color: #e4ebe0; font-size: 1rem; margin-top: 16px; max-width: 330px; line-height: 1.5; }
.hero-action { display: inline-flex; min-height: 45px; align-items: center; gap: 22px; padding: 0 14px; margin-top: 20px; border-radius: 7px; background: var(--lime); color: var(--deep); font-size: .87rem; font-weight: 750; text-decoration: none; }
.hero-action:hover { background: #edf7ca; }
.hero-action span { font-size: 1.08rem; }

#areas { margin-top: 33px; scroll-margin-top: 15px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 14px; }
.section-heading h2 { font-size: clamp(1.55rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -.037em; }
.section-heading p { margin-top: 6px; color: var(--muted); line-height: 1.5; font-size: .94rem; }
.setting-switch { display: grid; flex: none; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 200px; gap: 4px; padding: 3px; border: 1px solid #c7d1c0; border-radius: 10px; background: #ecf0e5; }
.setting-switch a { display: grid; place-items: center; min-height: 44px; border-radius: 7px; padding-inline: 11px; color: var(--green); font-size: .88rem; font-weight: 740; text-decoration: none; white-space: nowrap; }
.setting-switch a[aria-current="page"] { color: white; background: var(--green); }
.setting-switch a:not([aria-current]):hover { background: #dce6d4; }
.areas-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.area-card { display: flex; min-width: 0; align-items: center; gap: 13px; padding: 14px; min-height: 86px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.area-card:hover { border-color: #879d77; background: #f0f4e6; }
.area-card-featured { background: #ecf2df; border-color: #cfdac0; }
.area-icon { display: grid; flex: none; place-items: center; width: 47px; height: 47px; border-radius: 10px; background: var(--icon-bg); color: var(--green); }
.area-icon svg, .safety-icon svg { width: 27px; height: 27px; }
.area-card-featured .area-icon { background: #dae7c8; }
.area-label { display: grid; gap: 4px; }
.area-label strong { font-size: .99rem; letter-spacing: -.018em; line-height: 1.17; }
.area-label small { font-size: .78rem; line-height: 1.23; color: var(--muted); }
.area-arrow { color: #48634f; font-size: 1.22rem; padding-inline: 2px; margin-left: auto; }

.safety { display: flex; align-items: flex-start; gap: 14px; margin-top: 25px; padding: 15px 17px; border-radius: 10px; border: 1px solid #e5dcc5; background: #f2eee2; }
.safety-icon { flex: none; display: grid; place-items: center; width: 35px; height: 35px; background: #eae0c9; color: #6b4b27; border-radius: 8px; }
.safety-icon svg { width: 23px; height: 23px; }
.safety h2 { font-size: .95rem; margin: 1px 0 3px; }
.safety p { color: #494a3e; font-size: .85rem; line-height: 1.55; }
.site-footer { display: flex; gap: 10px; justify-content: space-between; padding: 20px 1px 24px; font-size: .79rem; color: var(--muted); }
.site-footer a { text-underline-offset: 3px; }

#detail-view { margin-top: 20px; }
.detail-toolbar { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 8px; }
.detail-toolbar .setting-switch { min-width: 165px; }
.back-link { color: var(--green); display: inline-flex; align-items: center; min-height: 44px; gap: 9px; font-size: .88rem; font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.detail-heading { display: flex; gap: 16px; align-items: center; margin-top: 10px; }
.detail-heading .area-icon { width: 63px; height: 63px; }
.detail-heading .area-icon svg { width: 36px; height: 36px; }
.detail-heading h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.07; letter-spacing: -.052em; }
.detail-heading p { margin-top: 6px; line-height: 1.48; color: var(--muted); }
.detail-safety { color: #5e452b; font-size: .89rem; line-height: 1.45; margin: 19px 0 15px; }
.filter-bar { display: flex; max-width: max-content; gap: 4px; border: 1px solid var(--line); border-radius: 10px; padding: 4px; background: #ebeee3; margin: 0 0 14px; }
.filter-bar button { min-height: 44px; border: 0; border-radius: 7px; padding: 0 14px; background: transparent; font-size: .88rem; font-weight: 660; }
.filter-bar button[aria-pressed="true"] { background: var(--green); color: white; }
.filter-bar button[aria-pressed="false"]:hover { background: #dce6d4; }
.stretch-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.stretch-card { background: var(--white); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.stretch-card-body { padding: 18px 20px 13px; }
.stretch-card h2 { font-size: 1.27rem; letter-spacing: -.022em; line-height: 1.25; }
.stretch-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.stretch-meta span { background: #e8efdf; border-radius: 5px; padding: 4px 7px; color: #314939; font-size: .75rem; font-weight: 720; }
.stretch-meta span + span { background: #f1ebdd; color: #6d4a24; }
.stretch-card ol { padding-left: 23px; margin: 16px 0 9px; }
.stretch-card li { padding-left: 5px; margin: 8px 0; line-height: 1.47; font-size: .94rem; }
.stretch-card li::marker { color: #506b53; font-weight: 750; }
.stretch-note { color: #694725; font-size: .85rem; font-weight: 650; line-height: 1.45; }
.demo-link { color: var(--green); font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; gap: 7px; text-underline-offset: 4px; font-size: .86rem; }

dialog { width: min(370px, 100% - 32px); max-height: calc(100% - 24px); border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: var(--white); color: var(--ink); }
dialog::backdrop { background: #14291fd0; }
dialog h2 { font-size: 1.4rem; letter-spacing: -.025em; margin-right: 40px; }
dialog p { font-size: .91rem; line-height: 1.5; color: var(--muted); margin: 8px 0 12px; }
dialog img { display: block; width: min(100%, 236px); height: auto; margin: 5px auto 12px; }
.close-dialog { position: absolute; right: 10px; top: 10px; font-size: 1.4rem; border: 0; background: transparent; width: 44px; height: 44px; border-radius: 7px; }
.close-dialog:hover { background: var(--icon-bg); }
.download { display: flex; gap: 12px; justify-content: center; align-items: center; min-height: 44px; background: var(--green); color: white; text-decoration: none; font-weight: 700; border-radius: 8px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 750px) {
  .shell { width: min(100% - 32px, 600px); }
  .header-row { min-height: 60px; }
  .hero { margin-top: 16px; min-height: 252px; border-radius: 13px; }
  .hero-copy { padding: 22px 0 21px 19px; }
  .hero-photo { inset: 0 0 0 27%; background-position: 56% center; }
  .hero::after { background: linear-gradient(90deg, #152b24 23%, #152b24f2 34%, #152b24a0 54%, #152b243b 100%); }
  .hero h1 { font-size: clamp(2.65rem, 8.6vw, 4rem); margin-top: 10px; }
  .hero-description { max-width: 210px; font-size: .88rem; margin-top: 12px; }
  .hero-action { margin-top: 14px; }
  #areas { margin-top: 24px; }
  .section-heading { align-items: stretch; flex-direction: column; gap: 10px; }
  .areas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 13px; }
  .area-card { padding: 10px; gap: 8px; min-height: 75px; }
  .area-card .area-icon { width: 34px; height: 37px; border-radius: 7px; }
  .area-card .area-icon svg { width: 23px; height: 23px; }
  .area-label strong { font-size: .91rem; }
  .area-label small { font-size: .7rem; }
  .area-arrow { padding: 0; font-size: .94rem; }
  .safety { margin-top: 18px; padding: 12px; gap: 10px; }
  #detail-view { margin-top: 8px; }
  .detail-heading .area-icon { width: 49px; height: 49px; }
  .detail-heading .area-icon svg { width: 29px; height: 29px; }
  .detail-heading { gap: 11px; }
  .detail-heading p { font-size: .91rem; }
  .stretch-list { grid-template-columns: minmax(0, 1fr); }
  .stretch-card-body { padding: 15px 15px 10px; }
}

@media (max-width: 390px) {
  .shell { width: calc(100% - 24px); }
  .header-row { gap: 8px; }
  .brand { gap: 8px; font-size: .77rem; }
  .brand-mark { width: 35px; height: 35px; }
  .qr-button { gap: 6px; padding-inline: 8px; font-size: .79rem; }
  .qr-icon { width: 17px; height: 17px; }
  .detail-toolbar .setting-switch { min-width: 142px; }
  .detail-toolbar .setting-switch a { padding-inline: 8px; font-size: .8rem; }
  .area-card { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 6px; padding: 8px 10px 10px; }
  .area-card .area-icon { width: 30px; height: 30px; }
  .area-card .area-icon svg { width: 20px; height: 20px; }
  .area-label { grid-row: 2; grid-column: 1 / -1; gap: 3px; }
  .area-arrow { align-self: center; }
  .filter-bar button { padding-inline: 10px; }
}
