@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-600-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/outfit-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/outfit-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/outfit-latin-600-normal.woff2") format("woff2");
}

:root {
  --ink: #2b261f;
  --muted: #7d746b;
  --body: #403a34;
  --card: #faf6f1;
  --page: #f1e9df;
  --button: #241f1c;
  --button-text: #f8f4ee;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  display: grid;
  place-items: safe center;
  padding:
    max(18px, env(safe-area-inset-top))
    16px
    max(22px, env(safe-area-inset-bottom));
  background:
    radial-gradient(900px 520px at 50% -8%, #fbf7f2 0%, rgba(251, 247, 242, 0) 70%),
    var(--page);
  color: var(--ink);
  font-family: Outfit, "Segoe UI", sans-serif;
}

.card {
  width: min(420px, 100%);
  padding: 12px 12px 28px;
  background: var(--card);
  border-radius: 28px;
  box-shadow:
    0 1px 1px rgba(62, 44, 24, 0.04),
    0 22px 50px rgba(72, 48, 22, 0.1);
}

.photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 36%;
  border-radius: 18px;
  background: #e4d9cc;
}

.eyebrow {
  margin: 26px 0 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8d837a;
}

h1 {
  margin: 8px 0 0;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.65rem, 11vw, 3.35rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.amp {
  font-weight: 500;
  padding: 0 0.06em;
}

.date {
  margin: 10px 0 0;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.35rem;
  color: #5f574f;
}

.lead {
  margin: 16px 18px 0;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--body);
  text-wrap: pretty;
}

.actions {
  display: grid;
  gap: 10px;
  width: min(100% - 36px, 260px);
  margin: 20px auto 0;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: 2px solid var(--button);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--button);
  color: var(--button-text);
}

.btn-primary:hover {
  background: #3a332e;
}

.btn-secondary {
  background: transparent;
  color: var(--button);
  box-shadow: inset 0 0 0 1.5px var(--button);
}

.btn-secondary:hover {
  background: rgba(36, 31, 28, 0.05);
}

.hint {
  margin: 14px 24px 0;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted);
}

@media (min-width: 720px) {
  .card {
    padding-bottom: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}
