/* Guide pages (how-to-make-a-postcard.html): a reading column with one picture per step, alternating sides on desktop.
   Loaded after app.css; everything is under .guide so nothing reaches the editor. The postcards are drawn in CSS. */
.guide { max-width: 1080px; margin: 0 auto; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px)); }
.guide h1 { margin: 8px 0 10px; font: 700 clamp(34px, 5vw, 54px)/1.05 var(--display); letter-spacing: -.025em; max-width: 16ch; }
.guide .lede { max-width: 58ch; margin: 0 0 18px; font-size: 18px; color: var(--muted); }
.guide h2 { margin: 0 0 8px; font: 700 clamp(22px, 3vw, 28px)/1.2 var(--display); letter-spacing: -.015em; }
.guide h3 { margin: 18px 0 6px; font: 600 16px/1.3 var(--body); }
.guide p { max-width: 60ch; line-height: 1.6; margin: 0 0 12px; }
.guide a:not(.btn) { color: var(--air-red); }
.guide a.btn { text-decoration: none; }
.guide a.btn:not(.primary) { color: var(--fg); }
:root[data-theme="dark"] .guide a:not(.btn) { color: #ff8a80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .guide a:not(.btn) { color: #ff8a80; } }
.guide .kicker { display: inline-block; font: 600 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--air-red); }

/* hero */
.guide .hero { display: grid; gap: 28px; align-items: center; grid-template-columns: 1.1fr 1fr; padding: 12px 0 28px; border-bottom: 1px solid var(--line); }
.guide .hero-art { position: relative; height: 300px; }
.guide .hero-art .pc { position: absolute; width: 74%; }
.guide .hero-art .pc:nth-child(1) { left: 0; top: 10px; transform: rotate(-5deg); }
.guide .hero-art .pc:nth-child(2) { right: 0; bottom: 6px; transform: rotate(4deg); }
/* the back covers the front's right half, so its words sit top left */
.guide .hero-art .pc:nth-child(1) .in { place-items: start; text-align: left; }
.guide .toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.guide .toc a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 7px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--fg); text-decoration: none; font-weight: 500; font-size: 14px; }
.guide .toc a:hover { border-color: var(--fg); }
.guide .toc b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--fg); color: var(--bg); font-size: 12px; }

/* steps */
.guide .gstep { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; padding: 48px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
.guide .gstep.flipped .art { order: -1; }
.guide .gstep.wide { grid-template-columns: 1fr; }
.guide .gstep.follow { padding-top: 0; }
.guide .num { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 12px; border-radius: 50%; background: var(--air-red); color: #fff; font: 700 20px/1 var(--display); }
.guide .art { min-width: 0; }
.guide .tips { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 60ch; }
.guide .tips li { position: relative; padding-left: 34px; line-height: 1.5; }
.guide .tips li::before { content: "✓"; position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--air-blue) 14%, transparent); color: var(--air-blue); font-weight: 700; font-size: 13px; }
:root[data-theme="dark"] .guide .tips li::before { color: var(--focus); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .guide .tips li::before { color: var(--focus); } }
.guide .ideas { margin: 6px 0 12px; padding-left: 1.2em; max-width: 60ch; line-height: 1.55; }
.guide .ideas li + li { margin-top: 4px; }

