:root {
  color-scheme: light;
  --ink: #202d30;
  --paper: #fcfbf8;
  --mist: #e6eeed;
  --line: #d4dddb;
  --accent: #234548;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible { outline: 3px solid #376e75; outline-offset: 4px; }
.skip { position: absolute; left: 1rem; top: -6rem; background: white; padding: .75rem; z-index: 1; }
.skip:focus { top: 1rem; }
header, footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 2rem;
  padding: .7rem clamp(1rem, 5vw, 5rem);
}
.brand { font-family: Georgia, serif; font-size: clamp(1.2rem, 2.6vw, 1.7rem); text-decoration: none; }
sup { font-family: system-ui, sans-serif; font-size: .48em; margin-left: .15em; }
nav { display: flex; flex-wrap: wrap; gap: 0 1.4rem; }
nav a, footer a { display: inline-flex; align-items: center; min-height: 44px; }
img { display: block; max-width: 100%; width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(3.1rem, 7vw, 7.2rem); line-height: .96; letter-spacing: -.05em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.6rem); line-height: 1.05; letter-spacing: -.035em; }
h3 { font-size: 1.6rem; }
p { font-size: 1.08rem; line-height: 1.65; max-width: 36rem; margin: 1rem 0 1.5rem; }
.hero, .feature { display: grid; grid-template-columns: 1fr 1fr; background: var(--mist); }
.hero img { height: clamp(32rem, 52vw, 48rem); object-fit: cover; object-position: center 40%; }
.intro, .feature > div { align-self: center; padding: clamp(2rem, 7vw, 8rem); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .7rem 1.35rem;
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.outline { background: transparent; color: var(--accent); }
.button:hover { background: #356064; color: white; }
.section { max-width: 76rem; margin: auto; padding: clamp(2.75rem, 7vw, 6rem) clamp(1rem, 5vw, 4rem); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.6rem; }
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); }
.products img { aspect-ratio: 1; object-fit: cover; }
.products h3 { margin: .9rem 0 .65rem; }
.feature img { max-height: 38rem; height: 100%; object-fit: cover; object-position: center 38%; }
.story { text-align: center; }
.story p { margin-inline: auto; }
footer { border-top: 1px solid var(--line); flex-wrap: wrap; }
@media (max-width: 680px) {
  header { flex-direction: column; padding-block: .8rem .2rem; }
  .hero, .feature, .products { grid-template-columns: 1fr; }
  .hero img { height: auto; aspect-ratio: 4 / 5; object-position: center 12%; }
  .intro, .feature > div { padding: 2rem 1.2rem 2.5rem; }
  .products { gap: 2rem; }
  .feature img { height: auto; max-height: none; }
}
.guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}
.guide figure { margin: 0; }
.guide img { aspect-ratio: 3 / 4; object-fit: contain; background: #f7f5f0; }
.guide figcaption { margin-top: .7rem; line-height: 1.5; }
@media (max-width: 680px) {
  .guide { grid-template-columns: 1fr; gap: 1.5rem; }
}
.gallery-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.gallery-thumb:focus-visible, .gallery-dialog button:focus-visible {
  outline: 3px solid #60969d;
  outline-offset: 3px;
}
.gallery-dialog {
  width: min(95vw, 55rem);
  max-height: 90dvh;
  padding: 2.8rem 3rem 1rem;
  border: 0;
  background: var(--paper);
  color: var(--ink);
}
.gallery-dialog::backdrop { background: rgb(0 0 0 / 82%); }
.gallery-dialog figure { margin: 0; text-align: center; }
.gallery-dialog img { width: 100%; height: min(68dvh, 45rem); object-fit: contain; }
.gallery-dialog figcaption { margin-top: .65rem; }
.gallery-dialog button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-size: 1.8rem;
}
.gallery-close { right: .25rem; top: .25rem; }
.gallery-prev, .gallery-next { top: 50%; transform: translateY(-50%); }
.gallery-prev { left: .2rem; }
.gallery-next { right: .2rem; }
@media (max-width: 680px) {
  .guide {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 4px .8rem;
  }
  .guide figure { scroll-snap-align: start; min-width: 0; }
}
