/* MondWiese support site: light parchment, dark ink, an ornate frame.
   No external fonts, CDNs or trackers. Fonts: Alegreya Sans (OFL-1.1, fonts/OFL.txt). */

@font-face {
  font-family: "Alegreya Sans";
  src: url("fonts/AlegreyaSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Alegreya Sans";
  src: url("fonts/AlegreyaSans-Medium.ttf") format("truetype");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --parchment: #f6ecd3;
  --parchment-light: #fbf5e4;
  --parchment-deep: #ead9b0;
  --ink: #3a2a1a;
  --ink-soft: #5c4630;
  --frame: #8a6a3f;
  --frame-light: #c9a86a;
  --accent: #6b4fa3; /* the violet of the moon crystals */
  --radius: 14px;
}

* { box-sizing: border-box; }

html { background: var(--parchment-deep); }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Alegreya Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 250, 235, 0.9), transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(214, 186, 130, 0.45), transparent 55%),
    var(--parchment-deep);
  min-height: 100vh;
}

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover, a:focus { color: var(--ink); }

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus { left: 1rem; top: 1rem; background: var(--parchment-light); padding: 0.5rem 1rem; }

.page {
  max-width: 980px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

/* The storybook page: parchment inside a double frame with corner flourishes. */
.sheet {
  position: relative;
  background: linear-gradient(180deg, var(--parchment-light), var(--parchment));
  border: 3px double var(--frame);
  border-radius: var(--radius);
  box-shadow:
    0 0 0 6px var(--parchment),
    0 0 0 8px var(--frame-light),
    0 12px 30px rgba(80, 55, 20, 0.25);
  padding: 2rem clamp(1rem, 4vw, 3rem) 2.5rem;
}

.sheet::before,
.sheet::after {
  content: "\2766"; /* floral heart, from the font */
  position: absolute;
  color: var(--frame);
  font-size: 1.6rem;
  line-height: 1;
}
.sheet::before { top: 0.4rem; left: 0.7rem; transform: rotate(-90deg); }
.sheet::after { bottom: 0.4rem; right: 0.7rem; transform: rotate(90deg); }

header.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

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

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0;
  padding: 0;
}
nav a { text-decoration: none; font-weight: 500; }
nav a[aria-current="page"] { color: var(--ink); border-bottom: 2px solid var(--frame); }

.langs { font-size: 0.95rem; }
.langs a[aria-current="true"] { color: var(--ink); font-weight: 700; }

h1, h2, h3 { line-height: 1.25; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 0.5rem 0 0.25rem; text-align: center; }
h2 {
  font-size: 1.5rem;
  margin-top: 2.25rem;
  text-align: center;
}
h2::before, h2::after { content: " \2767 "; color: var(--frame); font-weight: 400; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 0.25rem; }

.tagline { text-align: center; font-size: 1.3rem; color: var(--ink-soft); margin: 0 0 1.5rem; }

.badge {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}
.badge span {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border: 2px dashed var(--frame);
  border-radius: 10px;
  background: var(--parchment-light);
  color: var(--ink-soft);
  font-weight: 500;
}

ul.points { padding-left: 1.2rem; }
ul.points li { margin: 0.3rem 0; }
ul.points li::marker { content: "\2726  "; color: var(--accent); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.gallery figure {
  margin: 0;
  background: var(--parchment-light);
  border: 2px solid var(--frame-light);
  border-radius: 10px;
  padding: 0.4rem;
}
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.gallery figcaption { font-size: 0.95rem; color: var(--ink-soft); text-align: center; padding-top: 0.3rem; }

.faq dt { font-weight: 700; margin-top: 1.2rem; }
.faq dd { margin: 0.25rem 0 0; }

.note {
  background: var(--parchment-light);
  border-left: 4px solid var(--accent);
  padding: 0.75rem 1rem;
  border-radius: 6px;
}

.policy h3 { margin-top: 1.75rem; }

footer {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--frame-light);
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-align: center;
}
footer ul { list-style: none; padding: 0; margin: 0 0 0.5rem; display: flex; justify-content: center; flex-wrap: wrap; gap: 0.25rem 1.25rem; }

@media (max-width: 560px) {
  body { font-size: 1.05rem; }
  .page { margin: 0.75rem auto; padding: 0 0.5rem; }
  .sheet { box-shadow: 0 0 0 4px var(--parchment), 0 0 0 6px var(--frame-light), 0 6px 16px rgba(80, 55, 20, 0.25); }
  header.top { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: no-preference) {
  a { transition: color 0.15s ease; }
}
