/*
 * LT: Gift Trix: this site's own styles, on top of the round 3 system
 * (assets/system/) and the apps family's parts (apps.css).
 * Its seal is the small stamp in ink; its accent is the family's ink and call.
 */
.area-nav-name { font-family: var(--face-caps); font-weight: 650; font-size: 1.1rem; letter-spacing: 0.01em; }

.gt-hero { display: grid; gap: var(--s-7); align-items: center; padding-block: var(--s-6) var(--s-8); }
.gt-hero-words > * + * { margin-top: var(--s-5); }
.gt-tagline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 0.8rem; color: var(--ink-2); font-size: var(--step-small); }
.gt-tagline .tagline { font-size: var(--step-2); color: var(--ink); }
@media (min-width: 1024px) {
  .gt-hero { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 5vw, 5rem); }
}

/* ===================== the gift card's journey: idea to thank-you, along the round ===================== */
.journey-wrap { display: grid; gap: var(--s-3); justify-items: start; }
.journey {
  position: relative; width: 100%; aspect-ratio: 16 / 11; container-type: size;
  border-radius: calc(var(--radius) + 8px); background: var(--tint); overflow: hidden;
  --x: var(--x4); --y: var(--y4);
  --x0: 15; --y0: 58; --x1: 32; --y1: 34; --x2: 50; --y2: 24; --x3: 68; --y3: 34; --x4: 85; --y4: 58;
}
.journey-arc { position: absolute; inset: 0; width: 100%; height: 100%; }
.journey-arc path { fill: none; stroke: var(--boundary); stroke-width: 1.5; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.journey-arc .ring { stroke: var(--hair); stroke-dasharray: none; }
.journey-stages { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.journey-stage { position: absolute; display: grid; justify-items: center; gap: 0.3rem; transform: translate(-50%, calc(-100% + 7px)); }
.journey-stage .lbl { order: -1; }
.journey-stage .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--boundary); background: var(--raised); transition: background-color 200ms ease-out, border-color 200ms ease-out; }
.journey-stage .lbl { font-family: var(--face-caps); font-weight: 650; font-size: clamp(0.7rem, 2.1cqw, 0.85rem); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.journey-stage.is-on .dot, .journey-stage.is-past .dot, .journey:not([data-at]) .journey-stage .dot { background: var(--ink); border-color: var(--ink); }
.journey-stage.is-on .lbl, .journey:not([data-at]) .journey-stage:last-child .lbl { color: var(--ink); }
.st-0 { left: calc(var(--x0) * 1%); top: calc(var(--y0) * 1%); } .st-1 { left: calc(var(--x1) * 1%); top: calc(var(--y1) * 1%); }
.st-2 { left: calc(var(--x2) * 1%); top: calc(var(--y2) * 1%); } .st-3 { left: calc(var(--x3) * 1%); top: calc(var(--y3) * 1%); }
.st-4 { left: calc(var(--x4) * 1%); top: calc(var(--y4) * 1%); }
.journey[data-at="0"] { --x: var(--x0); --y: var(--y0); } .journey[data-at="1"] { --x: var(--x1); --y: var(--y1); }
.journey[data-at="2"] { --x: var(--x2); --y: var(--y2); } .journey[data-at="3"] { --x: var(--x3); --y: var(--y3); }
.journey[data-at="4"] { --x: var(--x4); --y: var(--y4); }
.journey-card {
  position: absolute; left: 0; top: 0; z-index: 2; width: 30cqw; min-width: 9.5rem;
  display: grid; gap: 0.2rem; padding: 0.7rem 0.85rem 0.8rem;
  border: 1px solid var(--boundary); border-radius: 12px; background: var(--raised); color: var(--ink);
  box-shadow: 0 16px 30px -20px rgb(31 27 22 / .55);
  transform: translate(calc(clamp(17, var(--x), 79) * 1cqw - 50%), calc(var(--y) * 1cqh + 1rem)) rotate(-2deg);
}
.journey.is-armed .journey-card { transition: transform 320ms var(--ease-out); }
.journey.is-snap .journey-card { transition-duration: 200ms; }
.journey-card::before { content: ""; position: absolute; left: 1rem; right: 1rem; top: -1px; height: 4px; border-radius: 0 0 4px 4px; background: repeating-linear-gradient(90deg, var(--call) 0 8px, transparent 8px 12px); }
.jc-for { font-family: var(--face-note); font-weight: 600; font-size: 1.15rem; line-height: 1.2; }
.jc-when { font-size: 0.8rem; color: var(--ink-2); }
.jc-line { display: none; margin-top: 0.25rem; font-weight: 650; font-size: 0.9rem; line-height: 1.3; }
.journey:not([data-at]) .jc-4, .journey[data-at="0"] .jc-0, .journey[data-at="1"] .jc-1, .journey[data-at="2"] .jc-2, .journey[data-at="3"] .jc-3, .journey[data-at="4"] .jc-4 { display: block; }
.journey-card .press { position: absolute; right: -14px; bottom: -16px; --seal-size: 46px; }
@media (max-width: 719px) {
  .journey { aspect-ratio: 4 / 5; --x0: 12; --y0: 10; --x1: 12; --y1: 27; --x2: 12; --y2: 44; --x3: 12; --y3: 61; --x4: 12; --y4: 78; }
  .journey::before { content: ""; position: absolute; left: 12%; top: 10%; height: 68%; border-left: 1.5px dashed var(--boundary); }
  .journey-stage { grid-template-columns: auto auto; align-items: center; justify-items: start; transform: translate(-7px, -50%); }
  .journey-stage .lbl { order: 0; }
  .journey-card { width: 58cqw; transform: translate(calc(36cqw), calc(var(--y) * 1cqh - 50%)) rotate(-1.5deg); }
  .journey-arc .arc { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .journey.is-armed .journey-card { transition: none; }
}

/* ===================== the four worries ===================== */
.worries { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: var(--s-4); margin: var(--s-5) 0 0; padding: 0; list-style: none; }
.worry { display: grid; gap: var(--s-2); padding: var(--s-5); border-top: 3px solid var(--ink); background: var(--raised); border-radius: 0 0 var(--radius) var(--radius); }
.worry b { font-family: var(--face-head); font-weight: 600; font-size: var(--step-2); line-height: 1.2; }
.worry-mark { font-family: var(--face-caps); font-size: var(--step-quiet); font-weight: 650; letter-spacing: 0.14em; color: var(--ink-2); }

/* ===================== doors to the site's pages ===================== */
.gt-doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: var(--s-3); margin: var(--s-5) 0 0; padding: 0; list-style: none; }
.gt-door { display: grid; gap: var(--s-2); height: 100%; padding: var(--s-5); border: 1px solid var(--hair); border-radius: calc(var(--radius) + 4px); background: var(--raised); color: var(--ink); text-decoration: none; transition: border-color var(--t-swap) ease-out; }
.gt-door:hover { border-color: var(--boundary); }
.gt-door b { font-family: var(--face-caps); font-weight: 650; font-size: 1.1rem; }
.gt-door span { color: var(--ink-2); }
.gt-door i { font-style: normal; font-weight: 650; display: inline-flex; align-items: center; gap: 0.4em; }
.gt-door i svg { width: 1em; height: 1em; transition: transform var(--t-swap) var(--ease-out); }
.gt-door:hover i svg { transform: translateX(3px); }

/* ===================== a screen shown in light and in dark, side by side ===================== */
.theme-pair { display: grid; gap: var(--s-4); margin-top: var(--s-5); }
.theme-pair > div { display: grid; gap: var(--s-2); padding: var(--s-4); border-radius: calc(var(--radius) + 6px); background: var(--ground); color: var(--ink); border: 1px solid var(--hair); }
.theme-light { color-scheme: light; }
.theme-dark { color-scheme: dark; }
.theme-pair .scene { aspect-ratio: auto; min-height: 20rem; }
@media (min-width: 900px) { .theme-pair { grid-template-columns: 1fr 1fr; } }

.gt-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: var(--s-5); margin: var(--s-6) 0 0; padding: 0; list-style: none; }
.gt-points h3 { margin-bottom: var(--s-2); }

