@import url("brand/tokens.css");

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

:root {
  color-scheme: light dark;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 18px;
  scroll-behavior: smooth;
}

html {
  overflow-x: hidden;
  scroll-padding-top: 6rem;
}

body {
  min-width: 0;
  word-break: keep-all;
  margin: 0;
  overflow-wrap: anywhere;
  background: var(--sseop-bg);
  color: var(--sseop-fg);
  font-size: 1rem;
  line-height: 1.6;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--sseop-brand);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 0.1em;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 4px solid var(--sseop-ocher);
  outline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.25;
  text-wrap: balance;
}

h1 {
  max-width: 18em;
  margin-bottom: 1.5rem;
  font-size: clamp(2.35rem, 7vw, 4.7rem);
  letter-spacing: -0.045em;
}

h2 {
  max-width: 18em;
  margin-bottom: 1.35rem;
  font-size: clamp(1.85rem, 5vw, 3.15rem);
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
}

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

p,
figcaption {
  word-break: keep-all;
  overflow-wrap: break-word;
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.narrow {
  max-width: 52rem;
}

.preview-banner {
  position: sticky;
  z-index: 100;
  top: 0;
  width: 100%;
  padding: 0.7rem max(1rem, calc((100% - 72rem) / 2));
  background: var(--sseop-ocher);
  color: var(--sseop-charcoal);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.45;
  text-align: center;
}

.site-header {
  border-bottom: 1px solid var(--sseop-warmgray);
  background: var(--sseop-bg);
}

.header-inner {
  display: flex;
  min-height: 5.25rem;
  align-items: center;
}

.brand-link {
  display: inline-flex;
  width: min(13.75rem, 68vw);
  padding-block: 0.5rem;
}

section {
  padding-block: clamp(4.5rem, 10vw, 8rem);
}

.hero {
  min-height: min(46rem, calc(100svh - 8.5rem));
  display: grid;
  align-items: center;
  padding-block: clamp(4.25rem, 11vw, 8rem);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.hero-text {
  min-width: 0;
}

.hero-media {
  min-width: 0;
  width: 100%;
  max-width: 22rem;
  margin: 0;
  justify-self: center;
}

.hero-media video {
  display: block;
  width: 292.5px;
  max-width: 100%;
  height: auto;
  max-height: 520px;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  margin-inline: auto;
  border: 1px solid var(--sseop-warmgray);
  border-radius: 8px;
}

.hero-media figcaption {
  margin-top: 1rem;
  color: var(--sseop-fg-muted);
  font-size: 16px;
}

.eyebrow,
.section-number {
  margin-bottom: 1rem;
  color: var(--sseop-brand);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-copy {
  max-width: 38rem;
  margin-bottom: 0.45rem;
  font-size: clamp(1.12rem, 2.5vw, 1.38rem);
}

.supporting,
.fine-print,
.disabled-reason,
.action-message,
small {
  color: var(--sseop-fg-muted);
  font-size: 0.89rem;
}

.supporting {
  margin-bottom: 2rem;
}

.section-tinted {
  background: color-mix(in srgb, var(--sseop-warmgray) 48%, var(--sseop-bg));
}

.notice-box,
.emphasis-box {
  margin-top: 2rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 2px solid var(--sseop-brand);
  border-radius: 0.5rem;
  background: var(--sseop-bg);
}

.notice-box strong,
.emphasis-box strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--sseop-brand);
  font-size: 1.1rem;
}

.notice-box p,
.emphasis-box p {
  margin-bottom: 0;
}

.status-list {
  margin: 2rem 0 1.35rem;
  padding: 0;
  border-top: 1px solid var(--sseop-lightstone);
  list-style: none;
}

.status-list li {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
  border-bottom: 1px solid var(--sseop-lightstone);
}

.badge,
.pending-text {
  display: inline-block;
  border: 1px solid var(--sseop-midstone);
  border-radius: 999px;
  color: var(--sseop-fg-muted);
  font-size: 0.89rem;
  font-weight: 700;
  line-height: 1.35;
}

.badge {
  flex: 0 0 auto;
  padding: 0.35rem 0.7rem;
}

.pending-text {
  padding: 0.18rem 0.55rem;
}

.fine-print {
  padding-inline-start: 1rem;
  border-inline-start: 3px solid var(--sseop-ocher);
}

.checklist-panel {
  margin-top: 2.25rem;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid var(--sseop-lightstone);
  border-radius: 0.5rem;
}

.question-list {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  counter-reset: questions;
}

.question-list li {
  position: relative;
  min-height: 2rem;
  padding: 0.75rem 0 0.75rem 2.7rem;
  border-bottom: 1px solid var(--sseop-warmgray);
  counter-increment: questions;
}

.question-list li::before {
  position: absolute;
  top: 0.82rem;
  left: 0;
  display: grid;
  width: 1.7rem;
  height: 1.7rem;
  border: 2px solid var(--sseop-brand);
  border-radius: 0.22rem;
  content: counter(questions);
  place-items: center;
  color: var(--sseop-brand);
  font-size: 0.89rem;
  font-weight: 800;
  line-height: 1;
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--sseop-brand);
  border-radius: 0.3rem;
  font: inherit;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--sseop-brand);
  color: var(--sseop-bg);
}

