/* Shared layout for the THRIFTSAINTS mockup. Needs tokens.css first. */
a { color: inherit; }
.skip { position: absolute; left: 8px; top: 8px; transform: translateY(-300%); max-width: calc(100vw - 16px); overflow-wrap: anywhere; background: var(--ink); color: var(--cream); padding: 12px 18px; border-radius: var(--radius-pill); z-index: 10; }
.skip:focus { transform: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.page { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.stack { display: flex; flex-direction: column; gap: var(--gap-section); padding: 40px 0 var(--gap-section); }

/* header */
.top { border-bottom: var(--border); background: var(--bg); }
.top .page { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; min-height: 44px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; font-size: 1.5rem; line-height: 1; color: var(--brand); text-decoration: none; }
.logo i { font-style: normal; color: var(--accent); }
.nav { display: flex; gap: 8px; min-width: 0; }
.nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 8px 14px; overflow-wrap: anywhere; border-radius: var(--radius-pill); font-weight: 700; font-size: var(--fs-small); text-decoration: none; }
.nav a:hover { background: var(--cream-deep); }
.nav a[aria-current="page"] { background: var(--brand); color: var(--on-brand); }
@media (max-width: 539px) { .nav { width: 100%; justify-content: space-between; } }

/* type blocks */
.eyebrow { font-size: var(--fs-small); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.display { font-size: var(--fs-display); color: var(--brand); }
.h1 { font-size: var(--fs-h1); color: var(--brand); }
.lede { text-wrap: pretty; font-size: 1.25rem; margin: 0; color: var(--text-muted); }
.head { display: flex; flex-direction: column; gap: 16px; }

/* buttons */
.btn { display: inline-block; align-self: flex-start; padding: 14px 28px; border: var(--border); border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); font: 700 var(--fs-body)/1.2 var(--font); box-shadow: var(--shadow-pop); text-decoration: none; cursor: pointer; max-width: 100%; overflow-wrap: anywhere; }
.btn:hover { box-shadow: 2px 2px 0 var(--ink); transform: translate(2px, 2px); }
.btn.ghost { background: var(--surface); color: var(--text); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* cards and grids */
.card { background: var(--surface); border: var(--border); border-radius: var(--radius); padding: var(--pad); box-shadow: var(--shadow-pop); min-width: 0; overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 12px; }
.card h2, .card h3 { font-size: var(--fs-h2); color: var(--brand); }
.card p { margin: 0; text-wrap: pretty; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
@media (max-width: 1023px) { .grid3 { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .grid4 { grid-template-columns: 1fr; } }
@media (min-width: 768px) and (max-width: 1023px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }

/* hero */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--gap); align-items: stretch; }
.hero .head { justify-content: center; }
.hero-art { background: var(--brand); color: var(--on-brand); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-pop); min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; padding: var(--pad); }
.hero-art b { font-size: var(--fs-h1); font-weight: 900; text-transform: uppercase; line-height: 1; }
.hero-art span { font-size: var(--fs-small); }
@media (max-width: 767px) { .hero { grid-template-columns: 1fr; } .hero-art { min-height: 200px; } }

/* product tiles */
.tile span { min-width: 0; overflow-wrap: anywhere; }
.tile { border: var(--border); border-radius: var(--radius); aspect-ratio: 4 / 5; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; font-size: var(--fs-small); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.t-forest { background: var(--forest); color: var(--cream); }
.t-terra { background: var(--terracotta); color: var(--cream); }
.t-sand { background: var(--cream-deep); color: var(--ink); }
.t-ink { background: var(--ink); color: var(--cream); }
.item { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.item h2, .item h3 { font-size: 1.125rem; letter-spacing: -0.01em; min-width: 0; overflow-wrap: anywhere; }
.item p { margin: 0; color: var(--text-muted); flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; }
.item .row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }

/* sample note */
.note { font-size: var(--fs-small); color: var(--text-muted); margin: 0; }

/* signup band */
.band { background: var(--brand); color: var(--on-brand); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-pop); padding: 40px var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
.band h2 { font-size: clamp(1.25rem, 5.4vw, 2rem); }
.band p { margin: 12px 0 0; }
.form { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.form label { font-weight: 700; font-size: var(--fs-small); }
.form input, .form textarea { width: 100%; padding: 14px 16px; border: var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); font: 400 var(--fs-body)/1.4 var(--font); }
.form textarea { min-height: 140px; resize: vertical; }
.form .msg { margin: 0; font-size: var(--fs-small); font-weight: 700; min-height: 1.4em; }
.band .btn { background: var(--accent); }
@media (max-width: 1023px) { .band { grid-template-columns: 1fr; } }

/* contact split */
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--gap); align-items: start; }
@media (max-width: 767px) { .split { grid-template-columns: 1fr; } }
.list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.list li { padding-left: 24px; position: relative; }
.list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

/* footer */
.foot { border-top: var(--border); background: var(--cream-deep); }
.foot .page { padding-top: 24px; padding-bottom: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--fs-small); }
.foot p { margin: 0; }

/* long-word safety and balanced short text */
.logo, .eyebrow, .lede, .h1, .display, .form label, .band > div, .hero > *, .head, .band h2, .band p { min-width: 0; overflow-wrap: anywhere; }
.logo { max-width: 100%; }
.hero-art, .hero .head, .band .form { min-width: 0; }
.card p { text-wrap: balance; }
.hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
@media (max-width: 767px) { .hero { grid-template-columns: minmax(0, 1fr); } }
