/* folk.zone shared stylesheet */

:root {
  --berry:       #5B3FB4;
  --moss:        #3D7A5F;
  --cream:       #F5F0E8;
  --ink:         #1E1C18;
  --amber:       #C4862A;
  --rust:        #B85C38;
  --stone:       #5A5650;
  --light-stone: #D8D4CC;
  --deep-violet: #4D3883;
}

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

body {
  font-family: 'Atkinson Hyperlegible', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--cream);
}

a { color: var(--berry); text-decoration: none; }
a:hover { text-decoration: underline; }
a:visited { color: var(--deep-violet); }

/* ── Mark ── */
.mark { display: inline-block; margin-bottom: 1rem; }
.mark svg { width: 56px; height: 56px; fill: var(--berry); }
.mark-sm { display: inline-block; vertical-align: middle; margin-right: 0.35rem; }
.mark-sm svg { width: 22px; height: 22px; fill: var(--berry); }

/* ── Wordmark ── */
.wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.wordmark:hover { text-decoration: none; }
.wordmark:visited { color: var(--ink); }
.wordmark .dot { color: var(--stone); font-weight: 400; }
.wordmark .zone { font-weight: 400; }

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 0.2em 0.75em;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--amber);
  color: var(--ink);
}
.badge-soon {
  display: inline-block;
  padding: 0.15em 0.55em;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--light-stone);
  color: var(--ink);
}

/* ── Homepage header ── */
.site-header {
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--light-stone);
}

.hero-heading {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 1.5rem auto 1rem;
  max-width: 640px;
}

.hero-sub {
  max-width: 560px;
  margin: 0 auto 2rem;
  color: var(--stone);
  font-size: 1.0625rem;
}

/* ── Sub-page header ── */
.page-header {
  border-bottom: 1px solid var(--light-stone);
}

.page-nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-nav-home {
  display: flex;
  align-items: center;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.page-nav-home:visited { color: var(--ink); }
.page-nav-home:hover { text-decoration: none; color: var(--berry); }
.page-nav-home .dot { color: var(--stone); font-weight: 400; }
.page-nav-home .zone { font-weight: 400; }

.page-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-size: 0.875rem;
}
.page-nav-links a { color: var(--stone); }
.page-nav-links a:hover { color: var(--berry); text-decoration: none; }
.page-nav-links a:visited { color: var(--stone); }

/* ── Main layout ── */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* ── Divider ── */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0 2rem;
}
.divider svg { width: 18px; height: 18px; fill: var(--light-stone); flex-shrink: 0; }
.divider hr { flex: 1; border: none; border-top: 1px solid var(--light-stone); }

/* ── Section heading ── */
.section-label {
  font-family: 'Atkinson Hyperlegible', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 0 0 1rem;
}

/* ── Service grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 580px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 860px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

.service-card {
  background: var(--cream);
  border: 1px solid var(--light-stone);
  border-radius: 12px;
  padding: 1.25rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.service-card:hover {
  border-color: var(--berry);
  box-shadow: 0 2px 12px rgba(123, 79, 212, 0.1);
  text-decoration: none;
}
.service-card:visited { color: inherit; }
.service-card.soon {
  opacity: 0.6;
  pointer-events: none;
}
.service-card.offline {
  opacity: 0.5;
  pointer-events: none;
  border-color: var(--light-stone);
}

.service-card .icon { font-size: 1.5rem; line-height: 1; }

.service-card .service-name {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--berry);
}
.service-card .service-name .subdomain {
  font-size: 0.75rem;
  color: var(--ink);
  font-family: 'Atkinson Hyperlegible', system-ui, sans-serif;
  font-weight: 400;
  display: block;
  margin-top: 0.15em;
}

.service-card .service-desc {
  font-size: 0.875rem;
  color: var(--ink);
  line-height: 1.5;
}

/* ── About / philosophy section ── */
.about {
  max-width: 680px;
  padding-top: 1rem;
}
.about h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1.25rem;
}
.about p { margin-bottom: 1rem; }
.about p:last-child { margin-bottom: 0; }

/* ── Prose (policy / about pages) ── */
.prose { max-width: 680px; }

