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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 84px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: #161410;
  background: #f3efe6;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Segoe UI", serif;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h1 {
  margin: 0;
  font-size: clamp(2.7rem, 5.4vw, 5.1rem);
  font-weight: 520;
  letter-spacing: -0.045em;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.9rem);
}

h3 {
  margin: 0;
  font-size: 1.22rem;
}

p {
  margin: 0;
}

ul,
ol,
dl {
  margin: 0;
  padding: 0;
}

.container {
  width: min(100% - 32px, 1160px);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -48px;
  z-index: 50;
  background: #f3efe6;
  color: #161410;
  padding: 8px 12px;
}

.skip:focus {
  top: max(12px, env(safe-area-inset-top));
}

:focus-visible {
  outline: 2px solid #e0b56a;
  outline-offset: 3px;
}

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 30;
  padding-top: env(safe-area-inset-top);
  color: #f6f1e7;
  background: linear-gradient(to bottom, rgba(8, 9, 11, 0.78), rgba(8, 9, 11, 0));
}

.site-header.is-solid {
  background: rgba(12, 13, 15, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-inline-end: auto;
}

.mark {
  width: 32px;
  height: 32px;
  flex: none;
}

.logo-words {
  display: grid;
  line-height: 1.1;
}

.logo strong {
  letter-spacing: 0.18em;
  font-size: 0.86rem;
  font-weight: 680;
}

.logo small {
  color: rgba(246, 241, 231, 0.7);
  font-size: 0.72rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: rgba(246, 241, 231, 0.86);
  font-size: 0.94rem;
}

.site-nav a:hover {
  color: #fff;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  align-items: center;
  justify-content: center;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  position: relative;
}

.menu-lines::before,
.menu-lines::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
}

.menu-lines::before {
  top: -6px;
}

.menu-lines::after {
  top: 6px;
}

.lang-switch select,
.sort-switch select,
.search-switch input,
.form-grid select,
.form-grid input,
.form-grid textarea {
  font-size: 16px;
  min-height: 44px;
}

.lang-switch select,
.sort-switch select {
  background: rgba(255, 255, 255, 0.08);
  color: #f7f4ef;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0 12px;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #f6f1e7;
  background: #0c0d0f;
  isolation: isolate;
  padding: 108px 0 56px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(224, 181, 106, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 181, 106, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 68%);
}

.hero-layout {
  display: grid;
  gap: 28px;
  align-items: center;
}

.pill {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 6px 10px;
  border: 1px solid rgba(224, 181, 106, 0.55);
  background: rgba(224, 181, 106, 0.12);
  color: #f0d7a8;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 680;
}

.hero h1 {
  max-width: 11em;
}

