:root {
  --paper: #fbf8f1;
  --paper-soft: #f7f1e5;
  --white: #fffdf8;
  --charcoal: #292824;
  --muted: #69655d;
  --line: #ded6c7;
  --amber: #b77920;
  --mango: #e3a126;
  --teal: #397f7d;
  --green: #6e8d45;
  --coral: #d77d5a;
  --gold: #a98748;
  --content: 920px;
  --gutter: clamp(20px, 5vw, 42px);
  color: var(--charcoal);
  background: var(--paper);
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 80% 8%, rgba(226, 197, 139, 0.1), transparent 25rem),
    linear-gradient(180deg, #fffdf9 0%, var(--paper) 42%, #faf6ee 100%);
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--charcoal);
  color: white;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top)) var(--gutter) 9px;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.wordmark {
  width: clamp(178px, 31vw, 270px);
  height: auto;
}

.brand-mark {
  width: clamp(64px, 10.5vw, 94px);
  height: auto;
  flex: none;
}

main {
  overflow: clip;
}

.hero {
  position: relative;
  isolation: isolate;
  width: min(calc(100% - (var(--gutter) * 2)), var(--content));
  height: clamp(315px, 45vw, 430px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(169, 135, 72, 0.16);
  border-radius: 26px;
  background: #f6f0e6;
  box-shadow: 0 22px 52px rgba(97, 76, 38, 0.07);
}

.hero-picture,
.hero-picture img,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-picture img {
  object-fit: cover;
  object-position: 58% center;
  animation: hero-in 1.15s ease-out both;
}

.hero-shade {
  z-index: 1;
  background: linear-gradient(90deg, rgba(255, 252, 246, 0.98) 0%, rgba(255, 252, 246, 0.86) 37%, rgba(255, 252, 246, 0.16) 68%, transparent 100%);
}

.hero-copy-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 62%;
  height: 100%;
  padding: clamp(24px, 5vw, 48px);
}

h1 {
  margin: 0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  font-size: clamp(29px, 4.3vw, 42px);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.035em;
  text-wrap: balance;
}

h1 span {
  display: block;
  white-space: nowrap;
}

.hero-nav {
  display: grid;
  gap: 4px;
  margin-top: clamp(16px, 2.4vw, 26px);
}

