@font-face {
  font-family: "Pierakstu Sans";
  src: url("noto-sans.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Pierakstu Sans";
  src: url("noto-sans-bold.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Pierakstu Serif";
  src: url("noto-serif-italic.woff") format("woff");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f7ef;
  --surface: #fffef8;
  --ink: #23372b;
  --green: #294235;
  --leaf: #455e42;
  --muted: #505a51;
  --line: #cbd0c0;
  --lime: #e7f1ad;
  --tint-plan: #eaf0d8;
  --tint-budget: #f2ecd9;
  --tint-order: #e4ebe3;
  --tint-people: #efe8db;
  --serif: "Pierakstu Serif", Georgia, serif;
  --sans: "Pierakstu Sans", Arial, sans-serif;
  --gutter: clamp(1.125rem, 5.25vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.65 var(--sans);
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
}

a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid #765018;
  outline-offset: 4px;
}

.site-footer :focus-visible, .check-panel :focus-visible {
  outline-color: var(--lime);
}

h1, h2, h3, p, figure { margin: 0; }

h1, h2, h3 {
  line-height: 1.12;
  letter-spacing: -.05em;
}

p + p, .note + p { margin-top: 1em; }

[id] { scroll-margin-top: 1.25rem; }

.shell {
  width: calc(100% - 2 * var(--gutter));
  max-width: 80rem;
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: .75rem;
  left: .75rem;
  padding: .65rem 1rem;
  background: var(--lime);
  transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  min-height: 5.125rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  width: fit-content;
  text-decoration: none;
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
}

.brand-name {
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: .015em;
  text-transform: uppercase;
}

.brand-name span:last-child {
  margin-top: .16em;
  font-size: .69rem;
  letter-spacing: .08em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.8vw, 2.6rem);
}

.main-nav a, .foot-nav a {
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover, .foot-nav a:hover { text-decoration: underline; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: .62rem 1.32rem;
  border: 1px solid transparent;
  border-radius: .25rem;
  background: var(--ink);
  color: white;
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.button:hover {
  background: #3d5748;
  color: white;
}

.button-small {
  min-height: 2.65rem;
  padding: .5rem .94rem;
  background: var(--lime);
  color: var(--ink);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .58rem;
  color: var(--leaf);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: 0 0 .57rem;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  background: var(--lime);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr);
  align-items: center;
  gap: clamp(2rem, 4.5vw, 5.3rem);
  padding-block: clamp(2.4rem, 4.4vw, 4rem) clamp(2.8rem, 5.2vw, 5rem);
}

.hero h1 {
  margin-top: .25em;
  font-size: clamp(3.25rem, 7vw, 6.25rem);
  line-height: .99;
  letter-spacing: -.08em;
}

.hero h1 .second-line { display: block; }

.hero h1 em {
  color: var(--leaf);
  font: italic 400 1em/1 var(--serif);
  letter-spacing: -.08em;
}

.hero .lead {
  max-width: 30rem;
  margin-top: 1.35rem;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.38vw, 1.25rem);
  line-height: 1.62;
}

.hero .button { margin-top: 1.8rem; }

.hero-photo {
  position: relative;
  isolation: isolate;
  background: #e3dcca;
}

.hero-photo img {
  aspect-ratio: 1.32;
  object-fit: cover;
  object-position: center 58%;
}

.hero-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: 95%;
  padding: .36rem .7rem;
  background: var(--paper);
  color: var(--muted);
  font-size: .76rem;
}

.guide-section {
  padding-block: clamp(2.6rem, 4.7vw, 4.5rem) clamp(3rem, 6vw, 5.5rem);
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 3rem;
  margin-bottom: 1.65rem;
}

.section-heading h2, .check-panel h2, .faq h2 {
  font-size: clamp(2.25rem, 4.6vw, 4.25rem);
  line-height: 1.04;
}

.section-heading p, .faq-intro p {
  max-width: 29ch;
  color: var(--muted);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tile-plan { --tile: var(--tint-plan); }
.tile-budget { --tile: var(--tint-budget); }
.tile-order { --tile: var(--tint-order); }
.tile-people { --tile: var(--tint-people); }

.guide-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .8rem;
  height: 100%;
  padding: clamp(1.15rem, 2vw, 1.85rem);
  border: 1px solid #acb89f;
  background: var(--tile);
  text-decoration: none;
}

.guide-tile:hover {
  border-color: var(--ink);
  box-shadow: inset 0 -.24rem var(--ink);
}

.guide-tile p {
  color: var(--muted);
  line-height: 1.48;
}

.guide-tile h3 { font-size: clamp(1.35rem, 2vw, 1.68rem); }

