/* Quiet Tech / Soft Future — precision over decoration. Shared EN / JA layer. */
:root {
  --system-font: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --system-size: clamp(10px, 0.77vw, 12px);
  --system-track: 0.16em;
}
/* Only the photographic room is graded; the printer is a separate canvas. */
.room-background {
  filter: saturate(0.78) contrast(0.91) brightness(1.045);
}
.chapter,
.edition,
.eyebrow,
.gallery-controls .print-count,
.gallery-caption,
.stage-footer,
.section-topline,
.tray-label,
.spec-item dd,
.faq-index,
.product-name {
  font-family: var(--system-font);
  font-size: var(--system-size);
  font-weight: 400;
  letter-spacing: var(--system-track);
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}
.gallery-caption {
  font-size: 10px;
  letter-spacing: 0.13em;
}
.measure {
  font-family: var(--system-font);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
  line-height: 1.12;
}
.measure-label {
  display: block;
  font-family: var(--system-font);
  font-size: clamp(10px, 0.76cqw, 12px) !important;
  font-weight: 400;
  letter-spacing: 0.16em;
  margin-bottom: 4px;
}
.measure-reading {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.measure strong,
.measure.open-height strong,
.measure.open-angle strong {
  font: 500 clamp(22px, 2.55cqw, 39px)/1 var(--system-font);
  letter-spacing: -0.065em;
}
.measure-unit,
.measure.open-height .measure-unit {
  font: 400 clamp(10px, 0.9cqw, 13px)/1 var(--system-font);
  letter-spacing: 0.02em;
}
.open-angle .measure-reading {
  gap: 0;
}
.measure p {
  font: 400 clamp(9px, 0.76cqw, 11px)/1.55 var(--system-font);
  letter-spacing: 0.11em;
  margin-top: 8px;
}
.measurement-lines path {
  stroke-width: 1;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
}
.measurement-lines .extension {
  stroke-dasharray: 3 5;
  opacity: 0.52;
}
.measurement-lines circle {
  opacity: 0.8;
}
.closed-measures .measure strong,
.closed-measures .measure-unit,
.closed-measures .measure-label,
.open-measures strong,
.open-measures .measure-unit,
.open-measures p {
  opacity: 0;
}
/* Two stories on ONE continuous tabletop; no blurred seam or separate photo panels. */
.ideas-grid {
  background: #fcfbf8;
  gap: 0;
  padding-top: 25px;
}
.idea-card {
  padding-top: clamp(48px, 5vw, 80px);
  overflow: hidden;
}
.idea-copy .headline {
  font-size: clamp(36px, 3.75vw, 62px);
  line-height: 1.045;
}
.idea-copy .eyebrow {
  font-size: 10px;
  margin-bottom: 25px;
}
.idea-copy .body-copy {
  font-size: clamp(14px, 1.12vw, 18px);
  line-height: 1.5;
  min-height: 0;
  margin-top: 22px;
}
.idea-visual {
  position: relative;
  height: auto;
  isolation: isolate;
}
.gift-note {
  aspect-ratio: 1.13;
  padding: 3.5%;
  background: #faf8f0;
  transform: rotate(12deg);
  color: #626953;
}
.gift-note img {
  height: 53%;
  object-fit: cover;
}
.gift-note span {
  font-size: clamp(7px, 0.64vw, 11px);
  line-height: 1.45;
  margin-top: 7%;
}
.gift-note em {
  font-size: clamp(13px, 1.25vw, 20px);
  margin-top: 8%;
}
.cut-paper {
  width: 20%;
  padding: 2.7% 1.5%;
  background: #f1e9dc;
  font:
    clamp(12px, 1.23vw, 19px)/1.15 Georgia,
    serif;
  transform: translateY(-8px) rotate(-5deg);
}
/* Calm hierarchy: product headlines peak; later information relaxes. */
.specs-section .headline {
  font-size: clamp(42px, 5.1vw, 82px);
}
.specs-intro {
  font-size: clamp(20px, 2.5vw, 39px);
  margin-top: 20px;
}
.spec-item strong {
  font-size: clamp(54px, 6.8vw, 106px);
}
.spec-item dt span {
  font-family: var(--system-font);
  font-size: clamp(18px, 2vw, 29px);
  letter-spacing: -0.04em;
}
.spec-item dd {
  font-size: clamp(10px, 0.9vw, 13px);
  line-height: 1.7;
  letter-spacing: 0.12em;
  color: #69706a;
  margin-top: 24px;
  transition: color 0.25s;
}
.spec-item::before,
.spec-item::after {
  transition: background-color 0.3s;
}
.faq-copy .headline {
  font-size: clamp(42px, 4.1vw, 66px);
}
.faq-index {
  font-size: 10px;
  color: #777f75;
  margin-right: 20px;
  flex-shrink: 0;
}
.faq-item {
  position: relative;
}
.faq-item::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  height: 1px;
  width: 100%;
  background: #828d7e;
  transform: scaleX(0);
  transform-origin: left;
}
.faq-item.open::before {
  transform: scaleX(1);
}
.faq-item h3 button {
  justify-content: flex-start;
  gap: 0;
  min-height: 70px;
}
.faq-item h3 button > span {
  margin-left: auto;
  transition: transform 0.28s;
}
.faq-item h3 button > span {
  padding-left: 0;
  min-width: 20px;
  text-align: center;
}
.faq-answer p {
  margin-left: 35px;
}
/* A weak attraction helps placement, while all coordinates remain freely editable. */
.wall-print {
  --paper-scale: 1;
  transform: translate3d(var(--paper-x, 0px), var(--paper-y, 0px), 0)
    translate(-50%, -50%) rotate(var(--rotation, 0deg))
    scale(var(--paper-scale));
  transition: box-shadow 0.28s ease-out;
}
.wall-print.dragging {
  transition: none;
  box-shadow: 4px 10px 17px #483e3130;
  z-index: 5;
}
.wall-print.dragging.magnet-active {
  box-shadow: 2px 7px 12px #483e3125;
}
/* Same source angle as FIRST, now contained and centered in the left product area. */
.buy-section {
  width: 100%;
  min-height: 650px;
  aspect-ratio: 16/7.8;
}
.memories-section {
  width: 100%;
}
.buy-product {
  top: 0;
  height: 100%;
  mask-image: none;
  display: grid;
  place-items: center;
}
.buy-product canvas {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  aspect-ratio: 1280/900;
  object-fit: contain;
}
.buy-copy {
  margin: 18% 5% 10% 57%;
}
.buy-copy .headline {
  font-size: clamp(34px, 3.65vw, 59px);
  line-height: 1.065;
}
@media (hover: hover) {
  .spec-item:hover dd {
    color: #283f31;
  }
  .spec-item:hover::before,
  .spec-item:hover::after {
    background-color: #8a9786;
  }
}
@media (max-width: 760px) {
  .chapter,
  .eyebrow,
  .edition,
  .section-topline {
    font-size: 10px;
    letter-spacing: 0.14em;
  }
  .stage-footer {
    font-size: 8px;
    letter-spacing: 0.1em;
  }
  .gallery-controls .print-count {
    font-size: 10px;
    letter-spacing: 0.12em;
  }
  .gallery-caption {
    font-size: 8px;
    letter-spacing: 0.12em;
  }
  .measure-label {
    font-size: 9px !important;
    letter-spacing: 0.12em;
    margin-bottom: 3px;
  }
  .measure strong,
  .measure.open-height strong,
  .measure.open-angle strong {
    font-size: 23px;
  }
  .measure-unit,
  .measure.open-height .measure-unit {
    font-size: 10px;
  }
  .measure p {
    font-size: 8px;
    letter-spacing: 0.035em;
    line-height: 1.5;
  }
  .measure.height strong {
    font-size: 22px;
  }
  .measure-reading {
    gap: 3px;
  }
  .idea-card {
    padding-top: 45px;
  }
  .ideas-grid {
    padding-top: 10px;
  }
  .idea-copy {
    min-height: 0;
    padding: 0 6% 24px;
  }
  .idea-copy .eyebrow {
    margin-bottom: 20px;
  }
  .idea-copy .body-copy {
    font-size: 14px;
    margin-top: 20px;
  }
  .idea-visual {
    margin: 0;
  }
  .gift-note {
    padding: 3.5%;
  }
  .gift-note span {
    font-size: 6px;
  }
  .gift-note em {
    font-size: 12px;
  }
  .cut-paper {
    left: 57%;
    width: 21%;
    padding: 3% 1%;
    font-size: 11px;
  }
  .specs-section .headline {
    font-size: 39px;
  }
  .specs-intro {
    font-size: 23px;
  }
  .spec-item strong {
    font-size: 46px;
  }
  .spec-item dt span {
    font-size: 17px;
  }
  .spec-item dd {
    font-size: 10px;
    max-width: 14em;
    letter-spacing: 0.08em;
    line-height: 1.6;
    margin-top: 18px;
  }
  .faq-copy .headline {
    font-size: 40px;
  }
  .faq-index {
    margin-right: 14px;
  }
  .faq-item h3 {
    font-size: 14px;
  }
  .faq-answer p {
    margin-left: 27px;
  }
  .buy-section {
    min-height: 740px;
    aspect-ratio: auto;
  }
  .buy-product {
    height: auto;
    top: 58px;
    min-height: 265px;
  }
  .buy-copy {
    margin: 360px 7% 60px;
  }
  .buy-copy .headline {
    font-size: clamp(29px, 8.2vw, 36px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .gift-note {
    transform: rotate(12deg) !important;
  }
  .cut-paper {
    transform: translateY(-2px) rotate(-5deg) !important;
  }
  .wall-print.dragging {
    --paper-scale: 1;
  }
}
.reduce-motion .gift-note {
  transform: rotate(12deg) !important;
}
.reduce-motion .cut-paper {
  transform: translateY(-2px) rotate(-5deg) !important;
}
.reduce-motion .wall-print.dragging {
  --paper-scale: 1;
}

@media (max-width: 380px) {
  .spec-item strong {
    font-size: 38px;
  }
  .spec-item dt span {
    font-size: 14px;
    white-space: nowrap;
  }
}
