/*
Theme Name: Away Miles
Theme URI: https://wallphone.site/
Author: Jeremy Criddle
Description: A focused runner-travel publication for WallPhone.site.
Version: 1.0.0
Text Domain: away-miles
*/

:root {
  --paper: #f3f2ea;
  --paper-deep: #e7e4d8;
  --ink: #17212b;
  --muted: #59636b;
  --orange: #ee5b2b;
  --orange-dark: #bb3d17;
  --blue: #245b78;
  --yellow: #e6b94a;
  --line: #c8cbc5;
  --white: #fffef9;
  --max: 1180px;
  --measure: 760px;
  --shadow: 0 18px 50px rgba(23, 33, 43, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.66;
}
a { color: var(--blue); text-decoration-thickness: 1.5px; text-underline-offset: .16em; }
a:hover { color: var(--orange-dark); }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 999; background: var(--ink); color: white; padding: .7rem 1rem; }

.site-header {
  border-top: 7px solid var(--orange);
  border-bottom: 1px solid var(--line);
  background: rgba(243, 242, 234, .96);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
}
.header-inner {
  max-width: var(--max);
  margin: auto;
  min-height: 76px;
  padding: .8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand { color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: .75rem; }
.brand-mark {
  width: 42px; height: 42px; border: 2px solid var(--ink); border-radius: 50%;
  display: grid; place-items: center; position: relative; overflow: hidden; font-weight: 900;
}
.brand-mark::after { content: ""; position: absolute; width: 50px; height: 7px; background: var(--orange); transform: rotate(-35deg); }
.brand-name { font-family: "Arial Narrow", "Aptos Narrow", sans-serif; text-transform: uppercase; letter-spacing: .08em; font-weight: 900; font-size: 1.15rem; }
.brand-tag { display: block; color: var(--muted); font-size: .66rem; letter-spacing: .1em; font-weight: 700; }
.site-nav { display: flex; gap: 1.25rem; align-items: center; font-size: .83rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav .nav-cta { border: 2px solid var(--ink); padding: .5rem .8rem; box-shadow: 3px 3px 0 var(--orange); }
.menu-toggle { display: none; border: 2px solid var(--ink); background: transparent; padding: .45rem .65rem; font-weight: 900; }

.hero { border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { max-width: var(--max); margin: auto; min-height: 650px; padding: 4.5rem 1.5rem; display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; }
.eyebrow { display: flex; gap: .65rem; align-items: center; text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 900; color: var(--orange-dark); }
.eyebrow::before { content: ""; width: 34px; height: 4px; background: var(--orange); }
h1, h2, h3 { font-family: "Arial Narrow", "Aptos Narrow", ui-sans-serif, sans-serif; line-height: .98; letter-spacing: -.025em; }
h1 { font-size: clamp(3.4rem, 6.6vw, 6.5rem); margin: .55rem 0 1.35rem; text-transform: uppercase; max-width: 720px; }
h2 { font-size: clamp(2.1rem, 4vw, 3.5rem); margin: 0 0 1rem; }
h3 { font-size: 1.55rem; margin: 0 0 .65rem; }
.hero-copy > p { max-width: 580px; font-size: 1.12rem; color: #36434b; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.7rem; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .75rem 1.15rem; background: var(--orange); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); color: #111; text-decoration: none; font-weight: 900; }
.button:hover { color: #111; background: var(--yellow); transform: translate(1px,1px); box-shadow: 3px 3px 0 var(--ink); }
.text-link { font-weight: 850; }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; border: 2px solid var(--ink); box-shadow: var(--shadow); display: block; aspect-ratio: 16/10; object-fit: cover; }
.hero-visual::before { content: "PERSONAL ITEM / RACE-CRITICAL"; position: absolute; top: -18px; right: 22px; z-index: 2; background: var(--yellow); border: 2px solid var(--ink); padding: .35rem .65rem; font-size: .67rem; letter-spacing: .1em; font-weight: 950; transform: rotate(2deg); }
.hero-visual::after { content: "STAYS WITH YOU"; position: absolute; bottom: -16px; left: 24px; background: var(--orange); color: #111; border: 2px solid var(--ink); padding: .45rem .75rem; font-weight: 950; font-size: .73rem; letter-spacing: .08em; transform: rotate(-2deg); }
.hero-placeholder { aspect-ratio: 16/10; border: 2px solid var(--ink); box-shadow: var(--shadow); background: linear-gradient(135deg, #e7e4d8 0 48%, var(--orange) 48% 50%, #d8d4c6 50%); display:grid; place-items:center; font-weight:900; color:var(--muted); }

.ticker { background: var(--ink); color: white; }
.ticker-inner { max-width: var(--max); margin: auto; padding: .85rem 1.5rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.ticker span { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; }
.ticker strong { color: var(--yellow); }

.section { max-width: var(--max); margin: auto; padding: 5rem 1.5rem; }
.section-head { display: grid; grid-template-columns: .75fr 1.25fr; gap: 2rem; margin-bottom: 2.5rem; align-items: end; }
.section-head p { margin: 0; max-width: 650px; color: var(--muted); }
.guide-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.guide-card { grid-column: span 4; min-height: 255px; padding: 1.35rem; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; transition: transform .2s, box-shadow .2s; }
.guide-card:nth-child(1), .guide-card:nth-child(6) { grid-column: span 8; }
.guide-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 7px 7px 0 var(--orange); border-color: var(--ink); }
.card-no { color: var(--orange-dark); font-size: .7rem; font-weight: 900; letter-spacing: .12em; }
.guide-card p { color: var(--muted); font-size: .9rem; line-height: 1.5; margin: .6rem 0; }
.arrow { align-self: flex-end; font-size: 1.35rem; font-weight: 900; }

.critical { background: var(--blue); color: white; }
.critical-inner { max-width: var(--max); margin: auto; padding: 5rem 1.5rem; display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; }
.critical h2 { color: white; }
.critical-list { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.critical-item { border-top: 1px solid rgba(255,255,255,.4); padding: .85rem 0; }
.critical-item strong { display: block; color: var(--yellow); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }

.team-invite { background: var(--yellow); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.team-inner { max-width: var(--max); margin: auto; padding: 4.5rem 1.5rem; display: grid; grid-template-columns: 1.25fr .75fr; gap: 2.5rem; align-items: center; }
.team-inner p { max-width: 720px; }
.count-board { background: var(--ink); color: white; padding: 1.5rem; transform: rotate(1deg); box-shadow: 8px 8px 0 var(--orange); }
.count-board strong { display: block; color: var(--yellow); font-family: "Arial Narrow", sans-serif; font-size: 4.5rem; line-height: .9; }
.count-board span { text-transform: uppercase; letter-spacing: .08em; font-size: .73rem; font-weight: 900; }
.fine-print { display: block; margin-top: 1rem; font-size: .76rem; font-weight: 750; color: #333; }

.article-wrap { max-width: var(--max); margin: auto; padding: 4rem 1.5rem 5rem; }
.article-header { max-width: 980px; margin-bottom: 2.5rem; }
.article-header h1 { font-size: clamp(3rem, 6vw, 5.5rem); }
.article-deck { font-size: 1.2rem; color: var(--muted); max-width: 760px; }
.article-grid { display: grid; grid-template-columns: minmax(0, var(--measure)) 260px; gap: 4rem; align-items: start; }
.article-content { min-width: 0; }
.article-content h2 { font-size: 2.25rem; margin: 2.4rem 0 .9rem; }
.article-content h3 { margin-top: 1.8rem; line-height: 1.1; }
.article-content p, .article-content li { color: #303b42; }
.article-content li { margin-bottom: .55rem; }
.article-content blockquote { margin: 2rem 0; padding: 1.3rem 1.5rem; background: var(--white); border-left: 7px solid var(--orange); font-size: 1.08rem; font-weight: 700; }
.quick-answer { background: var(--white); border: 1px solid var(--line); border-top: 7px solid var(--orange); padding: 1.4rem; margin: 0 0 2rem; }
.quick-answer strong { display:block; text-transform: uppercase; font-size: .7rem; letter-spacing: .12em; color: var(--orange-dark); }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 1.85rem; }
.checklist li::before { content: "□"; position: absolute; left: 0; color: var(--orange-dark); font-weight: 900; }
.article-aside { position: sticky; top: 110px; border: 1px solid var(--line); background: var(--paper-deep); padding: 1.2rem; font-size: .82rem; }
.article-aside strong { display:block; text-transform: uppercase; letter-spacing:.1em; font-size:.68rem; color:var(--orange-dark); }
.article-aside a { display:block; padding:.55rem 0; border-bottom:1px solid var(--line); text-decoration:none; font-weight:750; }
.article-team { margin-top: 3rem; padding: 2rem; background: var(--yellow); border: 2px solid var(--ink); box-shadow: 7px 7px 0 var(--orange); }
.article-team h2 { margin-top:0; }

.site-footer { background: var(--ink); color: #dbe0e2; }
.footer-inner { max-width: var(--max); margin:auto; padding: 3rem 1.5rem; display:grid; grid-template-columns:1.4fr .6fr; gap:2rem; }
.site-footer a { color: white; }
.footer-links { display:flex; gap:1.2rem; flex-wrap:wrap; justify-content:flex-end; }
.legal { font-size:.75rem; color:#aeb8bd; max-width:720px; }

@media (max-width: 850px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position:absolute; top:76px; left:0; right:0; background:var(--paper); border-bottom:2px solid var(--ink); padding:1rem 1.5rem; flex-direction:column; align-items:flex-start; }
  .site-nav.is-open { display:flex; }
  .hero-grid, .section-head, .critical-inner, .team-inner, .article-grid, .footer-inner { grid-template-columns:1fr; }
  .hero-grid { padding-top:3rem; min-height:0; }
  .hero-visual { margin:1rem 0; }
  .ticker-inner { grid-template-columns:1fr 1fr; }
  .guide-card, .guide-card:nth-child(1), .guide-card:nth-child(6) { grid-column: span 6; }
  .article-aside { position:static; }
  .footer-links { justify-content:flex-start; }
}
@media (max-width: 560px) {
  body { font-size:16px; }
  h1 { font-size:3.25rem; }
  .header-inner { padding-inline:1rem; }
  .brand-tag { display:none; }
  .hero-grid, .section, .critical-inner, .team-inner, .article-wrap { padding-left:1rem; padding-right:1rem; }
  .guide-card, .guide-card:nth-child(1), .guide-card:nth-child(6) { grid-column:1 / -1; min-height:210px; }
  .critical-list { grid-template-columns:1fr; }
  .ticker-inner { gap:.5rem; padding-inline:1rem; }
  .ticker span { font-size:.62rem; }
  .count-board { transform:none; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior:auto; } * { transition:none !important; } }