/* ===================== the year, as a ring of months ===================== */
.year { display: grid; gap: var(--s-6); align-items: center; }
.year-ring { width: min(100%, 30rem); justify-self: center; }
.year-ring svg { width: 100%; height: auto; overflow: visible; }
.yr-ring { fill: none; stroke: var(--boundary); stroke-width: 1.2; }
.yr-band { fill: none; stroke: var(--tint); stroke-width: 22; }
.yr-tick { stroke: var(--boundary); stroke-width: 1; }
.yr-month { font-family: var(--face-caps); font-weight: 650; font-size: 9px; letter-spacing: 0.16em; fill: var(--ink-2); }
.yr-dot { fill: var(--ink); stroke: var(--raised); stroke-width: 2; }
.yr-dot--b { fill: var(--call); }
.yr-centre { font-family: var(--face-head); font-weight: 600; font-size: 22px; fill: var(--ink); }
.yr-centre-s { font-family: var(--face-note); font-weight: 600; font-size: 10px; fill: var(--ink-2); }
.year-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hair); }
.year-list li { display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--hair); }
.year-list b { font-variant-numeric: tabular-nums lining-nums; }
.year-list .k { display: inline-block; width: 10px; height: 10px; margin-right: 0.4rem; border-radius: 50%; background: var(--ink); }
.year-list .k--b { background: var(--call); }
@media (min-width: 1024px) { .year { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ===================== her own words, and the way back ===================== */
.gt-words { display: grid; gap: var(--s-4); margin: var(--s-5) 0 0; padding: 0; list-style: none; max-width: 46rem; }
.gt-words blockquote { margin: 0; padding: var(--s-4) var(--s-5); border-left: 3px solid var(--call); background: var(--raised); border-radius: 0 var(--radius) var(--radius) 0; }
.gt-words p { font-family: var(--face-head); font-weight: 600; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem); line-height: 1.4; }
.gt-close { display: grid; gap: var(--s-4); justify-items: start; margin-top: var(--s-8); padding: var(--s-7) var(--s-6); border-radius: calc(var(--radius) + 8px); background: var(--tint); }
.gt-close-links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin: 0; padding: 0; list-style: none; }
.gt-close-links a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: var(--target); color: var(--ink); font-weight: 600; }
.gt-close-links .seal-icon { --seal-size: 30px; }
.gt-figure { margin-top: var(--s-8); }
.gt-figure picture, .gt-figure img { border-radius: calc(var(--radius) + 6px); }
.gt-page-head { padding-block: var(--s-6) var(--s-5); }
.gt-page-head .pair { max-width: 52rem; }
.gt-page-head .lede { margin-top: var(--s-5); }
.gt-questions { max-width: 50rem; margin-top: var(--s-5); }
