/* Shared storybook palette and page treatments. */
:root {
  color-scheme: light;
  --bg: #faf3e5;
  --panel: #fffaf0;
  --ink: #26353c;
  --muted: #4a5b5c;
  --gold: #765022;
  --line: #d8c9b5;
  --forest: #234f45;
  --night: #203c3a;
  --cream: #fff7e6;
  --amber: #ffd187;
}
body { background: var(--bg); color: var(--ink); }
a { color: var(--forest); }
.wrap { width: min(1180px, calc(100% - 44px)); }
.compact-header { padding-block: 1rem; }
.compact-header .brand { color: var(--ink); font-weight: 900; font-size: 1.16rem; }
.compact-header .brand img { width: 43px; height: 43px; }
.compact-nav { gap: .15rem .75rem; }
.compact-nav a { color: var(--forest); text-decoration-thickness: .12em; }
.compact-nav a.recruit-link, .compact-button {
  background: var(--forest); color: var(--cream); border-radius: .75rem;
}
.compact-nav a.recruit-link:hover, .compact-button:hover { background: #356459; color: #fff; }
.compact-hero {
  width: min(1390px, calc(100% - 32px)); margin-inline: auto;
  grid-template-columns: .9fr 1.1fr; min-height: 0; gap: 0;
  background: var(--night); border-radius: 1.65rem; border: 1px solid #48665b;
}
.compact-hero::after { display: none; }
.compact-hero-copy {
  grid-area: 1 / 1; padding: clamp(1.75rem,5vw,4.1rem) clamp(1.4rem,4vw,4rem);
  width: 100%; min-width: 0; color: var(--cream);
}
.compact-hero h1 { color: var(--cream); font-size: clamp(2.15rem,5.05vw,4.8rem); line-height: 1.08; letter-spacing: -.055em; }
.compact-hero p { color: #efe2da; max-width: 28rem; }
.compact-hero .compact-button { background: var(--amber); color: #293f38; }
.compact-hero .compact-button:hover { background: #ffdda6; }
.compact-hero .compact-secondary { color: var(--cream); }
.storybook-hero-shot { grid-area: 1 / 2; position: relative; align-self: stretch; margin: 0; min-width: 0; min-height: 340px; }
.storybook-hero-shot img { z-index: auto; object-position: center; }
.storybook-hero-shot figcaption { position: absolute; bottom: .9rem; right: .9rem; background: #223936; color: #fff7e6; border-radius: .4rem; padding: .25rem .65rem; font-size: .8rem; }
.compact-home-body .compact-release { border: 0; border-radius: .65rem; background: #eee6d6; padding: .75rem 1rem; color: var(--ink); }
.storybook-feature-icon { width: 44px; height: 44px; color: #604a69; margin-bottom: .35rem; display: block; }
.compact-features>div, .compact-region-list li, .compact-detail-grid article, .compact-article,
.compact-road li, .compact-shots figure { background: var(--panel); border-radius: .85rem; }
.compact-features>div { border-top: 3px solid #728e76; padding: 1.3rem; }
.compact-region-list li { border-top-color: #728e76; }
.compact-shots figure { box-shadow: 0 4px 0 #d8c9b54d; }
.compact-shots a { background: var(--night); }
.compact-shots img { aspect-ratio: 16/9; object-fit: contain; background: var(--night); }
section.compact-detail { padding-block: clamp(1.8rem,4vw,3rem); }
.compact-jump a { border-radius: .75rem; }
.storybook-preview { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1rem,4vw,3rem); background: #e9eee3; padding: clamp(1.1rem,3vw,2.25rem); border: 1px solid var(--line); border-radius: 1rem; }
.storybook-preview h2 { margin: .35rem 0 .55rem; font-size: clamp(1.55rem,3.2vw,2.5rem); }
.storybook-preview small { color: var(--forest); font-weight: 800; }
.storybook-preview img { width: 100%; height: auto; display: block; border-radius: .65rem; }
.storybook-preview p { color: var(--muted); margin: 0 0 .85rem; }
.compact-page h1 { letter-spacing: -.04em; }
.compact-footer { background: var(--night); color: #efe2da; }
.compact-footer a { color: var(--cream); }
:where(main,header,footer) :focus-visible { outline: 2px solid #477366; outline-offset: 3px; }

@media(max-width: 880px) {
  .compact-header { align-items: flex-start; flex-direction: column; }
}
@media(max-width: 720px) {
  .compact-hero { display: flex; flex-direction: column; width: calc(100% - 24px); border-radius: 1rem; }
  .compact-hero-copy { order: -1; }
  .storybook-hero-shot { width: 100%; min-height: 0; aspect-ratio: 16/10; }
  .storybook-preview { grid-template-columns: minmax(0,1fr); }
  .wrap { width: calc(100% - 32px); }
}

:root {
  --bg: #eaf2ef;
  --panel: #fcf9ee;
  --ink: #18344b;
  --muted: #435d63;
  --gold: #795422;
  --line: #cbd8ca;
  --forest: #175a50;
  --night: #15394b;
}
.compact-nav a.language-link { border: 1px solid var(--line); border-radius: .6rem; padding-inline: .65rem; }
.compact-hero { border-color: #325668; }
.storybook-hero-shot figcaption { background: #15394b; }
