:root {
  color-scheme: light;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --surface-soft: #f4f1e9;
  --ink: #20231f;
  --muted: #6f736c;
  --line: #e5e0d4;
  --accent: #8a6a2f;
  --accent-dark: #694c1c;
  --accent-soft: #f2ead8;
  --blue: #3f6fb5;
  --green: #2f8055;
  --orange: #c76c2f;
  --red: #b34b42;
  --shadow: 0 20px 50px rgb(61 49 24 / 8%);
  --radius-large: 24px;
  --radius-medium: 16px;
  --radius-small: 10px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgb(232 222 198 / 44%), transparent 30rem),
    var(--paper);
  line-height: 1.6;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

button,
a[href] {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgb(63 111 181 / 45%);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
}

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

.demo-member-context {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr);
  align-items: center;
  gap: 2px 8px;
  min-width: 280px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: rgb(255 255 255 / 88%);
}

.demo-member-context label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.demo-member-context select {
  width: 100%;
  min-height: 34px;
  padding: 4px 8px;
  border: 1px solid #cbc3b1;
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 0.78rem;
}

.demo-member-context small {
  grid-column: 1 / -1;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.64rem;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: rgb(255 255 255 / 92%);
  box-shadow: var(--shadow);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.panel-heading h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.3;
}

.feature-navigation-card {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 11px;
  min-width: 190px;
  min-height: 74px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: #fff;
  cursor: pointer;
  text-align: left;
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.feature-navigation-card:hover {
  border-color: #cbc3b1;
  box-shadow: 0 12px 30px rgb(44 38 26 / 9%);
  transform: translateY(-2px);
}

.feature-navigation-icon {
  display: grid;
  width: 42px;
  height: 42px;
  overflow: hidden;
  place-items: center;
  border-radius: 11px;
  background: #fff;
}

.feature-navigation-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.custom-navigation-icon img {
  transform: scale(1.55);
}

.feature-navigation-card strong,
.feature-navigation-card small {
  display: block;
}

.feature-navigation-card strong {
  font-size: 0.86rem;
}

.feature-navigation-card small {
  color: var(--muted);
  font-size: 0.68rem;
}

.primary-button,
.secondary-button,
.text-button,
.icon-button {
  min-height: 42px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.primary-button:hover,
.secondary-button:hover,
.text-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.primary-button {
  border: 1px solid var(--ink);
  color: #fff;
  background: var(--ink);
}

.secondary-button,
.text-button,
.icon-button {
  border: 1px solid var(--line);
  background: #fff;
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
