/* =========================================================================
   hello.css — page-specific styles for the Hello page
   Reuses palette, fonts, and shared components from styles.css.
   Signature: an open envelope hero + three postcard chooser cards +
   a letter-pad contact form.
   ========================================================================= */


/* ── HERO ────────────────────────────────────────────────────────── */
.hello-hero {
  max-width: 920px;
  margin: 2rem auto 4rem;
  padding: 0 2rem;
  position: relative;
  z-index: 5;
  text-align: center;
}

.hello-hero__kicker {
  font-family: var(--hand);
  font-size: 1.4rem;
  color: var(--brass);
  margin: 0 0 0.2rem;
  transform: rotate(-1deg);
  display: inline-block;
}

.hello-hero__title {
  font-family: var(--hand);
  font-weight: 600;
  font-size: clamp(3.6rem, 9vw, 6.4rem);
  line-height: 0.95;
  color: var(--ink);
  margin: 0 0 2.4rem;
  transform: rotate(-1.5deg);
}

.envelope {
  max-width: 380px;
  margin: 0 auto;
  filter: drop-shadow(0 24px 36px rgba(43, 38, 32, 0.18));
  transform: rotate(-2deg);
}
.envelope svg {
  width: 100%;
  height: auto;
  display: block;
}

.hello-hero__sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--driftwood);
  max-width: 540px;
  margin: 2.4rem auto 0;
  opacity: 0.95;
}


/* ── POSTCARD GRID ──────────────────────────────────────────────── */
.postcards-grid {
  max-width: 1200px;
  margin: 0 auto 5rem;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
  position: relative;
  z-index: 5;
}

.postcard {
  position: relative;
  background: #FDFBF6;
  background-image:
    radial-gradient(circle at 30% 20%, rgba(120, 90, 50, 0.04) 1px, transparent 2px),
    radial-gradient(circle at 70% 80%, rgba(120, 90, 50, 0.035) 1px, transparent 2px);
  background-size: 22px 22px, 28px 28px;
  padding: 1.8rem 1.7rem 1.8rem;
  border-radius: 3px;
  box-shadow:
    0 22px 38px -22px rgba(43, 38, 32, 0.32),
    0 1px 2px rgba(43, 38, 32, 0.08);
  border: 1px solid rgba(107, 98, 86, 0.1);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1),
              box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  min-height: 360px;
}
.postcard--readers   { transform: rotate(-1.6deg); --pc-accent: #B25D43; }
.postcard--collab    { transform: rotate(1.2deg);  --pc-accent: #4F7A4B; }
.postcard--marketing { transform: rotate(-1deg);   --pc-accent: #8B7AB5; }
.postcard:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow:
    0 36px 56px -22px rgba(43, 38, 32, 0.38),
    0 1px 2px rgba(43, 38, 32, 0.08);
  z-index: 10;
}

.postcard__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
  min-height: 60px;
}

/* Address-lines area — three faint horizontal lines like a postcard's "to:" block */
.postcard__lines {
  flex: 1;
  background:
    linear-gradient(to bottom,
      transparent 0 12px,
      rgba(107, 98, 86, 0.3) 12px 13px,
      transparent 13px 24px,
      rgba(107, 98, 86, 0.3) 24px 25px,
      transparent 25px 36px,
      rgba(107, 98, 86, 0.3) 36px 37px,
      transparent 37px 100%
    );
  margin-right: 1rem;
  height: 50px;
}

/* Stamp in the corner */
.postcard__stamp {
  width: 48px;
  height: 60px;
  flex-shrink: 0;
  transform: rotate(4deg);
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.18));
}
.postcard__stamp svg {
  width: 100%;
  height: 100%;
  display: block;
}

.postcard__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0 0 0.8rem;
  color: var(--ink);
}
.postcard__title::after {
  content: "";
  display: block;
  width: 32px;
  height: 1.5px;
  background: var(--pc-accent);
  margin-top: 0.6rem;
  opacity: 0.7;
}

.postcard__copy {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--driftwood);
  margin: 0 0 1.4rem;
  flex: 1;
}

.postcard__cta {
  align-self: flex-start;
  font-family: var(--hand);
  font-size: 1.2rem;
  color: var(--pc-accent);
  text-decoration: none;
  padding: 0.4rem 1rem;
  background: rgba(0,0,0,0);
  border: 1.5px solid var(--pc-accent);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.postcard__cta:hover {
  background: var(--pc-accent);
  color: #FDFBF6;
  transform: translateX(3px);
}


/* ── LETTER-PAD FORM ────────────────────────────────────────────── */
.letter-form {
  max-width: 780px;
  margin: 4rem auto;
  padding: 0 2rem;
  position: relative;
  z-index: 5;
}

.letter-form__intro {
  text-align: center;
  font-family: var(--hand);
  font-size: 1.35rem;
  color: var(--brass);
  margin: 0 0 1.6rem;
  opacity: 0.92;
}

.letterpad {
  background: #FDFBF6;
  /* Lined-paper effect: faint horizontal rules */
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 28px,
    rgba(107, 98, 86, 0.18) 28px 29px
  );
  background-position: 0 24px;
  padding: 2rem 2.4rem 2rem;
  border-radius: 4px;
  border: 1px solid rgba(107, 98, 86, 0.18);
  box-shadow:
    0 28px 56px -28px rgba(43, 38, 32, 0.32),
    0 1px 2px rgba(43, 38, 32, 0.08);
  position: relative;
  transform: rotate(-0.4deg);
}
/* Red margin line on the left, like a real notebook */
.letterpad::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(178, 93, 67, 0.35);
}

