/* Ondoku Studio. Wa-modern: washi paper, sumi ink, temple roof tiles, timber, lots of quiet space. */
:root {
  --bg: #f3efe6;          /* washi */
  --surface: #faf8f3;
  --alt: #e9e3d6;
  --text: #1d1c1a;        /* sumi */
  --muted: #6b665e;
  --line: #d6cdbd;
  --ink: #1d1c1a;
  --accent: #9a5b34;      /* timber */
  --sky: #4f7fae;         /* the sky above the roof */
  --dark: #1b1c1a;
  --dark-text: #ece8df;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", ui-serif, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: 20px;
  --header: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.75 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--text); text-underline-offset: 4px; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0; letter-spacing: .01em; }
h1 { font-size: clamp(2.3rem, 8vw, 4.6rem); font-weight: 600; line-height: 1.1; }
h2 { font-size: clamp(1.7rem, 4.8vw, 2.8rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.small { font-size: .88rem; color: var(--muted); }

.eyebrow { display: flex; align-items: center; gap: 12px; font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* Buttons and links */
.btn { display: inline-block; background: var(--ink); color: var(--bg); text-decoration: none; padding: 14px 24px; border: 1px solid var(--ink); border-radius: 0; font: 600 .95rem/1.2 var(--sans); letter-spacing: .03em; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: transparent; color: var(--ink); }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow::after { content: " →"; }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(243, 239, 230, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header); padding: 0 var(--gutter); max-width: 1440px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo-mark { display: grid; place-items: center; width: 30px; height: 30px; background: var(--ink); color: var(--bg); font-family: var(--serif); font-size: .95rem; }
.logo-text { font-family: var(--serif); font-size: 1.08rem; letter-spacing: .05em; }
.nav { display: none; gap: 28px; }
.nav a { text-decoration: none; font-size: .88rem; letter-spacing: .02em; }
.nav a:hover { color: var(--accent); }
.header-cta { display: none; font-size: .88rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }

/* Hero */
.hero { display: grid; }
.hero-photo img { width: 100%; height: auto; }
.hero-copy { position: relative; padding: 36px var(--gutter) 56px; }
.tate { display: none; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 32em; margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: .88rem; color: var(--muted); }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--alt); }
.section-head { margin-bottom: 40px; }
.section-head h2 { max-width: 16em; }
.section-lead { color: var(--muted); max-width: 36em; margin: 18px 0 0; }

/* Work gallery: rows of three, each photo keeps its own shape and the row fills edge to edge.
   Phone: the first photo of each row runs full width, the other two share the line below. */
.gallery { display: grid; gap: 8px; }
.g-row { display: flex; flex-wrap: wrap; gap: 8px; }
.g-row figure { flex: var(--r) 1 0; min-width: 0; }
.g-row figure:first-child { flex-basis: 100%; }
.g-row img { width: 100%; height: auto; }
.more { margin-top: 28px; }

/* Services */
.services-photo { margin-top: 32px; }
.services-photo img { width: 100%; height: auto; }
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.services li { padding: 26px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; }
.services .num { font-family: var(--serif); font-size: 1.3rem; color: var(--accent); grid-row: span 2; line-height: 1.3; }
.services h3 { margin-bottom: 6px; font-size: 1.25rem; }
.services p { margin: 0; color: var(--muted); }

/* Styles */
.styles { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.style { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: start; }
.style h3 { margin-bottom: 2px; }
.style p { margin: 0; color: var(--muted); font-size: .93rem; grid-column: 2; }
.swatch { display: flex; grid-row: span 2; }
.swatch i { width: 16px; height: 46px; }
.s-natural .swatch i:nth-child(1) { background: #faf7f2; } .s-natural .swatch i:nth-child(2) { background: #e7dfd5; } .s-natural .swatch i:nth-child(3) { background: #8a5a3b; }
.s-wa .swatch i:nth-child(1) { background: #f4f1ea; } .s-wa .swatch i:nth-child(2) { background: #ddd6c8; } .s-wa .swatch i:nth-child(3) { background: #3f4a3c; }
.s-mid .swatch i:nth-child(1) { background: #f6efe2; } .s-mid .swatch i:nth-child(2) { background: #e6d9c3; } .s-mid .swatch i:nth-child(3) { background: #c4602a; }
.s-ind .swatch i:nth-child(1) { background: #ecebe8; } .s-ind .swatch i:nth-child(2) { background: #cfcfcb; } .s-ind .swatch i:nth-child(3) { background: #1f1f1f; }
.s-scan .swatch i:nth-child(1) { background: #ffffff; } .s-scan .swatch i:nth-child(2) { background: #e4e4df; } .s-scan .swatch i:nth-child(3) { background: #4f6d7a; }
.swatch i:first-child { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.s-mid h3 { font-family: Georgia, serif; } .s-ind h3 { font-family: var(--sans); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 1rem; } .s-scan h3 { font-family: var(--sans); font-weight: 400; letter-spacing: .02em; }

/* How */
.how-grid { display: grid; gap: 40px; }
.how-photo img { width: 100%; height: auto; }
.how-photo figcaption { font-size: .8rem; color: var(--muted); margin-top: 10px; }
.steps { list-style: none; margin: 0 0 18px; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 26px 52px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font: .9rem var(--serif); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 36px; bottom: 4px; width: 1px; background: var(--line); }
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); }

/* Pricing */
.plans { display: grid; gap: 14px; }
.plan { background: var(--surface); padding: 28px 24px; position: relative; }
.plan-featured { background: var(--ink); color: var(--dark-text); }
.plan-featured .for, .plan-featured li { color: #c9c3b8; }
.badge { position: absolute; top: 20px; right: 20px; margin: 0; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #c9a27e; }
.price { font-family: var(--serif); font-size: 2rem; margin: 10px 0 6px; line-height: 1.1; }
.price span { font-size: 1.05rem; color: var(--muted); }
.plan-featured .price span { color: #b1aa9e; }
.for { color: var(--muted); font-size: .93rem; }
.plan ul { margin: 0; padding-left: 18px; font-size: .93rem; }
.plan li { margin: 6px 0; }
.extras { display: grid; gap: 14px; margin-top: 14px; }
.extras > div { border: 1px solid var(--line); padding: 20px 22px; }
.extras h3 { font-size: 1.02rem; margin-bottom: 6px; }
.extras p { margin: 0; color: var(--muted); font-size: .93rem; }

/* About */
.section-dark { background: var(--dark); color: var(--dark-text); }
.section-dark .eyebrow { color: #c9a27e; }
.section-dark h2 { margin-bottom: 22px; }
.section-dark a { color: var(--dark-text); }
.about-grid { display: grid; gap: 36px; align-items: center; }
.about-photo img { width: 100%; height: auto; }
.name-note { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(236, 232, 223, .18); color: #b9b3a7; font-size: .93rem; }
.name-note span { font-family: var(--serif); font-size: 1.25rem; color: var(--dark-text); margin-right: 6px; }

/* FAQ */
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-family: var(--serif); font-size: 1.1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.35rem; color: var(--accent); }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 0 0 20px; }

/* Contact */
.contact-grid { display: grid; gap: 36px; }
.contact-grid h2 { margin-bottom: 22px; }
.email { font-family: var(--serif); font-size: 1.35rem; word-break: break-all; }
.form { background: var(--surface); padding: 24px; display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; }
.form input, .form textarea { font: 1rem var(--sans); padding: 12px; border: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--text); width: 100%; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: var(--dark); color: #9f998e; padding: 40px 0 100px; font-size: .88rem; }
.footer-inner { display: grid; gap: 20px; }
.footer-mark { font-family: var(--serif); font-size: 2.4rem; color: var(--dark-text); letter-spacing: .1em; margin: 0; line-height: 1; }
.site-footer p { margin: 0 0 4px; }
.site-footer a { color: #9f998e; }

/* Floating button on phones */
.float-cta { position: fixed; right: 16px; bottom: 16px; z-index: 30; background: var(--ink); color: var(--bg); text-decoration: none; padding: 12px 18px; font: 600 .9rem var(--sans); box-shadow: 0 6px 20px rgba(0, 0, 0, .2); transition: opacity .25s, transform .25s; }
.float-cta.hide { opacity: 0; transform: translateY(12px); pointer-events: none; }

section[id] { scroll-margin-top: var(--header); }

@media (min-width: 640px) {
  .gallery, .g-row { gap: 14px; }
  .g-row { flex-wrap: nowrap; }
  .g-row figure:first-child { flex-basis: 0; }
  .extras { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  :root { --gutter: 40px; --header: 68px; }
  .nav { display: flex; }
  .header-cta { display: inline-block; }
  .float-cta { display: none; }

  .hero { grid-template-columns: minmax(0, 1fr) auto; }
  .hero-photo { order: 2; }
  .hero-photo img { width: auto; height: min(calc(100vh - var(--header)), 50vw); }
  .hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 64px 64px 64px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
  .tate { display: block; position: absolute; top: 48px; right: 32px; writing-mode: vertical-rl; font-family: var(--serif); font-size: 1.1rem; letter-spacing: .5em; color: var(--accent); margin: 0; }

  .section { padding: 128px 0; }
  .section-head.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 56px; }
  .section-head.split .section-lead { margin: 0; }

  .services-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
  .services-grid .section-head { position: sticky; top: calc(var(--header) + 40px); margin: 0; }
  .services li { padding: 32px 0; }

  .styles { grid-template-columns: repeat(5, 1fr); border-top: 0; gap: 0; }
  .style { grid-template-columns: 1fr; row-gap: 14px; border-bottom: 0; border-left: 1px solid var(--line); padding: 4px 22px 4px; }
  .style:first-child { border-left: 0; padding-left: 0; }
  .style p { grid-column: 1; }
  .swatch { grid-row: auto; }
  .swatch i { flex: 1; width: auto; height: 64px; }

  .how-grid { grid-template-columns: 5fr 7fr; gap: 88px; align-items: center; }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 5fr 7fr; gap: 88px; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
  .site-footer { padding-bottom: 48px; }
  .footer-inner { grid-template-columns: auto 1fr; gap: 48px; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
