/* Echoes — site stylesheet
   Calm, warm, editorial. Mobile first, centred 680px column on desktop. */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

:root {
  /* colour */
  --background: #f6f7f9;
  --foreground: #1d1f23;
  --secondary-text: #7a7e84;
  --card: #ffffff;
  --surface-quiet: #fff8f1;
  --surface-pill: #fff5ee;
  --primary: #ed946c;
  --primary-pressed: #e68357;
  --peach-soft: #f6cfc0;
  --peach-soft-text: #e88963;
  --error: #d95c5c;
  --border-soft: rgba(29, 31, 35, 0.08);

  /* type */
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  /* shape */
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.10);
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--foreground);
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid var(--primary-pressed);
  outline-offset: 3px;
  border-radius: 999px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--foreground);
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-180%);
}

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

/* ---------- shell ---------- */

.site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.site-container {
  width: min(100% - 40px, 680px);
  margin-inline: auto;
}

/* ---------- header ---------- */

.site-header { border-bottom: 1px solid var(--border-soft); }

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 96px;
  padding-block: 16px;
}

.brand-lockup {
  display: grid;
  gap: 1px;
  flex: 0 auto;
}

.brand-name {
  width: fit-content;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.brand-tagline {
  font-size: 11px;
  line-height: 1.45;
  color: var(--secondary-text);
}

.site-nav,
.footer-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a,
.footer-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--foreground);
  transition: background-color 0.12s var(--ease-out), color 0.12s var(--ease-out);
}

.site-nav a:hover,
.footer-nav a:hover { background: var(--surface-pill); }

.site-nav a[aria-current="page"],
.footer-nav a[aria-current="page"] { background: var(--surface-pill); }

/* ---------- main / footer ---------- */

.site-main {
  flex: 1;
  padding: 72px 20px 80px;
}

.site-main-inner {
  width: min(100%, 680px);
  margin-inline: auto;
}

.site-footer { border-top: 1px solid var(--border-soft); }

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 76px;
  padding-block: 12px;
}

.copyright {
  margin: 0;
  font-size: 12px;
  color: var(--secondary-text);
}

/* ---------- home ---------- */

.home-page {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: min(58svh, 520px);
  padding-block: 20px;
}

.home-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 12vw, 60px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.055em;
}

.home-description {
  max-width: 39ch;
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 1.65;
}

.home-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.quiet-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface-pill);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.12s var(--ease-out), transform 0.12s var(--ease-out);
}

.quiet-pill:hover { background: var(--peach-soft); }
.quiet-pill:active { transform: translateY(1px); }

/* ---------- legal pages ---------- */

.legal-card,
.support-card {
  background: var(--card);
  border-radius: 28px;
  padding: clamp(24px, 6vw, 40px);
  box-shadow: var(--shadow-soft);
}

.legal-header { padding-bottom: 28px; }

.eyebrow {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--peach-soft);
  color: var(--peach-soft-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-title,
.support-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.legal-updated {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--secondary-text);
}

.template-note {
  margin: 24px 0 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface-quiet);
  font-size: 14px;
  line-height: 1.6;
}

.contents {
  padding-block: 20px;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.contents-label {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary-text);
}

.contents-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contents-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-pill);
  font-size: 13px;
  line-height: 1.25;
  transition: background-color 0.12s var(--ease-out);
}

.contents-list a:hover { background: var(--peach-soft); }

.legal-copy { padding-top: 8px; }

.legal-section {
  padding-top: 28px;
  scroll-margin-top: 24px;
}

.legal-section h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.legal-section h3 {
  margin: 20px 0 8px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.legal-section p,
.legal-section li {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.625;
}

.legal-section p { margin: 0 0 12px; }

.legal-section ul,
.legal-section ol {
  display: grid;
  gap: 8px;
  margin: 10px 0 16px;
  padding-left: 22px;
}

.legal-section li::marker { color: var(--primary-pressed); }

.legal-section a {
  color: var(--peach-soft-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- support ---------- */

.support-card {
  border-radius: 24px;
  padding: clamp(28px, 7vw, 44px);
}

.support-title { margin-bottom: 16px; }

.support-copy {
  max-width: 45ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

.support-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 24px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--foreground);
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.12s var(--ease-out);
}

.support-action:hover,
.support-action:active { background: var(--primary-pressed); }

.support-response {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--secondary-text);
}

/* ---------- small screens ---------- */

@media (max-width: 520px) {
  .site-header-inner {
    align-items: flex-start;
    gap: 8px;
  }
  .brand-tagline { max-width: 155px; }
  .site-nav a { padding-inline: 7px; font-size: 12px; }
  .site-main { padding-top: 48px; padding-bottom: 56px; }
  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-block: 12px 16px;
  }
}

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