.button-secondary {
  background: transparent;
  color: var(--sseop-brand);
}

.button:hover {
  outline: 2px solid var(--sseop-brand);
  outline-offset: 2px;
}

.shop-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  margin-top: 2.25rem;
}

.photo-placeholder {
  display: grid;
  min-height: 22rem;
  padding: 2rem;
  border: 3px dashed var(--sseop-lightstone);
  border-radius: 0.5rem;
  place-content: center;
  text-align: center;
}

.photo-placeholder span {
  font-size: 1.3rem;
  font-weight: 750;
}

.photo-placeholder small {
  display: block;
  margin-top: 0.35rem;
}

.shop-name {
  margin-bottom: 1.5rem;
  color: var(--sseop-brand);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 850;
  line-height: 1.25;
}

.shop-info dl {
  margin: 0 0 2rem;
}

.shop-info dl div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--sseop-lightstone);
}

.shop-info dt {
  color: var(--sseop-fg-muted);
  font-weight: 700;
}

.shop-info dd {
  margin: 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.accordion-list {
  margin: 2rem 0;
  border-top: 1px solid var(--sseop-lightstone);
}

details {
  border-bottom: 1px solid var(--sseop-lightstone);
}

summary {
  padding: 1.2rem 2.75rem 1.2rem 0;
  color: var(--sseop-fg);
  font-size: 1.08rem;
  font-weight: 750;
  cursor: pointer;
}

details p {
  max-width: 46rem;
  padding: 0 1.5rem 1.4rem 0;
  margin-bottom: 0;
}

.consult-inner {
  text-align: center;
}

.consult-inner h2 {
  margin-inline: auto;
}

.consult-inner .button {
  margin-top: 1.25rem;
}

.button-disabled,
.button-disabled:hover {
  border-color: var(--sseop-lightstone);
  background: var(--sseop-warmgray);
  color: var(--sseop-midstone);
  cursor: not-allowed;
}

.disabled-reason,
.action-message {
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.action-message {
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--sseop-lightstone);
}

.footer-inner {
  padding-block: 3.5rem;
}

.footer-inner h2 {
  max-width: 18em;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer-inner p {
  margin-bottom: 0.45rem;
  color: var(--sseop-fg-muted);
  font-size: 0.89rem;
}

.toast {
  position: fixed;
  z-index: 200;
  right: 1rem;
  bottom: 1rem;
  max-width: min(24rem, calc(100% - 2rem));
  padding: 1rem 1.25rem;
  border: 2px solid var(--sseop-bg);
  border-radius: 0.35rem;
  background: var(--sseop-charcoal);
  outline: 2px solid var(--sseop-charcoal);
  color: var(--sseop-ivory);
  font-weight: 750;
}

[hidden] {
  display: none !important;
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 48rem) {
  .shop-grid {
    grid-template-columns: 1fr;
  }

  .photo-placeholder {
    min-height: 15rem;
  }
}

@media (max-width: 30rem) {
  .container {
    width: min(100% - 1.5rem, 72rem);
  }

  .preview-banner {
    padding-inline: 0.75rem;
  }

  .hero-inner {
    padding-inline-end: 0;
  }

  .status-list li,
  .shop-info dl div {
    grid-template-columns: 1fr;
  }

  .status-list li {
    align-items: flex-start;
    flex-direction: column;
  }

  .button-row,
  .button-row .button,
  .checklist-panel .button,
  .consult-inner .button {
    width: 100%;
  }
}

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

@media (prefers-color-scheme: dark) {
  .site-header {
    border-color: var(--sseop-midstone);
  }

  .brand-link {
    padding-inline: 0.65rem;
    border-radius: 0.25rem;
    background: var(--sseop-ivory);
  }

  .section-tinted {
    background: color-mix(in srgb, var(--sseop-midstone) 18%, var(--sseop-bg));
  }

  .button-primary {
    background: var(--sseop-brand);
    color: var(--sseop-charcoal);
  }

  .button-disabled,
  .button-disabled:hover {
    background: color-mix(in srgb, var(--sseop-midstone) 24%, var(--sseop-bg));
    color: var(--sseop-fg-muted);
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 800px;
  gap: 32px;
  margin-top: 2rem;
  margin-inline: auto;
}

.gallery-card {
  min-width: 0;
  margin: 0;
  padding-bottom: 1rem;
}

.gallery-card video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 480px;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  margin-inline: auto;
  border: 1px solid var(--sseop-warmgray);
  border-radius: 8px;
}

.gallery-card figcaption {
  margin-top: 1rem;
  color: var(--sseop-fg-muted);
  font-size: 0.9rem;
}

.gallery-card h3 {
  color: var(--sseop-fg);
  margin-bottom: 0.5rem;
}

.gallery-notice {
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