.tile-title {
  margin-top: auto;
  padding-top: .25rem;
  font-weight: 700;
  font-size: .88rem;
  line-height: 1.45;
  text-decoration: underline;
  text-underline-offset: .24em;
}

.tile-icon {
  position: relative;
  display: block;
  width: 2rem;
  height: 2rem;
}

.icon-plan {
  width: 1.9rem;
  height: 1.9rem;
  border: 2px solid currentColor;
}

.icon-plan::before {
  position: absolute;
  content: "";
  inset: 0 34% 36% 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.icon-plan::after {
  position: absolute;
  content: "";
  inset: auto 0 34% 79%;
  border-bottom: 2px solid currentColor;
}

.icon-budget {
  width: 1.65rem;
  border: 2px solid currentColor;
}

.icon-budget::before {
  position: absolute;
  content: "";
  inset: 20% 18% auto;
  height: 2px;
  background: currentColor;
  box-shadow: 0 .4rem currentColor, 0 .8rem currentColor;
}

.icon-order {
  background: linear-gradient(currentColor, currentColor) left 0 top .2rem / .58rem 2px no-repeat,
              linear-gradient(currentColor, currentColor) left 0 top .2rem / 2px .55rem no-repeat,
              linear-gradient(currentColor, currentColor) left 0 top 1rem / 1.12rem 2px no-repeat,
              linear-gradient(currentColor, currentColor) left .56rem top .2rem / 2px .8rem no-repeat,
              linear-gradient(currentColor, currentColor) left 1.08rem top 1rem / 2px .7rem no-repeat,
              linear-gradient(currentColor, currentColor) left 1.08rem top 1.65rem / .92rem 2px no-repeat;
}

.icon-people {
  width: 1.8rem;
  border: 2px solid currentColor;
  border-radius: .1rem;
}

.icon-people::before {
  position: absolute;
  content: "";
  width: .53rem;
  aspect-ratio: 1;
  inset: .27rem 0 auto;
  margin: auto;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.icon-people::after {
  position: absolute;
  content: "";
  inset: auto .26rem .26rem;
  height: .48rem;
  border: 2px solid currentColor;
  border-radius: .5rem .5rem 0 0;
}

.check-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--green);
  color: var(--surface);
}

.check-panel figure { position: relative; }

.check-panel img {
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
}

.check-panel .hero-caption {
  right: auto;
  left: 0;
  background: var(--green);
  color: var(--surface);
}

.check-copy { padding: clamp(1.45rem, 4.1vw, 4.5rem); }

.check-copy .eyebrow {
  margin-bottom: .75rem;
  color: var(--lime);
}

.check-list {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list label {
  display: flex;
  align-items: flex-start;
  gap: .72rem;
  padding-block: .66rem;
  border-top: 1px solid #65786a;
  line-height: 1.48;
  cursor: pointer;
}

.check-list input {
  flex: 0 0 auto;
  width: 1.12rem;
  height: 1.12rem;
  margin: .14rem 0 0;
  accent-color: var(--lime);
  cursor: pointer;
}

.check-list input:checked + span { text-decoration: line-through; }

.faq {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(1.4rem, 4vw, 4.75rem);
  padding-block: clamp(3.4rem, 7.2vw, 6.8rem);
}

.faq-intro p { margin-top: 1rem; }
.faq-items { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  position: relative;
  padding: 1.08rem 2.1rem 1.08rem 0;
  font-size: 1.03rem;
  font-weight: 700;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  position: absolute;
  right: .2rem;
  top: 50%;
  content: "+";
  color: var(--leaf);
  font-size: 1.5rem;
  font-weight: 400;
  transform: translateY(-50%);
}

.faq details[open] summary::after { content: "−"; }

.faq details p {
  max-width: 59ch;
  padding-bottom: 1.12rem;
  color: var(--muted);
}

.site-footer {
  padding-block: 2.25rem;
  background: var(--ink);
  color: var(--surface);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.4rem;
}

.breadcrumb {
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: .875rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: .55rem;
  color: var(--leaf);
}

.article-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .31fr);
  align-items: end;
  gap: 1.4rem 2rem;
  margin-top: 1.3rem;
  padding: clamp(1.55rem, 4.8vw, 4.4rem);
  background: var(--tile);
  border: 1px solid #acb89f;
}

.article-header h1 {
  max-width: 20ch;
  margin-top: .25em;
  font-size: clamp(2.35rem, 5.55vw, 5rem);
  line-height: 1.02;
  overflow-wrap: break-word;
}

.article-header .lead {
  max-width: 58ch;
  margin-top: 1.05rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.22rem);
}

