/* Hanasou support site — shared styles.
   Palette matches the app's own HanasouColors (warm cream / coral / sage),
   values taken from Hanasou/Resources/Assets.xcassets color sets. */

:root {
  color-scheme: light dark;

  --cream: #faf4ec;
  --card: #fffdf8;
  --coral: #ef8262;
  --coral-strong: #d96a4a;
  --sage: #6d7f4a;
  --text: #2b2420;
  --text-muted: #5a5049;
  --border: rgba(43, 36, 32, 0.1);
  --link: #b5502f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream: #211e1a;
    --card: #2e2822;
    --coral: #ff9e82;
    --coral-strong: #ffb49b;
    --sage: #a2b37c;
    --text: #f5efe7;
    --text-muted: #cabfb3;
    --border: rgba(245, 239, 231, 0.14);
    --link: #ffb49b;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

header.site-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--coral), var(--sage));
  flex-shrink: 0;
}

.site-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-title a {
  color: var(--text);
  text-decoration: none;
}

h1 {
  font-size: 1.6rem;
  margin: 0 0 8px;
  letter-spacing: 0.01em;
}

h2 {
  font-size: 1.15rem;
  margin: 36px 0 12px;
  color: var(--coral-strong);
}

h3 {
  font-size: 1rem;
  margin: 20px 0 8px;
}

p {
  margin: 0 0 14px;
}

.lede {
  color: var(--text-muted);
  font-size: 1.02rem;
}

a {
  color: var(--link);
}

.card {
  background: var(--card);
  border-radius: 18px;
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-link h3 {
  margin-top: 0;
  color: var(--coral-strong);
}

.card-link p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.faq-item {
  margin-bottom: 20px;
}

.faq-item .q {
  font-weight: 700;
  margin-bottom: 6px;
}

.faq-item .q::before {
  content: "Q. ";
  color: var(--coral-strong);
}

.faq-item .a::before {
  content: "A. ";
  color: var(--sage);
  font-weight: 700;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  color: var(--text-muted);
  font-weight: 600;
  width: 32%;
}

.placeholder {
  display: inline-block;
  background: rgba(196, 87, 74, 0.15);
  color: var(--coral-strong);
  border: 1px dashed var(--coral-strong);
  border-radius: 8px;
  padding: 1px 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

nav.crumb {
  margin-bottom: 24px;
  font-size: 0.92rem;
}

nav.crumb a {
  text-decoration: none;
}

footer.site-footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
}

footer.site-footer nav {
  margin-bottom: 8px;
}

footer.site-footer a {
  color: var(--text-muted);
}

footer.site-footer a + a {
  margin-left: 16px;
}

ul, ol {
  padding-left: 1.3em;
}

li {
  margin-bottom: 6px;
}

@media (max-width: 480px) {
  .wrap {
    padding: 24px 16px 48px;
  }
  h1 {
    font-size: 1.4rem;
  }
}
