:root {
  color-scheme: light;
  --paper: #f4f0e8;
  --ink: #232624;
  --quiet: #625e55;
  --copper: #88583e;
  --line: #b5aca0;
  --white: #fdfbf6;
  --sans: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.78 var(--sans); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
img { display: block; width: 100%; height: auto; }
figure, fieldset, dl, dd, h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 1rem; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 4px; }
h1, h2, h3 { font-weight: 400; line-height: 1.32; word-break: auto-phrase; text-wrap: balance; line-break: strict; }
h1 { font-family: var(--serif); font-size: clamp(1.95rem, 8.4vw, 4.15rem); letter-spacing: .025em; }
h2 { font-size: clamp(1.65rem, 6.5vw, 2.9rem); letter-spacing: .015em; }
h3 { font-size: clamp(1.36rem, 5vw, 2rem); }
p { margin: 1.05em 0 0; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; padding: .65rem 1rem; inset: 1rem auto auto 1rem; z-index: 2; background: var(--white); transform: translateY(-200%); }
.skip:focus { transform: none; }
.masthead { max-width: 83rem; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: .65rem; padding: .35rem clamp(1rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.masthead a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.wordmark { color: var(--copper); font-family: var(--serif); font-size: clamp(.87rem, 3.22vw, 1.15rem); }
.masthead nav { display: flex; gap: clamp(.6rem, 2vw, 1.5rem); font-size: .84rem; white-space: nowrap; }
.masthead nav a:first-child { display: none; }

.hero { max-width: 77rem; margin-inline: auto; padding: clamp(1.6rem, 6vw, 5rem) clamp(1.1rem, 4.6vw, 3rem) clamp(2.9rem, 8vw, 6rem); display: grid; gap: 1.1rem; }
.hero-copy { min-width: 0; }
.hero-copy p { margin-top: .75rem; }
.hero-visual, .crop { position: relative; overflow: hidden; isolation: isolate; background: #e9dfd0; }
.hero-visual { aspect-ratio: 1.34; --crop-y: -33%; }
.hero-visual img, .crop img { position: absolute; top: 0; left: var(--crop-left, 0%); width: var(--crop-width, 100%); max-width: none; transform: translateY(var(--crop-y, -27%)); }
.hero-action p { font-size: .91rem; color: var(--quiet); margin-top: .65rem; }
.button { min-height: 48px; padding: .75rem 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: .6rem; border: 1px solid var(--ink); background: transparent; color: var(--ink); text-decoration: none; font-size: .95rem; line-height: 1.52; cursor: pointer; }
.button:hover { background: #e4dbcf; }
.button span { flex: none; font-family: var(--sans); }
.button.primary { background: var(--ink); color: var(--white); }
.button.primary:hover { background: #41443e; }
.text-link { display: inline-flex; align-items: center; gap: .7rem; min-height: 44px; text-underline-offset: .25em; }

.section { max-width: 77rem; margin-inline: auto; padding: clamp(2.7rem, 7.5vw, 6.6rem) clamp(1.1rem, 4.6vw, 3rem); border-top: 1px solid var(--line); }
.split { display: grid; gap: clamp(1.55rem, 5vw, 5rem); align-items: center; }
.split > *, .use-panel > *, .gallery-grid > * { min-width: 0; }
.traits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; padding: 0; margin: 1.35rem 0 0; border-top: 1px solid var(--line); }
.traits li { padding: .7rem .65rem; border-bottom: 1px solid var(--line); line-height: 1.55; }
.traits li:nth-child(odd) { border-right: 1px solid var(--line); }
.crop-how { aspect-ratio: 1.37; --crop-y: -23.3%; --crop-left: -4.7%; --crop-width: 109.4%; }
.demo figcaption { margin-top: .65rem; display: flex; justify-content: space-between; gap: .25rem; font-size: clamp(.83rem, 3.6vw, 1rem); }
.pulse { position: absolute; inset: 29% auto auto 23%; width: 12%; aspect-ratio: 1; pointer-events: none; }
.pulse::before, .pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #e7b98b; opacity: 0; }

.choice { padding: 0; border: 0; }
.choice label { display: flex; align-items: center; gap: .55rem; min-height: 46px; padding: .55rem .7rem; cursor: pointer; line-height: 1.35; }
.choice input { flex: none; width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--copper); }
.choice label:has(:checked) { background: var(--ink); color: var(--white); }
.uses-choice { display: grid; margin: 1.2rem 0 1.7rem; border-top: 1px solid var(--line); }
.uses-choice label { border-bottom: 1px solid var(--line); }
.use-panel { display: grid; gap: 1.35rem; align-items: start; }
.use-images { display: grid; grid-template-columns: 1.75fr 1fr; gap: .5rem; align-items: stretch; aspect-ratio: 1.85; }
.crop-home { --crop-y: -49%; --crop-left: -25%; --crop-width: 165%; }
.crop-home-extra { --crop-y: -39%; --crop-left: -66%; --crop-width: 215%; }
.crop-case { aspect-ratio: 1.23; --crop-y: -23%; --crop-left: -5%; --crop-width: 110%; }
.use-copy .button { margin-top: 1.05rem; }
.examples { margin-top: .95rem; border-top: 1px solid var(--line); }
.examples div { border-bottom: 1px solid var(--line); padding: .65rem 0; }
.examples dt { font-weight: 650; }
.examples dd { color: var(--quiet); }
.value .crop { order: 2; }
.crop-value, .crop-general { aspect-ratio: 1.2; --crop-y: -27%; }
.flow .crop-general { --crop-y: -33%; }

.gallery-grid { margin-top: 1.35rem; display: grid; gap: 1.2rem; }
.gallery-grid figure { border-bottom: 1px solid var(--line); }
.gallery-art { aspect-ratio: .82; --crop-y: -23%; }
.gallery-art.expressive { --crop-y: -26%; }
.gallery-grid figcaption { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); color: var(--quiet); font-size: .91rem; }
.gallery-grid figcaption span { padding: .6rem .65rem .8rem; }
.gallery-grid figcaption span + span { border-left: 1px solid var(--line); }
.gallery-grid b { display: block; font: 500 1.08rem/1.4 Georgia, serif; letter-spacing: .08em; color: var(--ink); }
.note { color: var(--quiet); font-size: .9rem; }
.prices { margin-top: 1.15rem; }
.prices div { padding: .65rem 0; border-bottom: 1px solid var(--line); }
.prices dt { color: var(--quiet); }
.prices dd { line-height: 1.55; }
.prices strong { font-size: clamp(1.7rem, 7vw, 2.45rem); font-family: var(--serif); font-weight: 500; }
.quantity { margin-top: 1.2rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.quantity legend { margin-bottom: .6rem; }
.quantity label { border: 1px solid var(--line); font-size: .94rem; }
#price .text-link { margin-top: .65rem; }
.flow ol { list-style: none; padding: 0; counter-reset: stage; border-top: 1px solid var(--line); }
.flow li { counter-increment: stage; border-bottom: 1px solid var(--line); padding: .68rem 0; display: flex; gap: 1.25rem; }
.flow li::before { content: counter(stage, decimal-leading-zero); color: var(--copper); font-family: Georgia, serif; }
.crop-cta { aspect-ratio: 1.29; --crop-y: -23%; --crop-left: -4%; --crop-width: 108%; }
.actions { display: grid; gap: .6rem; margin-top: 1.3rem; }

.contact { max-width: 57rem; }
.preview-note { padding: .65rem .85rem; border-left: 3px solid var(--copper); background: #eae2d6; }
form { margin-top: 1.35rem; display: grid; gap: 1.05rem; }
form label { display: block; min-width: 0; }
form input, form select, form textarea { display: block; width: 100%; min-height: 48px; margin-top: .32rem; border: 1px solid #8b8376; border-radius: 0; padding: .45rem .65rem; background: var(--white); color: var(--ink); }
form textarea { resize: vertical; }
.optional { color: var(--quiet); font-size: .85rem; }
form button:disabled { color: #5c584f; border-color: #b4ac9e; background: #e9e3d8; cursor: default; justify-content: center; }
footer { max-width: 83rem; margin: auto; border-top: 1px solid var(--line); padding: .75rem clamp(1.1rem, 4.6vw, 3rem) 1.25rem; text-align: right; }
footer a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-size: .9rem; text-underline-offset: .25em; }

@keyframes wave {
  5% { opacity: .78; }
  100% { opacity: 0; transform: scale(2.8); }
}
@keyframes reveal {
  from { transform: translateY(.6rem); opacity: .65; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes photograph {
  from { transform: translateY(var(--crop-y)) perspective(850px) rotateY(-5deg) scale(1.05); }
  to { transform: translateY(var(--crop-y)) perspective(850px) rotateY(0) scale(1); }
}
@media (prefers-reduced-motion: no-preference) {
  .demo.in-view .pulse::before, .demo.in-view .pulse::after { animation: wave 1.35s ease-out 2; }
  .demo.in-view .pulse::after { animation-delay: .26s; }
  .gallery-grid.in-view { animation: reveal .65s ease-out both; }
  .hero-visual.in-view img { animation: photograph 1s ease-out both; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media (min-width: 42rem) {
  .masthead nav a:first-child { display: inline-flex; }
  .uses-choice { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .uses-choice label { padding-inline: .9rem; }
  .uses-choice label + label { border-left: 1px solid var(--line); }
  .gallery-grid, form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wide { grid-column: 1 / -1; }
}
@media (min-width: 57rem) {
  .hero { grid-template-columns: minmax(0, .98fr) minmax(0, 1fr); grid-template-rows: 1fr auto 1fr; column-gap: clamp(1.8rem, 4vw, 4rem); }
  .hero-copy { grid-column: 1; grid-row: 2; }
  .hero h1 { font-size: clamp(2.2rem, 4vw, 3.15rem); }
  .hero-action { grid-column: 1; grid-row: 3; align-self: start; }
  .hero-visual { grid-column: 2; grid-row: 1 / 4; }
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .use-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(1.5rem, 4vw, 4rem); }
  .value .crop { order: 0; }
  .quantity { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
