/* Preserved from custom-letters-and-comments.hbs; maintained in the theme. */
/* ══════════════════════════════════════════════════════════
     RUBICON — Letters & Comments
     Readers write to the editor. The form composes an email in
     the reader's own mail app addressed to editor@rubiconmag.com,
     so no third-party form service is required and every letter
     arrives from a real, replyable address.
     NOTE: widths are in px/ch, never rem — this theme sets
     html{font-size:62.5%} so 1rem = 10px.
     ══════════════════════════════════════════════════════════ */
  .rb-page-head { max-width: 720px; margin: 0 auto; padding: 64px 24px 6px; }
  .rb-page-crumb {
    font-family: 'Cinzel','Iowan Old Style',Georgia,serif;
    font-weight: 700; font-size: 11px; letter-spacing: 0.16em;
    text-transform: uppercase; color: #6f6358; margin: 0 0 16px;
  }
  .rb-page-crumb a { color: #5a2e2e; text-decoration: none; }
  .rb-page-crumb a:hover { color: #841400; }
  .rb-page-crumb .sep { margin: 0 8px; opacity: 0.45; }
  .rb-page-title {
    font-family: 'Iowan Old Style','Palatino Linotype',Palatino,'Book Antiqua',Georgia,serif;
    font-weight: 600; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.08;
    color: #211d1a; margin: 0; text-align: left; text-wrap: balance;
  }
  .rb-page-sub {
    font-family: 'Iowan Old Style','Palatino Linotype',Palatino,Georgia,serif;
    font-style: italic; font-size: 18px; line-height: 1.5; color: #6f6358; margin: 12px 0 0;
  }

  /* optional intro copy written in the Ghost editor */
  .rb-page-body {
    font-family: 'Iowan Old Style','Palatino Linotype',Palatino,'Book Antiqua',Georgia,serif;
    color: #2a2521; text-align: left;
  }
  .rb-page-body p, .rb-page-body li { font-size: 18px; line-height: 1.72; }
  .rb-page-body a { color: #5a2e2e; text-decoration: underline; text-underline-offset: 2px; }
  .rb-page-body a:hover { color: #841400; }

  .gh-main.rb-page-main { padding-bottom: clamp(64px, 8vw, 104px); }

  /* ── the letter form ─────────────────────────────────────── */
  .rb-letter { max-width: 720px; margin: 34px auto 0; padding: 0 24px; }
  .rb-letter__card {
    border: 1px solid rgba(90,46,46,0.25); border-radius: 3px;
    background: rgba(255,255,255,0.55); padding: clamp(24px, 4vw, 40px);
  }
  .rb-letter__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  @media (max-width: 560px) { .rb-letter__row { grid-template-columns: 1fr; } }

  .rb-letter__field { margin: 0 0 20px; }
  .rb-letter__label {
    display: block;
    font-family: 'Cinzel','Iowan Old Style',Georgia,serif;
    font-weight: 700; font-size: 11px; letter-spacing: 0.16em;
    text-transform: uppercase; color: #5a2e2e; margin: 0 0 8px;
  }
  .rb-letter__label .req { color: #841400; }
  .rb-letter__input, .rb-letter__textarea {
    width: 100%; box-sizing: border-box;
    font-family: 'Iowan Old Style','Palatino Linotype',Palatino,Georgia,serif;
    font-size: 17px; line-height: 1.5; color: #211d1a;
    background: #fdfcfa; border: 1px solid rgba(90,46,46,0.3); border-radius: 2px;
    padding: 12px 14px; transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .rb-letter__input:focus, .rb-letter__textarea:focus {
    outline: none; border-color: #5a2e2e; box-shadow: 0 0 0 2px rgba(90,46,46,0.12);
  }
  .rb-letter__input::placeholder, .rb-letter__textarea::placeholder {
    color: #a59a8e; font-style: italic;
  }
  .rb-letter__textarea { min-height: 240px; resize: vertical; }

  .rb-letter__note {
    font-family: 'Iowan Old Style','Palatino Linotype',Palatino,Georgia,serif;
    font-style: italic; font-size: 14px; line-height: 1.5; color: #6f6358;
    margin: 8px 0 0;
  }

  .rb-letter__actions { margin: 26px 0 0; text-align: left; }
  .rb-letter__submit {
    display: inline-block; cursor: pointer;
    font-family: 'Cinzel','Trajan Pro','Optima',Georgia,serif;
    font-weight: 700; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
    color: #f8f5f0; background: #5a2e2e; border: 0; border-radius: 2px;
    padding: 15px 34px; transition: background 0.2s ease;
  }
  .rb-letter__submit:hover { background: #841400; }

  .rb-letter__error {
    display: none;
    font-family: 'Iowan Old Style',Palatino,Georgia,serif;
    font-size: 15px; color: #841400; margin: 14px 0 0;
  }
  .rb-letter__sent {
    display: none;
    font-family: 'Iowan Old Style',Palatino,Georgia,serif;
    font-size: 15px; color: #2a2521; margin: 14px 0 0;
  }
  .rb-letter.is-error .rb-letter__error { display: block; }
  .rb-letter.is-sent .rb-letter__sent { display: block; }

  .rb-letter__alt {
    font-family: 'Iowan Old Style',Palatino,Georgia,serif;
    font-size: 15px; color: #6f6358; text-align: center; margin: 22px 0 0;
  }
  .rb-letter__alt a { color: #5a2e2e; text-decoration: underline; text-underline-offset: 2px; }
  .rb-letter__alt a:hover { color: #841400; }
