.home-main,
.home-intro,
.home-footer {
  --home-ink: #263c33;
  --home-green: #285947;
  --home-muted: #55685d;
  --home-line: #daddd2;
  --home-paper: #faf8f2;
  color: var(--home-ink);
  background: var(--home-paper);
  font-family: var(--lw-font-ui);
}
.home-main {
  --home-split-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  --home-column-gap: clamp(2rem, 4vw, 4.5rem);
  --home-section-space: clamp(2rem, 4.5vw, 4rem);
}
.home-intro *,
.home-intro *::before,
.home-intro *::after,
.home-guide *,
.home-guide *::before,
.home-footer * {
  box-sizing: border-box;
}
.home-width {
  width: calc(min(100%, var(--lw-page-lg)) - var(--lw-gutter) * 2);
  margin-inline: auto;
}
.home-intro :is(h1, h2, h3, p, ul),
.home-guide :is(h2, h3, p, ol),
.home-footer p {
  margin: 0;
  padding: 0;
}
.home-intro a,
.home-guide a,
.home-footer a {
  color: var(--home-green);
  text-decoration: none;
}
:is(.home-intro, .home-guide, .home-footer) :is(a, button):focus-visible {
  outline: 3px solid #a45032;
  outline-offset: 4px;
}
.home-hero-inner,
.home-guide-inner,
.home-history .home-history-grid {
  display: grid;
  grid-template-columns: var(--home-split-columns);
  column-gap: var(--home-column-gap);
}
.home-hero-inner {
  grid-template-areas: 'intro scenes' 'controls scenes';
  row-gap: 1.5rem;
  padding-block: var(--home-section-space);
  border-bottom: 1px solid var(--home-line);
}
.home-hero-copy {
  grid-area: intro;
  align-self: end;
}
.home-hero-controls {
  grid-area: controls;
  align-self: start;
}
.home-hero-copy h1,
.home-templates h2,
.home-guide h2,
.home-history .home-history-heading h2 {
  color: var(--home-ink);
  font-weight: 600;
  letter-spacing: normal;
}
.home-hero-copy h1 {
  white-space: pre-line;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.37;
  text-wrap: balance;
}
.home-hero-copy p {
  max-width: 30em;
  margin-top: 1.2rem;
  color: var(--home-muted);
  font-size: clamp(0.95rem, 1.23vw, 1.08rem);
  line-height: 1.95;
}
.home-hero-controls p[role='alert'] {
  margin-top: 0.75rem;
  color: #933b2b;
}
.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.home-actions a,
.home-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  min-height: 48px;
  padding: 0.65rem 1.22rem;
  border: 1px solid transparent;
  border-radius: 2rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
}
.home-actions .home-action-primary {
  background: var(--home-green);
  color: #fff;
}
.home-actions .home-action-primary:hover {
  background: #1f4536;
}
.home-actions .home-action-secondary {
  border-color: #b7beb0;
  color: var(--home-green);
  background: transparent;
}
.home-actions .home-action-secondary:enabled:hover {
  background: #e9edde;
}
.home-action-secondary:disabled {
  opacity: 0.55;
  cursor: default;
}
.home-scenes {
  grid-area: scenes;
  align-self: center;
  min-width: 0;
}
.home-scenes-list {
  list-style: none;
  border-block: 1px solid var(--home-line);
}
.home-scenes-list > li + li {
  border-top: 1px solid var(--home-line);
}
.home-scene {
  display: grid;
  grid-template-columns: clamp(5.75rem, 10.5vw, 9rem) minmax(0, 1fr) 1.75rem;
  align-items: center;
  gap: clamp(0.7rem, 1.4vw, 1.25rem);
  padding: 0.7rem 0.25rem 0.7rem 0;
}
.home-scene img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1.65;
  object-fit: cover;
  border-radius: 0.5rem;
  background: #e6eadc;
}
.home-scene-copy {
  min-width: 0;
}
.home-scene-copy h2 {
  color: var(--home-ink);
  font: 600 clamp(1.05rem, 1.55vw, 1.4rem) / 1.45 var(--lw-font-ui);
}
.home-scene-copy p {
  margin-top: 0.25rem;
  color: var(--home-muted);
  font-size: 0.87rem;
  line-height: 1.55;
  text-wrap: pretty;
}
.home-scene-arrow {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--home-green);
  background: #e8eddf;
  border-radius: 50%;
}
.home-scene:hover h2 {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.home-scene:hover .home-scene-arrow {
  background: #d8e5d4;
}
.home-templates {
  padding-block: var(--home-section-space);
  scroll-margin-top: 5.2rem;
}
.home-templates-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.2rem 1.2rem;
  margin-bottom: 1.25rem;
}
.home-templates h2,
.home-guide h2,
.home-history .home-history-heading h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.45;
}
.home-templates-heading a,
.home-travel-link,
.home-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  min-height: 44px;
  font-size: 0.93rem;
  font-weight: 600;
}
.home-templates-heading a {
  border-bottom: 1px solid #a7b4a2;
}
.home-collections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.home-collection {
  --group-wash: #e6eddf;
  --group-ink: #386042;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 0.9rem;
  background: #fffdf8;
}
.home-collection-shopping {
  --group-wash: #f0e7d6;
  --group-ink: #76572e;
}
.home-collection-gathering {
  --group-wash: #f3e4dc;
  --group-ink: #884f3a;
}
.home-collection h3 {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.85rem 1.15rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--group-ink);
  background: var(--group-wash);
}
.home-collection h3 svg {
  flex: 0 0 auto;
  width: 1.6em;
  height: 1.6em;
}
.home-collection ul {
  margin-inline: 1.15rem;
  list-style: none;
}
.home-collection li {
  display: grid;
}
.home-collection li + li {
  box-shadow: inset 0 1px #e1e3d9;
}
.home-collection a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  min-height: 48px;
  padding-block: 0.6rem;
  color: var(--home-ink);
  font-size: 0.93rem;
  font-weight: 520;
  line-height: 1.55;
}
.home-link-chevron {
  color: #677b67;
}
.home-travel-link {
  margin-top: 0.3rem;
}
.home-collection a:hover,
.home-templates-heading a:hover,
.home-travel-link:hover,
.home-text-link:hover,
.home-footer nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
.home-history {
  padding-bottom: var(--home-section-space);
}
.home-history-heading {
  margin-bottom: 1.25rem;
}
.home-history .home-history-heading h2 {
  margin: 0;
}
.home-history .home-history-grid {
  row-gap: 1rem;
}
.home-guide {
  border-top: 1px solid var(--home-line);
  background: #f0f2e8;
}
.home-guide-inner {
  padding-block: var(--home-section-space);
}
.home-guide-inner ol {
  list-style: none;
  counter-reset: guide-step;
}
.home-guide-inner li {
  position: relative;
  padding: 1.1rem 0 1.1rem 2.8rem;
  border-top: 1px solid #c9d2c1;
  counter-increment: guide-step;
}
.home-guide-inner li:last-child {
  padding-bottom: 0;
}
.home-guide-inner li::before {
  content: counter(guide-step);
  display: grid;
  place-items: center;
  position: absolute;
  left: 0;
  top: 1.12rem;
  width: 1.85rem;
  height: 1.85rem;
  border: 1px solid #bac8b3;
  border-radius: 50%;
  color: var(--home-green);
  font-size: 1.1rem;
  font-weight: 600;
}
.home-guide-inner h3 {
  font-size: 1.08rem;
}
.home-guide-inner p {
  color: var(--home-muted);
  font-size: 0.93rem;
  line-height: 1.8;
  margin-top: 0.25rem;
}
.home-footer {
  border-top: 1px solid #c9d2c1;
  background: #e7ecdf;
}
.home-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-block: 2.4rem;
}
.home-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: 600 1.5rem/1.2 var(--lw-font-ui);
}
.home-footer-inner p,
.home-footer-inner small {
  color: var(--home-muted);
  max-width: 24em;
  font-size: 0.85rem;
  margin-block: 0.45rem;
}
.home-footer-inner nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  column-gap: clamp(1.2rem, 5vw, 4rem);
}
.home-footer-inner nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--home-ink);
  font-size: 0.88rem;
}
@media (min-width: 701px) {
  .home-hero-copy h1:lang(ja) {
    font-size: clamp(1.85rem, 4vw, 3.2rem);
  }
  /* Share the tallest heading and link in each row across the collections. */
  .home-collections {
    grid-template-rows: auto repeat(var(--home-link-rows), auto);
    row-gap: 0;
  }
  .home-collection,
  .home-collection ul {
    display: grid;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
  .home-collection {
    grid-row: 1 / -1;
  }
  .home-collection ul {
    grid-row: 2 / -1;
  }
}
@media (max-width: 800px) {
  .home-main {
    --home-split-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    --home-column-gap: 1.5rem;
  }
  .home-actions > * {
    flex: 1 1 auto;
  }
  .home-collections {
    gap: 0.65rem;
  }
  .home-collection h3 {
    padding-inline: 0.8rem;
    font-size: 1.05rem;
    gap: 0.4rem;
  }
  .home-collection ul {
    margin-inline: 0.8rem;
  }
}
@media (max-width: 700px) {
  .home-main {
    --home-split-columns: minmax(0, 1fr);
    --home-section-space: 2rem;
  }
  .home-collections {
    grid-template-columns: 1fr;
  }
  .home-hero-inner {
    grid-template-areas: 'intro' 'scenes' 'controls';
    row-gap: 1.25rem;
  }
  .home-hero-copy h1 {
    font-size: clamp(1.6rem, 7.1vw, 2.5rem);
    line-height: 1.34;
  }
  .home-hero-copy p {
    margin-top: 1rem;
    line-height: 1.8;
  }
  .home-scene {
    grid-template-columns: clamp(4.5rem, 21vw, 7.5rem) minmax(0, 1fr) 1.4rem;
    gap: 0.75rem;
    padding-block: 0.55rem;
  }
  .home-scene img {
    aspect-ratio: 1.5;
  }
  .home-scene-copy p {
    font-size: 0.8rem;
  }
  .home-scene-arrow {
    width: 1.4rem;
    height: 1.4rem;
  }
  .home-templates-heading,
  .home-history-heading {
    margin-bottom: 0.75rem;
  }
  .home-templates-heading a {
    font-size: 0.86rem;
  }
  .home-collections {
    gap: 0.8rem;
  }
  .home-collection h3 {
    font-size: 1.12rem;
    padding: 0.65rem 1rem;
    gap: 0.6rem;
  }
  .home-collection ul {
    margin-inline: 1rem;
  }
  .home-guide-inner {
    row-gap: 1rem;
  }
}
@media (max-width: 360px) {
  .home-scene {
    grid-template-columns: 4rem minmax(0, 1fr) 1.25rem;
    gap: 0.5rem;
  }
  .home-scene-copy h2 {
    font-size: 1rem;
  }
}
@media (max-width: 420px) {
  .home-actions {
    gap: 0.45rem;
  }
  .home-actions a,
  .home-actions button {
    min-height: 45px;
    padding-inline: 0.9rem;
    font-size: 0.85rem;
    gap: 0.35rem;
  }
  .home-templates h2,
  .home-guide h2,
  .home-history .home-history-heading h2 {
    font-size: 1.46rem;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .home-link-chevron {
    transition: transform 0.18s ease-out;
  }
  .home-collection a:hover .home-link-chevron {
    transform: translateX(3px);
  }
}
