:root {
  color-scheme: light;
  --ink: #172923;
  --muted: #4d6259;
  --paper: #fcfaf4;
  --green: #183c32;
  --line: #d7ded4;
  --lime: #d6f478;
  --white: #fffefa;
  font: 16px/1.55 "Avenir Next", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0 0 .65em; }
h1, h2, h3 { line-height: 1.06; letter-spacing: -.045em; }
h1 { font-size: clamp(2.45rem, 6vw, 5.4rem); }
h2 { font-size: clamp(1.65rem, 3.2vw, 3rem); }
h3 { font-size: 1.45rem; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
input, select, textarea { display: block; width: 100%; min-height: 46px; margin-top: .35rem; padding: .65rem .75rem;
  border: 1px solid #a6b4a9; border-radius: .55rem; color: var(--ink); background: #fff; }
textarea { resize: vertical; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid #3471a1; outline-offset: 4px;
}

.wrap { width: min(1200px, calc(100% - 44px)); margin-inline: auto; }
.skip { position: absolute; left: -999em; }
.skip:focus { z-index: 5; left: 1rem; top: 1rem; background: var(--white); padding: 1rem; }
.demo { background: var(--green); color: var(--white); text-align: center; font-size: .78rem; padding: .25rem; }
.site-header, .console-header { background: var(--paper); border-bottom: 1px solid #e2e5dc; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; }
.nav nav, .site-footer nav { display: flex; align-items: center; gap: clamp(.7rem, 2.6vw, 2.4rem); flex-wrap: wrap; }
.nav nav > a { font-weight: 650; text-decoration: none; }
.nav nav > a:hover { text-decoration: underline; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 44px; }
.brand img { width: 106px; height: 49px; object-fit: contain; }
.button { display: inline-flex; min-height: 46px; padding: .52rem 1rem; gap: .55rem; align-items: center;
  justify-content: center; border-radius: 100px; border: 1px solid transparent; font-weight: 700; text-decoration: none; }
.button.accent { color: var(--ink); background: var(--lime); }
.button.accent:hover { background: #e2fa9b; }
.button.outline { color: var(--green); background: transparent; border-color: #9aab9e; }
.button.outline:hover { background: #eaf0e6; }
.eyebrow { font-size: .76rem; letter-spacing: .13em; font-weight: 750; text-transform: uppercase; }
.hero { isolation: isolate; overflow: hidden; position: relative; display: flex; align-items: center; min-height: clamp(490px, 53vw, 648px);
  margin-top: 1.5rem; padding: clamp(1.6rem, 6.5vw, 5.5rem); border-radius: 1.55rem; color: #fff; background: var(--green); }
.hero-photo, .hero::after { position: absolute; width: 100%; height: 100%; inset: 0; z-index: -1; }
.hero-photo { object-fit: cover; object-position: center 54%; }
.hero::after { content: ""; background: linear-gradient(90deg, rgb(12 29 24 / 90%), rgb(12 29 24 / 57%) 54%, rgb(12 29 24 / 14%)); }
.hero-content { max-width: 610px; }
.hero-content h1 { font-family: Georgia, serif; max-width: 10ch; font-weight: 500; font-size: clamp(3rem, 8.3vw, 7.3rem); margin-bottom: .24em; }
.hero-content h1 em { color: #dfff92; }
.hero-content > p:not(.eyebrow) { max-width: 39ch; font-size: clamp(1rem, 2vw, 1.25rem); margin-bottom: 1.35rem; }
.hero-content .eyebrow { color: #f2f8e6; margin-bottom: 1rem; }
.photo-credit { position: absolute; right: 1rem; bottom: .75rem; color: white; font-size: .7rem; background: #142f27; padding: .2rem .45rem; border-radius: .2rem; }
.destinations { padding-block: clamp(2.5rem, 6vw, 5rem); }
.destinations .eyebrow, .detail .eyebrow, .workspace .eyebrow { color: #3e6554; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.card { overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: var(--white); }
.card-body { padding: 1.25rem; }
.card-image { display: block; background: #dfe9d4; }
.card-image img { width: 100%; height: auto; aspect-ratio: 1.3; object-fit: cover; }
.card p:not(.eyebrow), .intro { color: var(--muted); }
.text-link { display: inline-flex; gap: .4em; align-items: center; min-height: 44px; font-weight: 750; }
.about { padding-block: clamp(2.7rem, 6vw, 5rem); background: #edf1e4; }
.about p, .prose p { max-width: 60ch; }
.site-footer { padding-block: 2rem; background: var(--green); color: white; }
.footer-row { display: flex; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; }

.detail, .prose, .workspace { padding-block: 2.7rem 4rem; }
.back { display: inline-block; margin-bottom: 1.8rem; }
.detail-grid, .admin-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); align-items: start; gap: 1.5rem; }
.detail-image { width: min(100%, 610px); height: auto; border-radius: 1rem; margin: 1.2rem 0 2rem; }
.form-card, .lead, .empty, .inbox { padding: clamp(1rem, 2.5vw, 1.8rem); border: 1px solid var(--line); border-radius: 1rem; background: var(--white); }
.form-card + .form-card { margin-top: 1.3rem; }
.form-card h2, .lead h2, .inbox h2 { font-size: 1.6rem; }
.stack { display: grid; gap: .9rem; }
.stack label, .filter label { font-weight: 650; }
.stack button { justify-self: start; }
.check { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.check input { display: inline-block; min-height: 0; margin: 0; width: 1.2rem; height: 1.2rem; accent-color: var(--green); }
.notice { border: 1px solid #ac6253; color: #762b23; background: #fcf0ec; padding: .7rem; border-radius: .45rem; }
.notice.success { border-color: #83ad72; color: #264d34; background: #edf7e8; }
.departures { padding: 0; list-style: none; }
.departures li { padding: .85rem 0; border-bottom: 1px solid var(--line); }
.area { font-weight: 700; margin-right: auto; }
.console { background: #f2f5ee; }
.console-header .nav nav > a[aria-current="page"] { color: #1c513f; text-decoration: underline; text-decoration-thickness: 2px; }
.console h1 { font-size: clamp(2.15rem, 5vw, 3.5rem); }
.workspace-title { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem; }
.filter { display: flex; align-items: end; gap: .6rem; flex-wrap: wrap; }
.filter select { min-width: 8rem; }
.login { width: min(100%, 450px); margin: 7vh auto 0; }
.crm-list { display: grid; gap: .9rem; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; margin-bottom: 1.2rem; }
.stat { display: grid; gap: .35rem; border: 1px solid var(--line); border-radius: .8rem; padding: .9rem;
  color: var(--green); background: var(--white); text-decoration: none; }
.stat:hover, .stat[aria-current="true"] { border-color: #709183; background: #e8f3dc; }
.stat strong { font-size: 1.85rem; line-height: 1; }
.stat span { font-weight: 650; }
.lead { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 1.25rem; }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
.lead p { overflow-wrap: anywhere; }
.catalog-list { display: block; }
.catalog-list ul { margin: .4rem 0; padding: 0; list-style: none; }
.catalog-list li { display: flex; gap: .5rem; align-items: center; justify-content: space-between; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.catalog-list li a { min-height: 44px; display: inline-flex; align-items: center; }
.pill { border-radius: 100px; padding: .18rem .55rem; background: #edf1e4; font-size: .75rem; }
.inbox { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 2fr); gap: 1rem; }
.inbox aside { padding-right: 1rem; border-right: 1px solid var(--line); }
.thread { display: flex; flex-direction: column; padding: .6rem; border-radius: .45rem; text-decoration: none; }
.thread:is(.active, :hover) { background: #eaf0e6; }
.thread span, .message small { color: var(--muted); font-size: .77rem; }
.messages { display: grid; gap: .6rem; margin-block: 1rem; }
.message { width: fit-content; max-width: min(100%, 58ch); padding: .65rem .8rem; border-radius: .8rem; background: #f0f1e8; }
.message.out { justify-self: end; background: #daedcf; }

@media (max-width: 850px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 615px) {
  .wrap { width: calc(100% - 24px); }
  .nav { column-gap: .65rem; flex-wrap: wrap; padding-block: .4rem; }
  .nav nav { gap: .65rem; }
  .nav nav > a { display: inline-flex; min-height: 44px; align-items: center; }
  .hero { margin-top: .7rem; border-radius: 1rem; min-height: 480px; }
  .hero::after { background: linear-gradient(90deg, rgb(12 29 24 / 86%), rgb(12 29 24 / 55%)); }
  .cards, .detail-grid, .admin-grid, .inbox { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-title { align-items: start; flex-direction: column; }
  .inbox aside { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 .7rem; }
}

.history-search { margin-block: 1rem; flex-wrap: wrap; align-items: end; }
.history-search label { flex: 1 1 16rem; }
.history-search input { display: block; margin-top: .25rem; }
.history-source { overflow-wrap: anywhere; }
.history-amounts { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; }
.history-amounts dd { margin: 0; font-variant-numeric: tabular-nums; }
.history-pages { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; }
.history-sheet-list { padding: 0; list-style: none; }
.history-sheet-list li { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; padding: .8rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.history-table-wrap { overflow: auto; max-height: 70vh; border: 1px solid var(--line); }
.history-table { border-collapse: collapse; width: 100%; background: var(--white); }
.history-table :is(th, td) { border: 1px solid var(--line); padding: .6rem; text-align: left; min-width: 6rem; }
.history-table th { background: var(--paper); }
.history-table td { white-space: pre-wrap; overflow-wrap: anywhere; min-width: 9rem; max-width: 24rem; }
.history-table tr:target { background: #fff1c4; }