/* the postcard drawn in CSS: sizes in cqw so it scales with its box */
.guide .pc { position: relative; aspect-ratio: 3 / 2; border-radius: 6px; background: #fbf8f1; color: #1d1f24; box-shadow: var(--shadow); overflow: hidden; container-type: inline-size; }
.guide .pc.air::before { content: ""; position: absolute; inset: 0; padding: 3.2cqw; border-radius: inherit;
  background: repeating-linear-gradient(135deg, #c8312f 0 4cqw, #fbf8f1 4cqw 6cqw, #1f4fa0 6cqw 10cqw, #fbf8f1 10cqw 12cqw);
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.guide .pc .in { position: absolute; inset: 6cqw; display: grid; place-items: center; text-align: center; }
.guide .pc .hl { font: 700 9cqw/1 var(--display); letter-spacing: -.02em; }
.guide .pc .hand { font: 600 7cqw/1.1 var(--hand); }
.guide .pc .big { font-size: 15cqw; line-height: 1; }
.guide .pc .photo { border-radius: 3px; background: linear-gradient(160deg, #f3b57a, #d9644a 55%, #6d3b6e); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.guide .pc.bg-blush { background: #f7dfe0; } .guide .pc.bg-sage { background: #dfe8d9; } .guide .pc.bg-sky { background: #dce8f5; }
.guide .pc.bg-night { background: #1c2340; color: #f6f1e6; } .guide .pc.bg-sun { background: #fbe7b7; }
.guide .pc .stamp { position: absolute; right: 5cqw; top: 6cqw; width: 13cqw; aspect-ratio: 4 / 5; background: #fff; padding: 1.2cqw; outline: .5cqw dashed #c9c3b5; outline-offset: .4cqw; }
.guide .pc .stamp i { display: grid; place-items: center; height: 100%; background: #e9c9a6; font-style: normal; font-size: 6cqw; }
.guide .pc .back { position: absolute; inset: 6cqw; display: grid; grid-template-columns: 1.25fr 1fr; gap: 5cqw; }
.guide .pc .msg { font: 600 4.6cqw/1.32 var(--hand); text-align: left; padding-right: 4cqw; border-right: .3cqw solid #d9d7d0; overflow: hidden; }
.guide .pc .addr { display: flex; flex-direction: column; justify-content: flex-end; gap: 4.2cqw; padding-bottom: 3cqw; }
.guide .pc .addr span { display: block; border-bottom: .3cqw solid #b9b6ad; font: 600 4.4cqw/1 var(--hand); padding-bottom: .6cqw; min-height: 5cqw; }
.guide .cap { margin: 10px auto 0; font-size: 13px; color: var(--muted); text-align: center; }

/* 1: feelings */
.guide .moods { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.guide .moods span { display: block; margin-top: 8px; text-align: center; font-size: 13px; color: var(--muted); }

/* 2: size */
.guide .dims { position: relative; max-width: 400px; margin: 0 auto; padding: 0 0 30px 44px; }
.guide .dim { position: absolute; font-size: 12px; font-weight: 600; color: var(--muted); }
.guide .dim.w { left: 44px; right: 0; bottom: 0; text-align: center; border-top: 1.5px solid var(--line-strong); padding-top: 6px; }
.guide .dim.h { left: 0; top: 0; bottom: 30px; width: 32px; border-right: 1.5px solid var(--line-strong); writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; padding-left: 6px; }

/* 3: busy vs clear, three fronts */
.guide .vs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.guide figure { margin: 0; }
.guide .verdict { margin-top: 10px; font-weight: 600; font-size: 14px; }
.guide .verdict.no { color: var(--danger); }
.guide .verdict.yes { color: #2f7d4f; }
:root[data-theme="dark"] .guide .verdict.yes { color: #7fd1a0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .guide .verdict.yes { color: #7fd1a0; } }
.guide .verdict small { display: block; font-weight: 400; color: var(--muted); }
.guide .clutter { position: absolute; inset: 6cqw; }
.guide .clutter span { position: absolute; font-size: 8cqw; }
.guide .fronts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.guide .fronts h3 { margin: 12px 0 2px; }
.guide .fronts p { font-size: 14px; color: var(--muted); margin: 0; }

/* 4: the back, labelled */
.guide .zone { position: absolute; display: grid; place-items: center; border: .5cqw dashed; border-radius: 1.5cqw; font: 600 3.6cqw/1 var(--body); }
.guide .zone span { padding: 1cqw 2cqw; border-radius: 99px; background: #fbf8f1; }
.guide .z-msg { left: 5cqw; top: 5cqw; width: 48cqw; bottom: 15cqw; color: #1f4fa0; background: rgba(31, 79, 160, .06); }
.guide .z-stamp { right: 5cqw; top: 5cqw; width: 16cqw; height: 19cqw; color: #c8312f; background: rgba(200, 49, 47, .07); }
.guide .z-addr { right: 5cqw; left: 57cqw; top: 30cqw; bottom: 15cqw; color: #2f7d4f; background: rgba(47, 125, 79, .07); }
.guide .z-bar { left: 5cqw; right: 5cqw; bottom: 3cqw; height: 9cqw; color: #8a857a; background: repeating-linear-gradient(135deg, rgba(0, 0, 0, .05) 0 1.5cqw, transparent 1.5cqw 3cqw); }
.guide .z-msg::after { content: ""; position: absolute; right: -4cqw; top: 0; bottom: 0; border-right: .4cqw solid #d9d7d0; }
.guide .address { margin: 4px 0 14px; padding: 12px 16px; border-left: 3px solid var(--air-blue); background: var(--surface); border-radius: 0 10px 10px 0; font: 600 20px/1.35 var(--hand); max-width: 22em; }

/* printable template */
.guide .template { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: center; margin-top: 8px; padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.guide .template h2 { font-size: 22px; }
.guide .template p { margin-bottom: 14px; color: var(--muted); }
.guide .template .btns { display: flex; flex-wrap: wrap; gap: 10px; }
.guide .sheet-pic { aspect-ratio: 210 / 297; padding: 14% 12%; display: grid; gap: 10%; align-content: center; border-radius: 4px; background: #fff; box-shadow: var(--shadow); }
.guide .sheet-pic .pc { box-shadow: none; outline: 1px dashed #b9b6ad; border-radius: 0; }

/* 5: message callouts */
.guide .callouts ol { margin: 16px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.guide .callouts li { display: grid; grid-template-columns: 24px 1fr; gap: 8px; font-size: 14px; line-height: 1.4; }
.guide .callouts li b, .guide .pin { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--air-blue); color: #fff; font: 700 12px/1 var(--body); }
.guide .pin { position: absolute; z-index: 2; left: -11px; box-shadow: 0 0 0 3px var(--bg); }

/* 6: printing */
.guide .check { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.guide .check li { display: flex; gap: 10px; align-items: baseline; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.guide .check li b { flex: none; min-width: 7.5em; font-weight: 600; }
.guide .check li span { color: var(--muted); font-size: 14px; }
.guide .flip { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.guide .paper { padding: 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.guide .paper .pc { box-shadow: 0 1px 2px rgba(20, 20, 30, .15); }
.guide .paper .pc + .pc { margin-top: 10px; }
.guide .upside .back { transform: rotate(180deg); }
.guide .upside .stamp { left: 5cqw; right: auto; top: auto; bottom: 6cqw; transform: rotate(180deg); }

/* 7: ways to send */
.guide .ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.guide .way { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); display: flex; flex-direction: column; }
.guide .way .ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 26px; margin-bottom: 12px; }
.guide .way h3 { margin: 0 0 4px; font: 700 18px/1.25 var(--display); }
.guide .way p { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.guide .way .best { margin-top: auto; font-size: 13px; }
.guide .way .best b { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.guide .way a { margin-top: 12px; font-weight: 600; }

/* questions and the closing box */
.guide .faq { padding: 48px 0 0; }
.guide .faq h3 { margin-top: 22px; }
.guide .cta { margin: 48px 0 0; padding: 32px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.guide .cta h2 { margin: 0 0 4px; }
.guide .cta p { margin: 0; color: var(--muted); }

@media (max-width: 820px) {
  .guide .hero, .guide .gstep { grid-template-columns: 1fr; gap: 22px; }
  .guide .gstep.flipped .art { order: 0; }
  .guide .hero-art { height: 230px; }
  .guide .gstep { padding: 36px 0; }
  .guide .ways { grid-template-columns: 1fr; }
  .guide .fronts { gap: 10px; }
  .guide .fronts p { display: none; }
  .guide .template { grid-template-columns: 1fr; }
  .guide .sheet-pic { max-width: 160px; }
}
@media (max-width: 480px) { .guide .callouts ol { grid-template-columns: 1fr; } .guide .check li { flex-direction: column; gap: 2px; } }
