/* Living Manna — shared page styles */

:root {
  --bg: #ffffff;
  --bg-secondary: #f2f2f4;
  --bg-nav: rgba(255, 255, 255, 0.92);
  --border: rgba(0, 0, 0, 0.16);
  --border-strong: rgba(0, 0, 0, 0.24);
  --text: #111111;
  --text-secondary: #424245;
  --text-tertiary: #636366;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Newsreader", "Iowan Old Style", "Apple Garamond", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --max-width: 692px;
  --nav-height: 52px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  background: var(--bg-secondary);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.588;
  letter-spacing: -0.011em;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover { opacity: 0.7; }

/* Icons */
.icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--text-tertiary);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-lg {
  width: 20px;
  height: 20px;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--bg-nav);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links a:hover { color: var(--text); opacity: 1; }
.nav-links a[aria-current="page"] { color: var(--text); font-weight: 600; }

/* Layout */
.content {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 22px 88px;
  width: 100%;
}

/* Hero */
.hero {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.473;
  letter-spacing: -0.012em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.hero-meta {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: -0.01em;
}

/* Section labels */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

/* Sections */
.section {
  margin-bottom: 40px;
}

.section h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 1.5625;
}

.section p:last-child { margin-bottom: 0; }
.section strong { color: var(--text); font-weight: 600; }

/* Summary grid */
.summary { margin-bottom: 48px; }

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.summary-item {
  background: var(--bg);
  padding: 22px 20px;
}

.summary-item-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.summary-item dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.summary-item dd {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 8px;
  color: var(--text);
}

.summary-item p {
  font-size: 14px;
  line-height: 1.428;
  color: var(--text-secondary);
  margin: 0;
}

/* Lists */
.plain-list {
  list-style: none;
  margin: 14px 0;
}

.plain-list li {
  position: relative;
  padding-left: 1.25em;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.5;
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 1px;
  background: var(--text-tertiary);
}

.plain-list li strong { color: var(--text); }

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  background: var(--bg-secondary);
}

.data-table td { color: var(--text-secondary); }
.data-table td:first-child { color: var(--text); font-weight: 500; }
.data-table tr:last-child td { border-bottom: none; }

code {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text);
  word-break: break-word;
}

/* Copyright blocks */
.copyright-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin: 16px 0;
}

.copyright-item {
  background: var(--bg);
  padding: 18px 20px;
}

.copyright-item h3 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}

.copyright-item .tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.copyright-item p {
  font-size: 14px;
  line-height: 1.428;
  color: var(--text-secondary);
  margin: 0;
}

/* Contact block */
.contact-block,
.contact-card {
  padding: 24px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--bg);
}

.contact-block { margin-top: 16px; }

.contact-card { margin-bottom: 48px; }

.contact-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.contact-head h2,
.contact-head .email {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
}

.contact-block .email,
.contact-email {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}

.contact-block .hint,
.contact-hint {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.45;
}

.contact-card p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.5;
}

.contact-card p:last-child { margin-bottom: 0; }

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 48px;
}

.faq-item {
  background: var(--bg);
  padding: 22px 20px;
}

.faq-item h3 {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin-bottom: 8px;
}

.faq-item h3 .icon { margin-top: 2px; }

.faq-item p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
  padding-left: 27px;
}

.faq-item ul {
  margin: 10px 0 0 27px;
  padding-left: 1.2em;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
}

.faq-item li { margin-bottom: 6px; }
.faq-item li:last-child { margin-bottom: 0; }

/* Guides */
.guides { margin-bottom: 48px; }

.guide-block {
  margin-bottom: 32px;
}

.guide-block h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.guide-block p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.5;
}

.guide-block ol {
  margin: 0;
  padding-left: 1.3em;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.55;
}

.guide-block li { margin-bottom: 8px; }
.guide-block li:last-child { margin-bottom: 0; }

.privacy-note {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-strong);
  background: var(--bg);
  padding: 24px 22px 32px;
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
}

.footer-links a:hover { color: var(--text); opacity: 1; }

@media (max-width: 640px) {
  .content { padding: 36px 16px 64px; }
  .hero h1 { font-size: 34px; }
  .hero-lead { font-size: 17px; }
  .summary-grid { grid-template-columns: 1fr; }
  .data-table { font-size: 13px; }
  .data-table th, .data-table td { padding: 10px 8px; }
  .faq-item p { padding-left: 0; }
  .faq-item ul { margin-left: 0; }
}
