/* Sage green card with white line art on beige watercolour, the same in light and dark mode. */
:root {
  color-scheme: dark;
  --bg: #c4ab8c; /* beige watercolour tone, shown until bg.jpg loads */
  --card: #56634b;
  --ink: #f7f4ec;
  --muted: rgba(247, 244, 236, 0.82);
  --line: rgba(247, 244, 236, 0.9);
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  /* Warm brown wash over the watercolour to darken it. */
  background:
    linear-gradient(rgba(70, 45, 20, 0.3), rgba(70, 45, 20, 0.3)),
    url("bg.jpg") center / cover no-repeat,
    var(--bg);
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.5;
  text-align: center;
}

.card {
  position: relative;
  width: 100%;
  max-width: 600px;
  padding: 72px 48px 165px;
  /* Soft, uneven tone like printed card stock. */
  background:
    radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, 0.06), transparent 55%),
    radial-gradient(ellipse at 20% 85%, rgba(0, 0, 0, 0.08), transparent 60%),
    var(--card);
  box-shadow:
    0 6px 14px rgba(40, 22, 6, 0.4),
    0 28px 60px -10px rgba(40, 22, 6, 0.7);
}

/* Broken frame: a top-right L and a bottom-left L, each open where a branch sits. */
.card::before,
.card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 0 solid var(--line);
}

.card::before {
  top: 28px;
  right: 28px;
  left: 44%;
  bottom: 26%;
  border-top-width: 1px;
  border-right-width: 1px;
}

.card::after {
  left: 28px;
  bottom: 28px;
  top: 34%;
  right: 36%;
  border-left-width: 1px;
  border-bottom-width: 1px;
}

/* Line art. Styles are inherited: selectors can't reach inside <use>. */
.branch,
.sprig {
  color: var(--ink);
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.branch {
  position: absolute;
  pointer-events: none;
  overflow: visible;
}

.branch--tl {
  top: 10px;
  left: 6px;
  width: 42%;
  aspect-ratio: 1;
}

.branch--br {
  right: 8px;
  bottom: 6px;
  width: 30%;
  aspect-ratio: 1;
}

.card > :not(.branch) {
  position: relative;
}

.script {
  margin: 0 0 8px 22%;
  font-family: "Monsieur La Doulaise", "Brush Script MT", cursive;
  font-weight: 400;
  font-size: clamp(4.5rem, 20vw, 7.5rem);
  line-height: 0.78;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.script span:nth-child(1) { margin-right: 0.6em; }
.script span:nth-child(2) { margin-left: 0.3em; }
.script span:nth-child(3) { margin-left: 0.1em; }

.names {
  margin: 28px 0 0;
  font-size: clamp(1.9rem, 7vw, 2.4rem);
  line-height: 1.2;
}

.names .amp {
  font-family: "Monsieur La Doulaise", cursive;
  font-size: 1.15em;
  padding: 0 0.1em;
}

.tagline {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: calc(1.1rem + 2px);
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 22px auto;
  max-width: 300px;
}

.divider span {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.sprig {
  width: 54px;
  height: 26px;
  overflow: visible;
  fill: rgba(247, 244, 236, 0.3);
}

/* Same length as the plain line at the bottom. */
.divider .short {
  flex: 0 0 100px;
}

.sprig--left {
  transform: scaleX(-1);
}

.details {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
}

.divider--end {
  max-width: 100px;
  margin-top: 28px;
  margin-bottom: 14px;
}

.follow {
  margin: 0;
  color: var(--muted);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.map {
  display: inline-block;
  margin-top: 10px;
  color: var(--ink);
  font-style: italic;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.map:hover,
.map:focus-visible {
  text-decoration-thickness: 2px;
}

@media (max-width: 480px) {
  .card { padding: 64px 28px 112px; }
  .card::before { top: 16px; right: 16px; bottom: 27.8%; }
  .card::after { left: 16px; bottom: 16px; }
  .script { margin-left: 18%; }
  .details { font-size: 1rem; }
  .follow { font-size: 0.9rem; }
  .sprig { width: 45px; height: 22px; }
}
