:root {
  --paper: #F2EEE3;
  --paper-deep: #E7DFC9;
  --mist: #DCE3D9;
  --ink: #2A2A22;
  --ink-soft: #5B5A4E;
  --pine: #37463A;
  --cedar: #8B5E3C;
  --gold: #C98A46;
  --border: rgba(42, 42, 34, 0.14);
  --border-strong: rgba(42, 42, 34, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Public Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.rule {
  height: 1px;
  background: var(--border);
  border: none;
  margin: 0;
}

/* IDENTITY */
.identity {
  max-width: 620px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
}

.identity h1 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 30px;
  margin: 0;
  color: var(--ink);
}

.tagline {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--ink-soft);
  margin: 10px 0 0;
}

/* POSTCARDS */
.postcards {
  max-width: 620px;
  margin: 0 auto;
  padding: 2.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.postcard {
  display: block;
  text-decoration: none;
  color: inherit;
}

.postcard-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--ink);
  border-radius: 4px;
  overflow: hidden;
}

.postcard-media video,
.postcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.postcard-name {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 20px;
  color: var(--ink);
  margin-top: 14px;
}

.postcard-sub {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.postcard-line {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-top: 10px;
}

/* NEWSLETTER */
.section {
  max-width: 620px;
  margin: 0 auto;
  padding: 2.75rem 1.5rem;
}

.newsletter {
  text-align: center;
}

.newsletter-line {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
  margin: 0 0 6px;
}

.newsletter-sub {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 360px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 11px 14px;
  border: 0.5px solid var(--border);
  border-radius: 4px;
  font-family: 'Public Sans', sans-serif;
  font-size: 14px;
  background: var(--paper);
  color: var(--ink);
}

.newsletter-form button {
  padding: 11px 22px;
  border: 0.5px solid var(--pine);
  border-radius: 4px;
  background: transparent;
  color: var(--pine);
  font-family: 'Public Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.newsletter-form button:hover {
  background: var(--pine);
  color: var(--paper);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* DESKTOP: two postcards side by side, not stacked */
@media (min-width: 900px) {
  .identity,
  .postcards,
  .section {
    max-width: 900px;
  }

  .postcards {
    flex-direction: row;
    gap: 48px;
  }

  .postcard {
    flex: 1;
  }
}