.letterpad__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  height: 29px;
}

.letterpad__label {
  font-family: var(--hand);
  font-size: 1.1rem;
  color: var(--brass);
  flex-shrink: 0;
  width: 80px;
}
.letterpad__label--block {
  display: block;
  width: auto;
  margin-top: 1.2rem;
  margin-bottom: 0.3rem;
}

.letterpad__input,
.letterpad__textarea {
  flex: 1;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  line-height: 29px;
}
.letterpad__input::placeholder,
.letterpad__textarea::placeholder {
  color: rgba(107, 98, 86, 0.5);
  font-style: italic;
}
.letterpad__textarea {
  width: 100%;
  resize: vertical;
  line-height: 29px;
  min-height: 180px;
  background-attachment: local;
}
.letterpad__input:focus,
.letterpad__textarea:focus {
  outline: 1px dashed var(--brass);
  outline-offset: 4px;
}

.letterpad__footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 1.6rem;
}
.letterpad__signoff {
  font-family: var(--hand);
  font-size: 1.3rem;
  color: var(--brass);
  margin: 0;
  opacity: 0.85;
}
.letterpad__send {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: #FDFBF6;
  background: var(--ink);
  border: none;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.letterpad__send:hover:not(:disabled) {
  background: var(--brass);
  transform: translateY(-2px);
}
.letterpad__send:disabled {
  background: var(--mint);
  color: var(--ink);
  cursor: default;
}


/* ── DIRECT CONTACT ─────────────────────────────────────────────── */
.hello-direct {
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 2rem;
  text-align: center;
  position: relative;
  z-index: 5;
}
.hello-direct__line,
.hello-direct__social {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--driftwood);
  margin: 0.5rem 0;
}
.hello-direct__line a,
.hello-direct__social a {
  color: var(--brass);
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 1px;
  font-style: italic;
  transition: color 0.2s ease;
}
.hello-direct__line a:hover,
.hello-direct__social a:hover {
  color: var(--ink);
}


/* ── REPLY-TIME NOTE — a little pinned card ─────────────────────── */
.reply-note {
  max-width: 720px;
  margin: 3rem auto 4rem;
  padding: 0 2rem;
  position: relative;
  z-index: 5;
}
.reply-note__inner {
  background: #F1E5D8;
  padding: 1.8rem 2rem 1.6rem;
  border-radius: 3px;
  box-shadow:
    0 18px 32px -18px rgba(43, 38, 32, 0.28),
    0 1px 2px rgba(43, 38, 32, 0.06);
  transform: rotate(-1deg);
  position: relative;
  border: 1px solid rgba(107, 98, 86, 0.12);
}
.reply-note__pin {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  z-index: 3;
  background: radial-gradient(circle at 35% 30%, #E07A6B 0%, #B25D43 70%);
  box-shadow:
    0 3px 0 rgba(0,0,0,0.18),
    inset -2px -2px 3px rgba(0,0,0,0.25),
    inset 2px 2px 3px rgba(255,255,255,0.3);
}
.reply-note__inner h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  margin: 0 0 0.6rem;
  color: var(--ink);
}
.reply-note__inner p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--driftwood);
  margin: 0;
  opacity: 0.95;
}


/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .postcards-grid { grid-template-columns: 1fr; gap: 2rem; }
  .postcard { min-height: auto; }
}

@media (max-width: 640px) {
  .hello-hero { padding: 0 1rem; margin: 1rem auto 2rem; }
  .hello-hero__title { font-size: clamp(3rem, 13vw, 4.5rem); }
  .envelope { max-width: 280px; }
  .postcards-grid { padding: 0 1rem; }
  .postcard { transform: none !important; }
  .postcard:hover { transform: translateY(-3px) !important; }
  .letter-form { padding: 0 1rem; }
  .letterpad { padding: 1.4rem 1.4rem 1.4rem; }
  .letterpad__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    height: auto;
    margin-bottom: 0.7rem;
  }
  .letterpad__label { width: auto; }
  .letterpad__input { line-height: 1.5; }
  .letterpad__footer { flex-direction: column; gap: 1rem; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .postcard, .postcard__cta, .letterpad__send { transition: none; }
}
