/* ===================================================================
   Šimon · 30 — invitation
   Mobile-first, single narrow column, Aesop-ish pale paper.
   =================================================================== */

:root {
  --paper: #faf7e8;
  --ink: #26231c;
  --muted: #7a745f;
  --green: #5f6c37;
  --red: #a93b32;
  --rule: #ddd6bd;
  --serif: "Vollkorn", Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.page {
  max-width: 34rem;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

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

.site-header {
  max-width: 34rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
}

.lang-toggle {
  display: flex;
  gap: 0.4rem;
  align-items: baseline;
}

.lang-toggle button {
  background: none;
  border: none;
  font-family: var(--serif);
  font-size: 0.9375rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  cursor: pointer;
  padding: 0.25rem 0.1rem;
}

.lang-toggle button.is-active {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}

.lang-sep { color: var(--rule); }

/* ---------- typography ---------- */

h1 {
  font-weight: 300;
  font-size: clamp(2.4rem, 10vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 1.4rem 0 1.6rem;
}

h2 {
  font-weight: 300;
  font-size: clamp(1.7rem, 6.5vw, 2.2rem);
  line-height: 1.2;
  margin-bottom: 2rem;
}

h3 {
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 0.4rem 0 0.5rem;
}

.eyebrow {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--muted);
  margin-top: 2.5rem;
}

.lead {
  font-size: 1.1875rem;
  line-height: 1.7;
}

.swap { margin: -0.2rem 0 1.6rem; }

.swap svg {
  width: min(230px, 64vw);
  height: auto;
  display: block;
}

.swap-num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 88px;
  fill: var(--ink);
}

.swap .sw {
  stroke: var(--red);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.script {
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 6vw, 2rem);
  transform: rotate(-2deg);
  display: inline-block;
}

.red { color: var(--red); }

.link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.25s ease;
}

.link:hover { color: var(--green); }

.icon-arrow {
  width: 0.72em;
  height: 0.72em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: -0.02em;
}

/* ---------- rules & sections ---------- */

.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 4.5rem 0;
}

section { margin-top: 0; }

/* ---------- hero ---------- */

.hero { padding-top: 1.5rem; }

.stamp {
  margin: 0 auto;
  max-width: 17rem;
}

.stamp img,
.stop-img img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- save the date ---------- */

.save-date { text-align: center; }

.calendar {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin: 2rem 0 2.4rem;
  padding: 1.1rem 0 1.3rem;
}

.cal-head,
.cal-days {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}

.cal-head span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.cal-day {
  font-weight: 300;
  font-size: clamp(2.6rem, 11vw, 3.4rem);
  line-height: 1.3;
  position: relative;
}

.cal-day.is-circled { color: var(--ink); }

.circle-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130%;
  height: 115%;
  transform: translate(-50%, -50%);
  overflow: visible;
  pointer-events: none;
}

.circle-svg .draw {
  stroke: var(--red);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.cal-note {
  font-style: italic;
  font-size: 1rem;
  margin-top: 0.4rem;
}

.cal-links {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: center;
}

.cal-links a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.cal-links a:hover { color: var(--green); }

/* ---------- program ---------- */

.stop { margin-bottom: 3.5rem; }
.stop:last-child { margin-bottom: 0; }

.stop-img {
  margin-bottom: 1.4rem;
}

.stop-time {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--red);
}

.stop p { margin-bottom: 0.5rem; }

/* ---------- map ---------- */

.map-section h2 { margin-bottom: 1rem; }

.map-wrap { margin: 0 -0.5rem; }

.map {
  width: 100%;
  height: auto;
  display: block;
}

.map .draw {
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map .thin { stroke-width: 1.1; opacity: 0.55; }

.map .river { stroke-width: 3; }

.map .park { stroke: var(--red); stroke-width: 2; }

.map .walk {
  stroke: var(--red);
  stroke-width: 1.6;
  stroke-dasharray: 2 7;
}

.map-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  fill: var(--ink);
}

.map-label.script-label { opacity: 0.85; }

.map-label.street {
  font-size: 14px;
  opacity: 0.65;
}

.map-script {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 23px;
  fill: var(--red);
}

.map .anno {
  stroke: var(--red);
  stroke-width: 1.8;
}

.map .pt { fill: var(--red); }

.pt-num {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  fill: var(--paper);
  text-anchor: middle;
}

.map-legend {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 0.8rem;
}

.legend-num {
  display: inline-flex;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--red);
  color: var(--paper);
  font-size: 0.8rem;
  align-items: center;
  justify-content: center;
  vertical-align: 0.1em;
}

/* ---------- details / contact ---------- */

.details p { margin-bottom: 1.2rem; }

.contact {
  display: flex;
  gap: 2.6rem;
  justify-content: center;
  margin: 2.2rem 0 1.4rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
}

.contact-item svg {
  width: 46px;
  height: 46px;
  transition: transform 0.3s ease;
}

.contact-item:hover svg { transform: rotate(-4deg) scale(1.06); }

.contact-item .ink {
  stroke: var(--ink);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.contact-item .ink-dot { fill: var(--ink); }

.contact-item span {
  font-style: italic;
  font-size: 0.9375rem;
}

.phone {
  text-align: center;
  font-size: 1.125rem;
}

.details .rain {
  margin-top: 2.4rem;
}

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

.site-footer {
  text-align: center;
  padding-top: 1rem;
}

.sign {
  display: block;
  margin-top: 0.6rem;
  transform: rotate(-3deg);
}

.footer-meta {
  margin-top: 2rem;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--muted);
}

/* ---------- animation initial states ---------- */

.js [data-animate] { visibility: hidden; }
.js [data-animate].is-ready { visibility: visible; }

.split-line-mask { overflow: hidden; }

/* wider screens keep the narrow column, just breathe more */
@media (min-width: 40rem) {
  .page { padding-bottom: 6rem; }
  .hero { padding-top: 2.5rem; }
  .stamp { max-width: 19rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-animate] { visibility: visible; }
}
