/* MostPress – Editorial craft stylesheet (zero external dependencies, DSGVO-safe) */

:root {
  color-scheme: light dark;
  --page: #fbfaf7;
  --surface: #f2eee6;
  --text: #1c1b19;
  --muted: #5c5853;
  --rule: rgba(92, 88, 83, 0.24);
  --rule-strong: rgba(28, 27, 25, 0.45);
  --accent: #9e5317;
  --accent-hover: #7d3f0e;
  --accent-ink: #ffffff;
  --notice-bg: #f6eedf;
  --notice-border: #b8742a;
  --placeholder-bg: #f5e6bf;
  --placeholder-text: #5a3800;

  --font-serif: ui-serif, Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --max-w: 1080px;
  --measure: 65ch;
  --radius: 4px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #151412;
    --surface: #1e1c19;
    --text: #e8e4dd;
    --muted: #a39e96;
    --rule: rgba(163, 158, 150, 0.22);
    --rule-strong: rgba(232, 228, 221, 0.4);
    --accent: #e09148;
    --accent-hover: #eda764;
    --accent-ink: #151412;
    --notice-bg: #231e17;
    --notice-border: #c98038;
    --placeholder-bg: #332713;
    --placeholder-text: #f3d28e;
  }
}

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

html {
  font-size: 100%;
  accent-color: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  caret-color: var(--accent);
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
  text-wrap: balance;
  margin-top: 0;
}

p {
  text-wrap: pretty;
  max-width: var(--measure);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: var(--page);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(var(--max-w), 100% - 2.5rem);
  margin-inline: auto;
}

.container--prose {
  width: min(740px, 100% - 2.5rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--page);
}

.header-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  padding-block: 1.25rem;
}

.brand {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

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

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: underline;
}

.site-nav .nav-cta {
  color: var(--accent);
  font-weight: 600;
}

/* Primary & Secondary Actions */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.45rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--accent);
  cursor: pointer;
}

@media (prefers-reduced-motion: no-preference) {
  .btn {
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  }
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-ink);
}

.btn--primary:active {
  opacity: 0.88;
}

.btn--quiet {
  background: transparent;
  color: var(--text);
  border-color: var(--rule-strong);
}

.btn--quiet:hover {
  border-color: var(--text);
  color: var(--text);
}

/* Hero */
.hero {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 840px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-origin {
  font-size: 0.94rem;
  color: var(--muted);
  margin: 0 0 0.85rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  margin: 0 0 1.75rem;
}

.hero-facts {
  font-size: 1rem;
  color: var(--text);
  margin: 0 0 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.hero-figure {
  margin: 0;
}

.hero-frame {
  background: #171614;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-figure figcaption {
  margin-top: 0.65rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Editorial Sections */
.band {
  padding-block: clamp(2.75rem, 5.5vw, 4.5rem);
  border-bottom: 1px solid var(--rule);
}

.band--tinted {
  background: var(--surface);
}

.band-head {
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}

.band-head h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  margin-bottom: 0.5rem;
}

.band-head p {
  margin: 0;
  color: var(--muted);
}

/* Numbered Editorial List (replaces generic icon-tile card grids) */
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3rem;
}

@media (max-width: 760px) {
  .feature-list {
    grid-template-columns: 1fr;
  }
}

.feature-item {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.75rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--rule);
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
  padding-top: 0.2rem;
}

.feature-item h3 {
  font-family: var(--font-sans);
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Technical Spec Sheet */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.spec-table th,
.spec-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.9rem 0;
  border-top: 1px solid var(--rule);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 1px solid var(--rule);
}

.spec-table th {
  width: 32%;
  padding-right: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

.spec-table td {
  color: var(--muted);
}

@media (max-width: 600px) {
  .spec-table,
  .spec-table tbody,
  .spec-table tr,
  .spec-table th,
  .spec-table td {
    display: block;
    width: 100%;
  }

  .spec-table th {
    padding-bottom: 0.2rem;
    padding-right: 0;
    border-bottom: none;
  }

  .spec-table td {
    padding-top: 0;
    padding-bottom: 0.95rem;
    border-top: none;
  }
}

/* Charge 1 Offer Split (no nested cards) */
.offer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 780px) {
  .offer-grid {
    grid-template-columns: 1fr;
  }
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin: 0.5rem 0 1rem;
}

.price-now {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4.5vw, 3.1rem);
  font-weight: 700;
  line-height: 1;
}

.price-was {
  font-size: 1.05rem;
  color: var(--muted);
  text-decoration: line-through;
}

.scope-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.scope-list li {
  padding-block: 0.7rem;
  border-top: 1px solid var(--rule);
  color: var(--text);
}

.scope-list li:last-child {
  border-bottom: 1px solid var(--rule);
}

/* Maker / About */
.maker-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(1.75rem, 4.5vw, 3.5rem);
  align-items: start;
}

@media (max-width: 760px) {
  .maker-grid {
    grid-template-columns: 1fr;
  }
}

.maker-figure {
  margin: 0;
}

.maker-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 22%;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
}

.maker-figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.maker-aside {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.5rem;
  border-top: 1px solid var(--rule);
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  font-size: 0.94rem;
  color: var(--muted);
}

@media (max-width: 540px) {
  .maker-aside {
    grid-template-columns: 1fr;
  }
}

.maker-aside div dt {
  font-weight: 600;
  color: var(--text);
}

.maker-aside div dd {
  margin: 0.15rem 0 0;
}

.maker-text p {
  margin: 0 0 1rem;
}

/* FAQ Accordion (modern HTML <details> + ::details-content) */
.accordion {
  border-top: 1px solid var(--rule);
}

.accordion details {
  border-bottom: 1px solid var(--rule);
}

.accordion summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 1.1rem;
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::before {
  content: "";
  inline-size: 0.9em;
  block-size: 0.9em;
  flex-shrink: 0;
  background-color: var(--accent);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat center / contain;
  rotate: -90deg;
}

.accordion details[open] > summary::before {
  rotate: 0deg;
}

@media (prefers-reduced-motion: no-preference) {
  .accordion summary::before {
    transition: rotate 0.2s ease;
  }
}

.accordion details::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}

.accordion details:not([open])::details-content {
  block-size: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .accordion details::details-content {
    transition: block-size 0.26s ease-in-out, content-visibility 0.26s ease-in-out;
    transition-behavior: allow-discrete;
  }
}

.accordion-body {
  padding: 0 0 1.25rem 1.65rem;
  color: var(--muted);
}

.accordion-body p {
  margin: 0 0 0.65rem;
}

.accordion-body p:last-child {
  margin-bottom: 0;
}

/* Legal Pages */
.legal-main {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.legal-main h1 {
  font-size: clamp(1.9rem, 3.8vw, 2.6rem);
  margin-bottom: 0.4rem;
}

.legal-meta {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0 0 2rem;
}

.legal-main h2 {
  font-size: 1.35rem;
  margin: 2.2rem 0 0.65rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.legal-main h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.35rem 0 0.4rem;
}

.legal-notice {
  background: var(--notice-bg);
  border-left: 3px solid var(--notice-border);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.94rem;
}

.placeholder {
  display: inline-block;
  background: var(--placeholder-bg);
  color: var(--placeholder-text);
  padding: 0.05rem 0.35rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.86em;
}

.legal-form-box {
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1rem;
  background: var(--surface);
}

/* Footer */
.site-footer {
  padding-block: 2.5rem 2.25rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  align-items: baseline;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.footer-brand {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin: 0 0 0.25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
}