.article-cover {
  overflow: hidden;
  border: 1px solid #acb89f;
}

.article-cover img {
  aspect-ratio: 1.2;
  object-fit: cover;
}

.article-ornament {
  justify-self: end;
  align-self: center;
  display: grid;
  place-items: center;
  width: min(100%, 9rem);
  aspect-ratio: 1;
  border: 1px solid #97a58b;
  color: var(--leaf);
  background-image: linear-gradient(#29423518 1px, transparent 1px),
                    linear-gradient(90deg, #29423518 1px, transparent 1px);
  background-size: 1rem 1rem;
}

.article-ornament .tile-icon { transform: scale(2); }

.article-layout {
  display: grid;
  grid-template-columns: minmax(12rem, .31fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.75rem, 6vw, 6.25rem);
  padding-block: clamp(2.05rem, 5vw, 4rem);
}

.article-toc {
  position: sticky;
  top: 1.5rem;
  border-top: 2px solid var(--ink);
  padding-top: .82rem;
}

.article-toc h2 { font-size: 1.18rem; }

.article-toc ul {
  display: grid;
  gap: .52rem;
  margin: .8rem 0 0;
  padding-left: 0;
  font-size: .96rem;
  line-height: 1.5;
  list-style: none;
}

.prose { max-width: 48rem; }
.prose > section + section { margin-top: 2.35rem; }

.prose h2 {
  font-size: clamp(1.7rem, 3.15vw, 2.55rem);
  margin-bottom: .7rem;
}

.prose h3 {
  font-size: 1.23rem;
  margin-top: 1.15rem;
  margin-bottom: .42rem;
}

.prose p, .prose li { color: var(--muted); }
.prose a { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.45rem; }
.prose li + li { margin-top: .42rem; }

.prose .note {
  margin-top: 1.1rem;
  padding: 1rem 1.1rem;
  border-left: .23rem solid var(--leaf);
  background: #ebf0df;
}

.note h3 { margin-top: 0; }

.prose table {
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
}

.prose caption {
  margin-bottom: .45rem;
  color: var(--muted);
  text-align: left;
  font-size: .875rem;
}

.prose th, .prose td {
  padding: .62rem .7rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.prose thead, .prose tfoot { background: var(--tint-plan); }

.prose :is(td, th):last-child:not(:first-child) {
  text-align: right;
  white-space: nowrap;
}

.related {
  padding-top: 1.55rem;
  padding-bottom: clamp(2.85rem, 5vw, 5.3rem);
  border-top: 1px solid var(--line);
}

.related h2 { font-size: clamp(1.8rem, 3.25vw, 2.6rem); }

.related ul {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.55rem;
  margin: .8rem 0 0;
  padding-left: 0;
  list-style: none;
}

@media (max-width: 67.5rem) {
  .hero { gap: 2.15rem; }
  .hero h1 { font-size: clamp(3.2rem, 7.6vw, 5.15rem); }
}

@media (max-width: 56rem) {
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-header { grid-template-columns: minmax(0, 1fr) 7rem; }
  .article-ornament .tile-icon { transform: scale(1.65); }
}

@media (max-width: 46rem) {
  .header-inner {
    flex-wrap: wrap;
    gap: .65rem 1rem;
    padding-block: .82rem;
  }

  .main-nav {
    order: 1;
    justify-content: space-between;
    width: 100%;
    border-top: 1px solid var(--line);
    padding-top: .62rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 1.65rem;
  }

  .hero h1 { font-size: clamp(3rem, 10vw, 4.95rem); }
  .hero-photo img { aspect-ratio: 1.45; }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-heading p { max-width: 43ch; }
  .check-panel, .faq, .article-layout { grid-template-columns: 1fr; }
  .check-panel img { min-height: 0; aspect-ratio: 1.55; }
  .article-toc { position: static; }
  .article-header { grid-template-columns: 1fr; }
  .article-cover, .article-ornament { display: none; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 24.5rem) {
  .guide-grid { grid-template-columns: 1fr; }
  .button-small { padding-inline: .64rem; font-size: .85rem; }
  .hero h1 { font-size: clamp(2.6rem, 11.3vw, 3rem); }
  .main-nav a { font-size: .86rem; }
}

@media print {
  body { background: white; color: black; }
  .site-header, .site-footer, .skip-link, .article-toc, .related { display: none; }
  .shell { width: 100%; }
  .article-layout { display: block; }
  .article-header { display: block; padding: 1rem 0; border: 0; }
  .article-cover, .article-ornament { display: none; }
  .prose > section + section { margin-top: 1rem; }
}
