/* The Bedside Journal: Tobacco & Linen.
   Rules below are carried over verbatim from the approved page mock-ups (../pages/*.dc.html).
   Page layout lives in the inline styles of each page, exactly as designed. */

/* ---- From the mock-ups ---- */
body{margin:0;background:#EDE4D3;color:#2B211A;font-family:"EB Garamond",Georgia,serif;font-size:19px;line-height:1.55}
a{color:#7A4A2B}a:hover{color:#2B211A}
.wrap{max-width:1180px;margin:0 auto;padding:0 40px}
.h{font-family:"Cormorant Garamond",Georgia,serif;font-weight:500;line-height:1.08;margin:0}
.lab{font-size:13px;letter-spacing:0.18em;text-transform:uppercase;margin:0}
.btn{display:inline-block;background:#7A4A2B;color:#EDE4D3;font-family:"EB Garamond",Georgia,serif;font-size:17px;letter-spacing:0.08em;text-transform:uppercase;padding:16px 30px;text-decoration:none;border:0;border-radius:6px;cursor:pointer;transition:background-color 200ms}
.btn:hover{background:#2B211A;color:#EDE4D3}
.ghost{display:inline-block;color:#2B211A;font-size:17px;letter-spacing:0.08em;text-transform:uppercase;padding:15px 28px;text-decoration:none;border-radius:6px;background:#DCCFB8;transition:background-color 200ms}
.ghost:hover{background:#C9B99C}
.muted{color:#6B5A4A}
.ph{border-radius:3px;display:block;width:100%;object-fit:cover}
.frame{border:1px solid #7A4A2B;padding:6px;border-radius:6px;background:#F6F0E4}
.frame-gold{border:1px solid #C9A75B;padding:6px;border-radius:6px;background:#F6F0E4}
.rule{border:0;border-top:1px solid #7A4A2B;margin:0}
.field{display:flex;flex-direction:column;gap:8px}
.field label{font-size:13px;letter-spacing:0.18em;text-transform:uppercase;color:#7A4A2B}
.field input,.field textarea,.field select{font-family:"EB Garamond",Georgia,serif;font-size:18px;color:#2B211A;background:#F6F0E4;border:1px solid #7A4A2B;border-radius:6px;padding:12px 14px;width:100%;box-sizing:border-box}
.field textarea{min-height:120px;resize:vertical}
.terms{width:100%;border-collapse:collapse}
.terms th,.terms td{text-align:left;padding:14px 0;border-top:1px solid #7A4A2B;vertical-align:top}
.terms th{font-size:13px;letter-spacing:0.18em;text-transform:uppercase;color:#7A4A2B;font-weight:400;width:40%}
.terms tr:last-child th,.terms tr:last-child td{border-bottom:1px solid #7A4A2B}
.check{color:#8A2F1F;font-size:16px;font-style:italic}
.p-wholesale ul{margin:0;padding-left:22px}
.p-wholesale li{margin:0 0 8px}

/* ---- Where one mock-up differs from the others ---- */
.p-home .frame,.p-home .frame-gold{background:none}          /* Home frames have no mat fill */
.p-journal .field input{width:120px}                          /* quantity box */
.p-contact .field textarea{min-height:160px}

/* ---- Focus ring (CLAUDE.md): tobacco on linen, cream on bands ---- */
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #7A4A2B;outline-offset:2px}
.band a:focus-visible,.band button:focus-visible,.band input:focus-visible,.band select:focus-visible,.band textarea:focus-visible{outline-color:#EDE4D3}

/* ---- Under 820px: one column, hero photo under the text, display-1 at 52px. Nothing hidden. ---- */
@media (max-width:820px){
  [style*="grid-template-columns"]{grid-template-columns:minmax(0,1fr) !important}
  [style*="grid-column"]{grid-column:auto !important}
  h1.h{font-size:52px !important}
  /* Hero cover: same crop as 1280 (book centered, even margins), scaled to the column */
  .hero-crop{height:auto !important;aspect-ratio:504/460}
  section[style*="padding:88px 0"]{padding:64px 0 !important}
  section[style*="padding:96px 0"]{padding:72px 0 !important}
}
@media (max-width:600px){
  .wrap{padding:0 24px}
  .h[style*="font-size:56px"]{font-size:44px !important}
  .h[style*="font-size:48px"]{font-size:38px !important}
  .terms th{width:auto}
  .terms th,.terms td{display:block}
  .terms td{border-top:0;padding-top:0}
  .terms tr:last-child th{border-bottom:0}
}
