/*
 * Root stylesheet for sougouannai.net — the Gift Family Portal.
 * Deliberately NOT Flower's botanical direction: a quiet, paper-toned,
 * section-neutral palette so no one Gift Family section dominates the
 * shared root. No web fonts, no icon libraries, no CSS/JS frameworks.
 */

:root {
  --root-bg: #FAF8F4;
  --root-surface: #FFFFFF;

  --root-text: #2A2A27;
  --root-text-muted: #6B6862;

  --root-accent: #4A5A63;
  --root-accent-hover: #3A4750;

  --root-border: #E2DED5;

  --root-pending-bg: #EFEBE3;
  --root-pending-text: #8A8477;
  --root-published-bg: #E8EEEC;
  --root-published-text: #3A4E48;

  --root-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
  --root-font-display: Georgia, "Hiragino Mincho ProN", "Yu Mincho", serif;
  --root-radius: 8px;
  --root-max-width: 960px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--root-bg);
  color: var(--root-text);
  font-family: var(--root-font);
  line-height: 1.75;
}

a {
  color: var(--root-accent);
}

a:hover {
  color: var(--root-accent-hover);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--root-accent);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: var(--root-font-display);
  font-weight: 600;
  line-height: 1.4;
  text-wrap: balance;
}

/* ---- Header ---- */

.root-header {
  border-bottom: 1px solid var(--root-border);
  background: var(--root-surface);
}

.root-header__inner {
  max-width: var(--root-max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.root-header__home {
  font-family: var(--root-font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--root-text);
  text-decoration: none;
}

.root-header__home:hover {
  color: var(--root-accent);
}

/* ---- Main / Hero ---- */

.root-main {
  max-width: var(--root-max-width);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.root-hero {
  padding: 2.5rem 0 2rem;
}

.root-hero h1 {
  margin: 0 0 0.6rem;
  font-size: 1.875rem;
}

.root-hero__lead {
  margin: 0;
  max-width: 34rem;
  color: var(--root-text-muted);
  font-size: 1.0625rem;
}

/* ---- Sections / Cards ---- */

.root-sections {
  margin: 1.5rem 0 0;
}

.root-sections__heading {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--root-text-muted);
  margin: 0 0 1rem;
  font-family: var(--root-font);
}

.root-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.root-card {
  display: block;
  padding: 1.5rem;
  border: 1px solid var(--root-border);
  border-radius: var(--root-radius);
  background: var(--root-surface);
  text-decoration: none;
  color: inherit;
}

.root-card--published {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.root-card--published:hover {
  border-color: var(--root-accent);
  box-shadow: 0 1px 3px rgba(42, 42, 39, 0.08);
}

.root-card--pending {
  opacity: 0.85;
}

.root-card__status {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.root-card__status--published {
  background: var(--root-published-bg);
  color: var(--root-published-text);
}

.root-card__status--pending {
  background: var(--root-pending-bg);
  color: var(--root-pending-text);
}

.root-card__name {
  margin: 0 0 0.4rem;
  font-size: 1.125rem;
  color: var(--root-text);
}

.root-card__description {
  margin: 0;
  color: var(--root-text-muted);
  font-size: 0.9375rem;
}

@media (min-width: 700px) {
  .root-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- Legal pages ---- */

.legal-page {
  padding: 2rem 0 1rem;
  max-width: 40rem;
}

.legal-page h1 {
  font-size: 1.625rem;
  margin: 0 0 0.75rem;
}

.legal-page__lead {
  color: var(--root-text-muted);
  margin: 0 0 2rem;
}

.legal-page__block {
  margin: 0 0 2rem;
}

.legal-page__block:last-child {
  margin-bottom: 0;
}

.legal-page__block h2 {
  font-size: 1.0625rem;
  margin: 0 0 0.75rem;
  color: var(--root-text);
}

.legal-page__block p {
  margin: 0 0 0.75rem;
}

.legal-page__block ul {
  margin: 0;
  padding-left: 1.25rem;
}

.legal-page__block li {
  margin: 0 0 0.5rem;
}

.legal-page__link {
  margin-top: 0.75rem;
}

/* ---- Footer ---- */

.root-footer {
  border-top: 1px solid var(--root-border);
  background: var(--root-surface);
  margin-top: 2rem;
}

.root-footer__inner {
  max-width: var(--root-max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}

.root-footer__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}

.root-footer__copy {
  margin: 0;
  color: var(--root-text-muted);
  font-size: 0.8125rem;
}
