/* 島誌 Daiji — official site (synced with App theme via daiji-tokens.css) */
@import url("./daiji-tokens.css");

:root {
  --bg: var(--bg-primary);
  --bg-soft: var(--bg-tertiary);
  --ink: var(--text-primary);
  --ink-soft: var(--text-secondary);
  --muted: var(--text-caption);
  --line: var(--border-divider-strong);
  --accent: var(--color-sea-mist);
  --accent-soft: var(--color-mist-wash);
  --surface: var(--bg-secondary);
  --max: 42rem;
  --pad: clamp(1.25rem, 4vw, 2rem);
  --serif: var(--font-serif);
  --sans: var(--font-sans);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ink);
}

.wrap {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}

.wrap-wide {
  width: min(100% - 2 * var(--pad), 56rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 248, 249, 0.94);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--pad);
  width: min(100%, 56rem);
  margin-inline: auto;
}

.brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.brand span {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.14em;
  margin-top: 0.1rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: flex-end;
}

.nav a {
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

/* Hero */
.hero {
  padding: clamp(2.75rem, 10vw, 5.5rem) 0 clamp(2rem, 6vw, 3.5rem);
}

.hero__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 1rem;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 8vw, 3.2rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
}

.hero__slogan {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 4.2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 1.15rem;
  max-width: 22rem;
}

.hero__lead {
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 28rem;
  margin: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Sections */
.section {
  padding: clamp(2.5rem, 8vw, 4.5rem) 0;
  border-top: 1px solid var(--line);
}

.section--soft {
  background: var(--bg-soft);
}

.section__label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.section__title {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 5vw, 1.9rem);
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 1rem;
}

.section__text {
  color: var(--ink-soft);
  margin: 0 0 1rem;
  max-width: 36rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .feature-list {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 2rem;
  }
}

.feature-list li {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.feature-list strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.feature-list span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* App screenshots */
.shots {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

@media (min-width: 640px) {
  .shots {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
  }
}

.phone {
  margin: 0 auto;
  width: min(100%, 220px);
  padding: 0.65rem;
  background: var(--ink);
  border-radius: 1.6rem;
  box-shadow: none;
}

.phone__screen {
  overflow: hidden;
  border-radius: 1.15rem;
  background: #443c3c;
  aspect-ratio: 9 / 16;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.25rem;
  text-align: center;
}

.phone__screen img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
}

.phone__screen p {
  margin: 0;
  color: #d8d0d0;
  font-size: 0.78rem;
  line-height: 1.5;
}

.shot-photo {
  overflow: hidden;
  border-radius: 0.35rem 1.5rem 0.35rem 1.25rem;
  border: 1px solid var(--line);
  background: var(--surface);
}

.shot-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.shot-caption {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn--primary {
  background: var(--ink);
  color: #f7f8f9;
}

.btn--primary:hover {
  background: #10161a;
  color: #f7f8f9;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
}

/* Prose pages */
.page-hero {
  padding: clamp(2.5rem, 8vw, 4rem) 0 1.5rem;
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 6vw, 2.4rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.page-hero p {
  color: var(--ink-soft);
  margin: 0;
  max-width: 32rem;
}

.prose {
  padding-bottom: clamp(3rem, 10vw, 5rem);
}

.prose h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2.25rem 0 0.75rem;
}

.prose h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose ul {
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.note {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  background: var(--bg-soft);
  border-left: 3px solid var(--accent-soft);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.fee-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}

.fee-row strong {
  font-family: var(--serif);
}

/* Utility / checkout pages */
.util-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 2rem 0 4rem;
}

.util-card {
  width: min(100% - 2 * var(--pad), 26rem);
  margin-inline: auto;
  padding: 1.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.util-card h1 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}

.util-card p {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
}

.util-card .err {
  color: #8b3a3a;
}

.util-card .muted {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 1.25rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
}

.site-footer__inner {
  width: min(100% - 2 * var(--pad), 56rem);
  margin-inline: auto;
  display: grid;
  gap: 1.25rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.85rem;
}

.site-footer a:hover {
  color: var(--ink);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}