.prose h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.prose .meta {
  font-size: 0.875rem;
  color: var(--stone);
  margin-bottom: 2.5rem;
  display: block;
}
.prose h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.375rem;
  font-weight: 400;
  margin: 2.5rem 0 0.875rem;
  padding-top: 2rem;
  border-top: 1px solid var(--light-stone);
}
.prose h2:first-of-type { padding-top: 0; border-top: none; margin-top: 0; }
.prose h3 {
  font-family: 'Atkinson Hyperlegible', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 1.75rem 0 0.5rem;
  color: var(--ink);
}
.prose p { margin-bottom: 1.25rem; }
.prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { margin: 1.5rem 0 1.5rem 1.75rem; }
.prose li { margin-bottom: 0.75rem; line-height: 1.7; }
.prose li:last-child { margin-bottom: 0; }
.prose ul { list-style-type: disc; }
.prose ul li::marker { color: var(--berry); }
.prose ol { list-style-type: decimal; }
.prose ol li::marker { color: var(--berry); font-weight: 700; }
.prose ul ul, .prose ol ol, .prose ul ol, .prose ol ul { margin: 0.75rem 0 0.75rem 1.5rem; }
.prose strong { font-weight: 700; }
.prose em { font-style: italic; }
.prose a { color: var(--berry); }
.prose table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.25rem 0;
  font-size: 0.875rem;
}
.prose th, .prose td {
  text-align: left;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--light-stone);
}
.prose th {
  background: rgba(0,0,0,0.03);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}
.prose .callout {
  background: rgba(123, 79, 212, 0.07);
  border-left: 3px solid var(--berry);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--light-stone);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--stone);
}
.site-footer a { color: var(--stone); }
.site-footer a:hover { color: var(--berry); text-decoration: none; }
.site-footer a:visited { color: var(--stone); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.25rem;
  margin-bottom: 0.875rem;
}
.footer-berry { margin-bottom: 0.5rem; }
.footer-operator { font-size: 0.75rem; }

/* ── Registration labels ── */
.service-reg {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: 'Atkinson Hyperlegible', system-ui, sans-serif;
  padding: 0.2em 0.55em;
  border-radius: 4px;
  align-self: flex-start;
  margin-top: auto;
}
.reg-open    { background: rgba(61,  122, 95,  0.1);  color: var(--moss);  }
.reg-apply   { background: rgba(196, 134, 42,  0.12); color: var(--amber); }
.reg-invite  { background: rgba(123, 79,  212, 0.1);  color: var(--berry); }
.reg-private { background: rgba(138, 134, 128, 0.15); color: var(--stone); }
.reg-offline { background: rgba(184, 92, 56, 0.15); color: var(--rust); }

/* ── Pause notice banner ── */
.pause-notice {
  background: rgba(184, 92, 56, 0.08);
  border: 1px solid rgba(184, 92, 56, 0.25);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin: 2rem auto 2.5rem;
  max-width: 700px;
  text-align: center;
}
.pause-notice h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--rust);
  margin-bottom: 0.75rem;
}
.pause-notice p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.pause-notice p:last-child { margin-bottom: 0; }
.pause-notice a { color: var(--rust); }
.pause-notice a:hover { text-decoration: underline; }

/* ── Machine pills ── */
.badge-machine {
  display: inline-block;
  padding: 0.15em 0.55em;
  border-radius: 20px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: 'Atkinson Hyperlegible', system-ui, sans-serif;
  vertical-align: middle;
}
.machine-nitro { background: rgba(123, 79, 212, 0.12); color: var(--berry); }
.machine-cafe  { background: rgba(196, 134, 42,  0.12); color: var(--amber); }
.machine-casa  { background: rgba(61,  122, 95,  0.12); color: var(--moss);  }
.machine-click { background: rgba(138, 134, 128, 0.15); color: var(--stone); }

/* ── Hardware section ── */
.hardware-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 860px) {
  .hardware-grid { grid-template-columns: repeat(4, 1fr); }
}

.machine-card {
  border: 1px solid var(--light-stone);
  border-radius: 12px;
  padding: 1.125rem 1.25rem;
}

.machine-card-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.machine-card dl { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.75rem; }
.machine-card dt {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--stone);
  padding-top: 0.1rem;
  white-space: nowrap;
}
.machine-card dd {
  font-size: 0.8125rem;
  color: var(--ink);
  line-height: 1.5;
}

/* ── Dark mode ── */
@media (prefers-color-scheme: dark) {
  :root {
    --cream:       #1E1C18;
    --ink:         #F5F0E8;
    --light-stone: #3A3830;
    --stone:       #D0CCC6;
    --berry:       #C0AEF8;
    --deep-violet: #E0D0FF;
  }
  body { background-color: #1E1C18; }
  .service-card { background: #2A2822; }
  .machine-card { background: #2A2822; }
  .mark svg, .mark-sm svg { fill: var(--berry); }
  .prose th { background: #2A2822; }
  .wordmark, .wordmark:visited { color: var(--ink); }
  .page-nav-home, .page-nav-home:visited { color: var(--ink); }
}