.hero-nav a {
  width: fit-content;
  padding: 3px 0;
  color: rgba(59, 55, 48, 0.62);
  font-size: clamp(14px, 1.9vw, 16px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.055em;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.hero-nav a:hover,
.hero-nav a:focus-visible {
  color: rgba(41, 40, 36, 0.92);
  transform: translateX(3px);
}

.hero-nav a:focus-visible {
  outline: 2px solid rgba(183, 121, 32, 0.28);
  outline-offset: 3px;
  border-radius: 2px;
}

.apps-section {
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: clamp(48px, 7vw, 72px) var(--gutter) 14px;
}

.section-heading {
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--gold);
  font-family: ui-serif, Georgia, serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

h2 {
  margin: 0;
  font-size: clamp(23px, 3.4vw, 29px);
  line-height: 1.35;
  letter-spacing: 0.03em;
}

.app-list {
  border-top: 1px solid var(--line);
}

.app-row {
  position: relative;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 32px;
  align-items: center;
  gap: clamp(14px, 2.5vw, 20px);
  min-height: 108px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
  scroll-margin-top: 18px;
}

a.app-row:hover,
a.app-row:focus-visible {
  z-index: 1;
  color: #171612;
  background: rgba(255, 255, 255, 0.52);
  transform: translateY(-2px);
}

a.app-row:focus-visible {
  outline: 3px solid rgba(183, 121, 32, 0.32);
  outline-offset: 3px;
  border-radius: 14px;
}

.app-row--preparing {
  margin: 0 -12px;
  padding-inline: 14px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, rgba(245, 217, 160, 0.3), rgba(255, 253, 248, 0.46));
}

.app-icon {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(78, 65, 42, 0.06);
}

.app-icon-block {
  display: grid;
  width: 68px;
  justify-items: center;
  gap: 5px;
}

.app-icon-block .app-icon {
  width: 58px;
  height: 58px;
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-icon--musica img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.app-copy {
  min-width: 0;
}

.app-copy h3 {
  margin: 0;
  font-family: ui-serif, "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(20px, 2.7vw, 24px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.025em;
}

.app-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.9vw, 17px);
  font-weight: 500;
  line-height: 1.55;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 1px 7px 2px;
  border: 1px solid rgba(183, 121, 32, 0.35);
  border-radius: 999px;
  color: var(--amber);
  background: rgba(255, 252, 244, 0.78);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.app-arrow {
  justify-self: end;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 27px;
  font-weight: 300;
  line-height: 1;
  transition: transform 180ms ease, color 180ms ease;
}

a.app-row:hover .app-arrow,
a.app-row:focus-visible .app-arrow {
  transform: translateX(5px);
}

.app-arrow--amber { color: var(--amber); }
.app-arrow--sky { color: #5d92a8; }
.app-arrow--teal { color: var(--teal); }
.app-arrow--green { color: var(--green); }
.app-arrow--coral { color: var(--coral); }
.app-arrow--muted { color: rgba(183, 121, 32, 0.42); }

.site-footer {
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 30px var(--gutter) calc(44px + env(safe-area-inset-bottom));
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.back-to-top {
  position: fixed;
  z-index: 10;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(169, 135, 72, 0.18);
  border-radius: 50%;
  color: #6f6047;
  background: rgba(248, 242, 230, 0.88);
  box-shadow: 0 8px 22px rgba(68, 55, 30, 0.08);
  text-decoration: none;
  font-size: 22px;
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hero-in {
  from { opacity: 0; transform: scale(1.018); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 620px) {
  .site-header {
    padding-top: calc(12px + env(safe-area-inset-top));
    padding-bottom: 8px;
  }

  .brand-row {
    gap: 12px;
  }

  .wordmark {
    width: 172px;
  }

  .brand-mark {
    width: 60px;
  }

  .hero {
    height: 305px;
    border-radius: 20px;
  }

  .hero-picture img {
    object-position: 66% center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(255, 252, 246, 0.92) 0%, rgba(255, 252, 246, 0.62) 48%, rgba(255, 252, 246, 0.04) 77%),
      linear-gradient(90deg, rgba(255, 252, 246, 0.94) 0%, rgba(255, 252, 246, 0.46) 60%, transparent 100%);
  }

  .hero-copy-wrap {
    justify-content: flex-start;
    width: 100%;
    padding: 22px 20px;
  }

  h1 {
    font-size: clamp(24px, 6.3vw, 27px);
    line-height: 1.58;
    letter-spacing: 0.018em;
  }

  .hero-nav {
    gap: 2px;
    margin-top: 12px;
  }

  .hero-nav a {
    padding-block: 2px;
    font-size: 14px;
  }

  .apps-section {
    padding-top: 44px;
  }

  .app-row {
    grid-template-columns: 58px minmax(0, 1fr) 24px;
    gap: 12px;
    min-height: 94px;
    padding-block: 12px;
  }

  .app-row--preparing {
    margin-inline: -8px;
    min-height: 104px;
    padding-inline: 10px;
  }

  .app-icon {
    width: 58px;
    height: 58px;
  }

  .app-icon-block {
    width: 58px;
    gap: 4px;
  }

  .app-icon-block .app-icon {
    width: 51px;
    height: 51px;
  }

  .app-copy h3 {
    font-size: 19px;
  }

  .app-copy p {
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.46;
  }

  .app-arrow {
    font-size: 24px;
  }
}

@media (max-width: 370px) {
  :root { --gutter: 17px; }

  .wordmark { width: 162px; }
  .brand-mark { width: 56px; }

  h1 {
    font-size: 23px;
  }

  .app-row {
    grid-template-columns: 56px minmax(0, 1fr) 20px;
    gap: 10px;
  }

  .app-icon {
    width: 56px;
    height: 56px;
  }

  .app-icon-block {
    width: 56px;
  }

  .app-icon-block .app-icon {
    width: 49px;
    height: 49px;
  }

  .app-copy h3 {
    font-size: 18px;
  }

  .app-copy p {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