.lede,
.section-lede {
  margin-top: 16px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero .lede {
  max-width: 38em;
  color: rgba(246, 241, 231, 0.72);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1.2;
}

.btn-primary {
  background: #e0b56a;
  color: #1c140b;
  font-weight: 680;
}

.btn-primary:hover {
  background: #ebc583;
}

.btn-ghost {
  background: transparent;
  color: #f6f1e7;
  border-color: rgba(246, 241, 231, 0.35);
}

.btn-ghost::after {
  content: "→";
  margin-inline-start: 8px;
}

[dir="rtl"] .btn-ghost::after {
  content: "←";
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(224, 181, 106, 0.45);
}

.stat-row b {
  display: block;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Segoe UI", serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 520;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-row span {
  display: block;
  margin-top: 6px;
  color: rgba(246, 241, 231, 0.62);
  font-size: 0.86rem;
}

.hero-photo {
  position: relative;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  min-height: 520px;
  background: #17181b;
}

.hero-photo img {
  width: 100%;
  height: min(78svh, 760px);
  min-height: 520px;
  object-fit: cover;
  object-position: 38% 62%;
}

.ribbon {
  position: absolute;
  inset-inline-start: 14px;
  top: 14px;
  max-width: calc(100% - 28px);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(12, 13, 15, 0.72);
  color: #f6f1e7;
  font-size: 0.78rem;
}

.screen-card {
  position: absolute;
  inset-inline: 14px;
  bottom: 14px;
  padding: 14px 16px 12px;
  border-radius: 16px;
  background: rgba(236, 230, 218, 0.94);
  color: #241f18;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.screen-kicker {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 700;
  color: #7a6240;
}

.screen-pay {
  margin-top: 4px;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Segoe UI", serif;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.screen-hold {
  display: inline-flex;
  margin-top: 10px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px dashed #8a7350;
  color: #6d5a3d;
  font-size: 0.86rem;
}

.screen-note {
  margin-top: 8px;
  color: #5e564c;
  font-size: 0.78rem;
}

.section-stone,
.section-night {
  padding: 80px 0;
}

.section-tight {
  padding-top: 0;
}

.section-night {
  color: #f6f1e7;
  background: #121316;
}

.section-night.section-tight {
  padding-bottom: 88px;
}

.kicker {
  margin: 0 0 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 700;
  color: #e0b56a;
}

.kicker-ink {
  color: #8a6232;
}

.section-head {
  display: grid;
  gap: 8px;
  max-width: 40em;
}

.section-lede {
  color: #5c564c;
}

.section-night .section-lede {
  color: rgba(246, 241, 231, 0.72);
}

.piece-grid,
.why-grid,
.limit-grid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.piece,
.why-grid article,
.limit-grid article,
.calc-card,
.reading-detail,
.allow-row {
  min-width: 0;
}

.piece {
  background: #fffaf3;
  border: 1px solid rgba(36, 31, 24, 0.08);
  border-radius: 20px;
  overflow: hidden;
}

.piece img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.piece h3,
.piece > p,
.piece .spec {
  margin-inline: 16px;
}

.piece h3 {
  margin-top: 16px;
}

.piece > p {
  margin-top: 8px;
  color: #5c564c;
}

.spec {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  margin-bottom: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(36, 31, 24, 0.1);
}

.spec div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.spec dt {
  color: #6e675d;
}

.spec dd {
  margin: 0;
  font-weight: 680;
  text-align: end;
}

.why-grid article {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: #191b1f;
}

.why-grid span,
.step-list span {
  display: block;
  margin-bottom: 10px;
  color: #e0b56a;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
}

.why-grid p,
.step-list p {
  margin-top: 8px;
  color: rgba(246, 241, 231, 0.72);
}

.stamp {
  margin-top: 16px;
  color: rgba(246, 241, 231, 0.62);
  font-size: 0.88rem;
}

.stamp-ink {
  color: #6e675d;
}

.board-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filters button,
.mark-btn {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(36, 31, 24, 0.16);
  background: transparent;
  color: inherit;
}

.section-night .filters button,
.section-night .sort-switch select {
  border-color: rgba(255, 255, 255, 0.2);
}

.filters button[aria-pressed="true"] {
  background: #1c140b;
  color: #f6f1e7;
  border-color: #1c140b;
}

.section-night .filters button[aria-pressed="true"] {
  background: #e0b56a;
  color: #1c140b;
  border-color: #e0b56a;
}

.search-switch input {
  width: min(100%, 240px);
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(36, 31, 24, 0.16);
  background: #fffaf3;
  color: #161410;
}

.showing {
  margin-inline-start: auto;
  color: #6e675d;
  font-size: 0.9rem;
}

.section-night .showing {
  color: rgba(246, 241, 231, 0.66);
}

.allow-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.allow-row {
  display: grid;
  gap: 8px 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fffaf3;
  border: 1px solid rgba(36, 31, 24, 0.08);
}

.allow-main {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.allow-main small,
.allow-meta {
  color: #6e675d;
}

.allow-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.mark-btn {
  justify-self: start;
  background: #1c140b;
  color: #f6f1e7;
  border-color: #1c140b;
}

.mark-btn[aria-pressed="true"] {
  background: transparent;
  color: #1c140b;
}

.empty-note,
.board-note {
  margin-top: 14px;
  color: #6e675d;
}

.section-night .empty-note,
.section-night .board-note {
  color: rgba(246, 241, 231, 0.66);
}

.board-layout,
.method-layout,
.request-layout,
.calc-layout,
.faq-layout {
  display: grid;
  gap: 22px;
}

.board-layout {
  margin-top: 16px;
}

.reading-list {
  display: grid;
  gap: 8px;
}

.file-btn {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 12px 14px;
  text-align: start;
  color: #f6f1e7;
  background: #191b1f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.file-btn[aria-pressed="true"] {
  border-color: #e0b56a;
}

.file-name {
  display: grid;
}

.file-kind {
  color: rgba(246, 241, 231, 0.6);
  font-size: 0.82rem;
}

.file-score {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Segoe UI", serif;
  font-size: 1.5rem;
  font-weight: 520;
}

.reading-detail {
  padding: 18px;
  border-radius: 18px;
  background: #191b1f;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.score-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.score-num {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Segoe UI", serif;
  font-size: 2.4rem;
  line-height: 1;
}

.band-label {
  margin-bottom: 8px;
  color: #e0b56a;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

.lens {
  margin-top: 12px;
}

.lens-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
}

.track {
  height: 4px;
  margin-top: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.track i {
  display: block;
  height: 100%;
  background: #e0b56a;
}

.frame {
  margin: 0;
}

.frame img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.request-photo img {
  aspect-ratio: 1;
}

.frame figcaption {
  margin-top: 8px;
  color: rgba(246, 241, 231, 0.66);
  font-size: 0.9rem;
}

.step-list {
  list-style: none;
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.step-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
}

.limit-grid article {
  padding: 20px;
  border-radius: 18px;
  background: #fffaf3;
  border: 1px solid rgba(36, 31, 24, 0.08);
}

.limit-grid ul {
  margin-top: 12px;
  padding-inline-start: 1.1em;
}

.limit-grid li + li {
  margin-top: 8px;
}

.calc-card {
  padding: 18px;
  border-radius: 18px;
  background: #fffaf3;
  border: 1px solid rgba(36, 31, 24, 0.08);
}

.calc-row label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.calc-row output {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.calc-row input {
  width: 100%;
  margin: 8px 0 16px;
  accent-color: #8a6232;
}

.weight-grid {
  display: grid;
  gap: 10px;
}

.weight-grid article {
  padding-top: 8px;
}

.weight-grid b {
  display: block;
  margin: 4px 0;
  font-size: 1.4rem;
}

.weight-grid i {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: #8a6232;
}

.weight-grid p,
.weight-line,
.disclaimer,
.form-status,
.field-error {
  color: #6e675d;
  font-size: 0.9rem;
}

.weight-line,
.disclaimer {
  margin-top: 12px;
}

.faq-item + .faq-item {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-btn {
  display: flex;
  width: 100%;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 14px 0;
  text-align: start;
  color: inherit;
  background: transparent;
  border: 0;
}

.faq-mark {
  width: 12px;
  height: 12px;
  flex: none;
  position: relative;
}

.faq-mark::before,
.faq-mark::after {
  content: "";
  position: absolute;
  background: currentColor;
  inset-inline-start: 0;
  top: 5px;
  width: 12px;
  height: 1.5px;
}

.faq-mark::after {
  transform: rotate(90deg);
}

.faq-btn[aria-expanded="true"] .faq-mark::after {
  transform: none;
}

.faq-panel {
  padding-bottom: 14px;
  color: rgba(246, 241, 231, 0.74);
}

.form-grid {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.field {
  display: grid;
  gap: 6px;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(36, 31, 24, 0.16);
  background: #fffaf3;
  color: #161410;
}

.form-grid textarea {
  min-height: 120px;
  resize: vertical;
}

.field-error:empty,
.form-status:empty {
  display: none;
}

.form-status {
  margin-top: 10px;
}

input[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: #8a3b32;
}

.site-footer {
  padding: 36px 0 48px;
  color: #f6f1e7;
  background: #0c0d0f;
}

.footer-brand {
  letter-spacing: 0.16em;
  margin-bottom: 8px;
}

.footer-grid p + p {
  margin-top: 8px;
}

.footer-grid a {
  color: #e0b56a;
}

.footer-replace,
.site-footer p {
  color: rgba(246, 241, 231, 0.72);
}

.sticky-action {
  display: none;
}

.sticky-action.is-hidden {
  display: none;
}

@media (min-width: 720px) {
  .why-grid,
  .limit-grid,
  .weight-grid {
    grid-template-columns: 1fr 1fr;
  }

  .weight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .allow-row {
    grid-template-columns: 1.3fr 0.8fr auto;
    align-items: center;
  }

  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .span-2 {
    grid-column: 1 / -1;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 24px;
  }
}

@media (min-width: 900px) {
  .hero-layout,
  .piece-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 40px;
  }

  .why-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .board-layout,
  .method-layout,
  .request-layout,
  .calc-layout,
  .faq-layout {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }

  .method-layout {
    grid-template-columns: 0.86fr 1.14fr;
  }

  .request-photo img {
    height: auto;
    min-height: 0;
    aspect-ratio: 1;
    object-fit: cover;
  }
}

@media (max-width: 1080px) {
  .menu-btn {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    background: #14161a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-nav.is-open {
    display: flex;
  }
}

@media (max-width: 767px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .stat-row {
    grid-template-columns: 1fr 1fr;
  }

  .showing {
    margin-inline-start: 0;
  }

  .hero {
    align-items: start;
    min-height: 0;
    padding: calc(72px + env(safe-area-inset-top)) 0 28px;
  }

  .hero-layout {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .hero-photo {
    order: -1;
    min-height: 0;
  }

  .hero-photo img {
    height: 52svh;
    min-height: 320px;
    max-height: 520px;
    object-position: 42% 56%;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 9vw, 2.75rem);
  }

  .hero .lede {
    margin-top: 12px;
    font-size: 0.98rem;
  }

  .screen-card {
    position: relative;
    inset: auto;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .screen-pay {
    font-size: 1.35rem;
  }

  .sticky-action {
    display: block;
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 25;
    padding: 10px 16px max(10px, env(safe-area-inset-bottom));
    background: rgba(12, 13, 15, 0.94);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .sticky-action .btn {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .logo small {
    display: none;
  }

  .lang-switch select {
    max-width: 108px;
    padding-inline: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
