:root {
  --paper: #faf8f5;
  --card: #ffffff;
  --ink: #1f1d21;
  --muted: #5f5a60;
  --line: #cfc8bd;
  --tint: #e9f4f4;
  --hand: "Caveat", "Segoe Print", cursive;
  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

.white-page { background: #fff; }

img { max-width: 100%; display: block; }
a { color: var(--ink); }
h1, h2, h3 { font-family: var(--hand); font-weight: 700; line-height: 1.1; margin: 0 0 .4em; }
h1 { font-size: clamp(2.8rem, 7vw, 4rem); }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.9rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

.site-header { border-bottom: 2px dashed var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { font-family: var(--hand); font-size: 1.9rem; font-weight: 700; line-height: 1.1; color: var(--ink); text-decoration: none; }
.brand img { height: 76px; width: auto; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-nav a { text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom: 2px dashed var(--ink); }

main.wrap { padding-top: 44px; padding-bottom: 64px; }
section + section { margin-top: 64px; padding-top: 48px; border-top: 2px dashed var(--line); }

.hero { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.hero img { width: min(340px, 80%); margin: 0 auto 24px; }
.lede { font-size: 1.15rem; color: var(--muted); }

.button {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 6px;
}
.button:hover { background: #444047; }
.button.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.button.quiet:hover { background: #efebe5; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .actions { justify-content: center; }
.after-grid { margin-top: 28px; }

.page-links { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }

.pattern-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.one-line { row-gap: 0; grid-template-rows: auto; grid-auto-rows: 0; overflow: hidden; }
.pattern-grid figure { margin: 0; }
.pattern-grid figure img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.pattern-grid figcaption { color: var(--muted); font-size: .92rem; margin-top: 8px; }

.pattern-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid #e4dfd7; border-radius: 8px; overflow: hidden; }
.pattern-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pattern-card .body { display: flex; flex-direction: column; flex: 1; padding: 16px; }
.pattern-card h3 { font-size: 1.7rem; }
.pattern-card .meta { color: var(--muted); font-size: .92rem; margin-bottom: .6em; }
.pattern-card .button { margin-top: auto; text-align: center; }

.gallery { columns: 3 280px; column-gap: 24px; margin-top: 12px; }
.gallery figure { break-inside: avoid; margin: 0 0 24px; }
.gallery img { width: 100%; border-radius: 8px; }
.gallery figcaption { color: var(--muted); font-size: .92rem; margin-top: 8px; }

.empty { background: var(--card); border: 2px dashed var(--line); border-radius: 8px; padding: 28px; text-align: center; }
.empty p:last-child { margin-bottom: 0; }

.panel { background: var(--tint); border-radius: 10px; padding: 22px 24px; margin-bottom: 28px; }
.panel ul { margin: 0; padding-left: 20px; }
.panel li { margin-bottom: .5em; }
.panel p:last-child, .panel li:last-child { margin-bottom: 0; }
.panel img { width: 100%; margin-bottom: 16px; }
.note { color: var(--muted); font-size: .95rem; }
.handnote { font-family: var(--hand); font-size: 1.5rem; line-height: 1.2; }

.step { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; padding: 26px 0; border-top: 2px dashed var(--line); }
.step:not(:has(img)) { grid-template-columns: 1fr; }
.step img { width: 100%; }
.step h3 { display: flex; align-items: center; gap: 12px; }
.step-number { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 2px dashed var(--ink); border-radius: 50%; font-size: 1.6rem; }
.step p:last-child { margin-bottom: 0; }
.tips { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 12px; }
.tips .panel { margin-bottom: 0; }

.narrow-section { max-width: 780px; margin-top: 48px; }
.site-form { margin-top: 24px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 4px; }
.form-row input, .form-row select, .form-row textarea { width: 100%; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.form-error { color: #a12a14; font-size: .92rem; margin: 4px 0 0; }
.form-error:empty { display: none; }
.site-form button { border: 0; font: inherit; font-weight: 600; cursor: pointer; margin-top: 8px; }
.site-form button:disabled { opacity: .6; cursor: default; }
.form-done { background: var(--tint); border-radius: 10px; padding: 22px 24px; margin-top: 24px; }
.form-done p:last-child { margin-bottom: 0; }

.site-footer { border-top: 2px dashed var(--line); color: var(--muted); font-size: .92rem; }
.site-footer .wrap { padding-top: 22px; padding-bottom: 28px; }
.site-footer p { margin-bottom: .4em; }

@media (max-width: 720px) {
  main.wrap { padding-top: 32px; }
  .brand img { height: 62px; }
  .one-line { grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .step, .tips { grid-template-columns: 1fr; }
  .step img { max-width: 260px; }
}
