/* nickwward.com: no framework, no scripts, no outside requests. Colors nod to Harbor Frenzy (navy, teal, sea). */
:root {
  --bg: #fbf8f2;
  --surface: #ffffff;
  --text: #0b3a5b;
  --muted: #4f6475;
  --accent: #0b7f86;
  --accent-ink: #ffffff;
  --sea: #3dcfd3;
  --border: #e6dccb;
  --shadow: 0 1px 2px rgb(11 58 91 / .06), 0 8px 24px rgb(11 58 91 / .08);
  --radius: 18px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1b26;
    --surface: #132634;
    --text: #e8f1f6;
    --muted: #a7bccb;
    --accent: #3dcfd3;
    --accent-ink: #062330;
    --border: #22394a;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px rgb(0 0 0 / .25);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip-link:focus { left: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 88%, transparent); position: sticky; top: 0; backdrop-filter: saturate(1.4) blur(8px); z-index: 5; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: -.01em; }
.brand img { border-radius: 8px; }
nav { display: flex; gap: 22px; }
nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
nav a:hover { color: var(--text); }
@media (max-width: 640px) { nav { display: none; } }

/* Hero */
.hero { padding: clamp(56px, 10vw, 112px) 0 clamp(40px, 7vw, 72px); }
.eyebrow { margin: 0 0 6px; color: var(--accent); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }
.hero h1 { margin: 0; font-size: clamp(2.6rem, 7vw, 4.5rem); line-height: 1.05; letter-spacing: -.03em; }
.lede { max-width: 38ch; margin: 18px 0 0; font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: var(--muted); }
.lede a { font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 85%, var(--text)); }
.btn-ghost { color: var(--text); border: 1.5px solid var(--border); background: var(--surface); }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1.05rem; }

/* Sections */
.section { padding: 8px 0 88px; }
.section-title { margin: 0 0 24px; font-size: 1.6rem; letter-spacing: -.02em; }
.grid { display: grid; gap: 20px; margin: 20px 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.grid .card { padding: 24px; }
.grid .card h3 { font-size: 1.15rem; }

/* Family: full-width photo banner on top, warm text below */
.card.card-family { padding: 0; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, #f2a65a 16%, var(--surface)), var(--surface) 65%); }
.card-banner { margin: 0; aspect-ratio: 21 / 9; background: #9cc6e8; }
.card-banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; }
.card-family-body { display: grid; grid-template-columns: auto 1fr; gap: 0 24px; align-items: start; padding: 28px; }
.card-family h3 { margin-top: 2px; font-size: 1.6rem; }
.card-family p { max-width: 68ch; margin-bottom: 0; }
@media (max-width: 560px) {
  .card-banner { aspect-ratio: 4 / 3; }
  .card-family-body { grid-template-columns: 1fr; padding: 24px; }
  .card-family h3 { margin-top: 14px; }
}

/* Optional photo strip (commented out in index.html until Nick adds photos) */
.photo-strip { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.photo-strip img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; border: 1px solid var(--border); }
@media (max-width: 560px) { .photo-strip { grid-template-columns: 1fr 1fr; } .photo-strip li:last-child { display: none; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { margin: 14px 0 8px; font-size: 1.3rem; letter-spacing: -.01em; }
.card p { margin: 0 0 12px; color: var(--muted); }
.card .note { font-size: .92rem; font-style: italic; }
.icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 16px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }

.card-feature { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; column-gap: 24px; align-items: start;
  background: linear-gradient(135deg, color-mix(in srgb, var(--sea) 18%, var(--surface)), var(--surface) 60%); }
.card-feature .app-icon { grid-row: 1 / span 4; border-radius: 22%; box-shadow: var(--shadow); }
.card-feature h3 { margin-top: 2px; font-size: 1.6rem; }
.card-feature .btn { justify-self: start; margin-top: 8px; }
.tag { display: inline-block; margin: 0 !important; font-size: .8rem !important; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent) !important; }
@media (max-width: 560px) {
  .card-feature { grid-template-columns: 1fr; }
  .card-feature .app-icon { grid-row: auto; margin-bottom: 14px; width: 72px; height: 72px; }
  .card-feature .btn { justify-self: stretch; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; }
.footer-links a { font-weight: 600; }

/* Sporting events: wide photo card (photo left, text right; photo on top on small screens) */
.card-photo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); padding: 0; overflow: hidden; margin-top: 20px; }
.card-photo-media { margin: 0; background: #0a1420; min-height: 320px; }
.card-photo-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.card-photo-body { padding: 32px; align-self: center; }
.card-photo-body h3 { font-size: 1.6rem; }
@media (max-width: 760px) {
  .card-photo { grid-template-columns: 1fr; }
  .card-photo-media { min-height: 0; aspect-ratio: 3 / 2; }
  .card-photo-body { padding: 24px; }
}

/* Outdoors: text left, portrait photo right (alternates with Sporting events) */
.card-photo-reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
.card-photo-reverse .card-photo-media { aspect-ratio: 1 / 1; min-height: 0; }
.card-photo-reverse .card-photo-media img { object-position: 50% 45%; }
@media (max-width: 760px) {
  .card-photo-reverse { grid-template-columns: 1fr; }
  .card-photo-reverse .card-photo-media { order: -1; aspect-ratio: 1 / 1; }
}

/* Home projects: tall portrait photo left (shown nearly uncropped), text right */
.card-photo-tall { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
.card-photo-tall .card-photo-media { aspect-ratio: 924 / 1460; min-height: 0; }
.card-photo-tall .card-photo-media img { object-position: 50% 50%; }
@media (max-width: 760px) {
  .card-photo-tall { grid-template-columns: 1fr; }
  .card-photo-tall .card-photo-media { aspect-ratio: 924 / 1460; }
}

/* Concerts: text left, portrait photo right */
.card-photo-portrait { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); }
.card-photo-portrait .card-photo-media { aspect-ratio: 3 / 4; }
.card-photo-portrait .card-photo-media img { object-position: 50% 50%; }
@media (max-width: 760px) {
  .card-photo-portrait { grid-template-columns: 1fr; }
  .card-photo-portrait .card-photo-media { aspect-ratio: 4 / 5; }
}

.card-feature { margin-top: 20px; }

/* Hero photo: circle on the right on desktop, above the text on phones */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
.hero-photo { order: 2; margin: 0; width: 300px; aspect-ratio: 1; border-radius: 50%; padding: 6px;
  background: linear-gradient(135deg, var(--sea), var(--accent)); box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 4px solid var(--bg); }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-photo { order: 0; width: 180px; padding: 5px; }
  .hero-photo img { border-width: 3px; }
}

/* OPTION B: bento grid of photo tiles with text on a gradient */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 380px 380px 380px auto auto auto auto; gap: 20px; margin-top: 20px;
  grid-template-areas: "tall a" "tall b" "wide wide" "tech tech" "lumber lumber" "dadcamp dadcamp" "wr wr"; }
.tile-tall { grid-area: tall; } .tile-a { grid-area: a; } .tile-b { grid-area: b; } .tile-wide { grid-area: wide; } .tile-tech { grid-area: tech; } .lumber-card { grid-area: lumber; } .dadcamp-card { grid-area: dadcamp; } .wr-card { grid-area: wr; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); background: #0a1420; box-shadow: var(--shadow); isolation: isolate; }
.tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .4s ease; }
.tile:hover > img { transform: scale(1.03); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgb(6 22 34 / .92) 0%, rgb(6 22 34 / .6) 30%, rgb(6 22 34 / 0) 58%); }
.tile-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 26px; color: #fff; }
.tile-text .icon { width: 44px; height: 44px; border-radius: 12px; color: #fff; background: rgb(255 255 255 / .16); backdrop-filter: blur(6px); margin-bottom: 10px; }
.tile-text .icon svg { width: 30px; height: 30px; }
.tile-text h3 { margin: 0 0 4px; font-size: 1.35rem; color: #fff; }
.tile-text p { margin: 0; max-width: 52ch; color: rgb(255 255 255 / .88); font-size: .98rem; text-shadow: 0 1px 2px rgb(0 0 0 / .4); }
.tile-text p + p { margin-top: 6px; }
@media (max-width: 760px) {
  .bento { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: none; }
  .tile-tall, .tile-a, .tile-b, .tile-wide, .tile-tech, .lumber-card, .dadcamp-card, .wr-card { grid-area: auto; }
  .tile { aspect-ratio: 4 / 5; }
  .tile-wide { aspect-ratio: 1 / 1; }
  .tile-tall { aspect-ratio: 2 / 3; }
  .tile-text { padding: 20px; }
}

/* Tech: same tile markup, but the copy is long, so text sits beside the photo (below it on phones) instead of over it */
.tile.tile-tech { display: grid; grid-template-columns: minmax(0, 1fr) 440px; min-height: 425px;
  background: linear-gradient(160deg, #1b2f42 0%, #0f1f2e 60%, #0a1420 100%); }
.tile-tech::after { display: none; }
.tile-tech > img { position: relative; inset: auto; grid-column: 2; grid-row: 1; height: 425px; z-index: auto; }
.tile-tech:hover > img { transform: none; }
.tile-tech .tile-text { position: static; grid-column: 1; grid-row: 1; align-self: center; padding: 32px 34px; }
.tile-tech .tile-text p { text-shadow: none; }
@media (max-width: 760px) {
  .tile.tile-tech { grid-template-columns: 1fr; min-height: 0; aspect-ratio: auto; }
  .tile-tech > img { grid-column: 1; grid-row: 1; height: auto; aspect-ratio: 4 / 5; }
  .tile-tech .tile-text { grid-row: 2; padding: 20px; }
}


/* Wards Lumber Co: wide story card (sign photo left, brand panel right) */
.card.lumber-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); padding: 0; overflow: hidden; border: 0;
  background: linear-gradient(160deg, #2c4a3a 0%, #1d3328 60%, #14261d 100%); color: #e9dcc3; }
.lumber-media { margin: 0; position: relative; min-height: 420px; }
.lumber-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.lumber-body { padding: 32px 34px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.lumber-card h3 { margin: 0 0 8px; font-size: 1.6rem; color: #fff; }
.lumber-card p { margin: 0; color: rgb(255 255 255 / .85); max-width: 46ch; }
.lumber-thumbs { list-style: none; display: flex; gap: 12px; margin: 22px 0 0; padding: 0; }
.lumber-thumbs img { width: 150px; height: 150px; object-fit: cover; border-radius: 12px; border: 3px solid rgb(243 230 204 / .9); background: #fff; }
.btn-light { margin-top: 20px; min-height: 44px; padding: 0 20px; background: #f3e6cc; color: #1d3328; font-size: .95rem; }
.btn-light:hover { background: #fff6e3; }
@media (max-width: 760px) {
  .card.lumber-card { grid-template-columns: 1fr; }
  .lumber-media { min-height: 0; aspect-ratio: 4 / 3; }
  .lumber-body { padding: 24px; }
    .lumber-thumbs img { width: 128px; height: 128px; }
}

/* Dad Camp: sibling of the lumber card, mirrored (panel left, photo right on desktop), forest + trail orange to echo dadcamp.us */
.card.dadcamp-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); padding: 0; overflow: hidden; border: 0;
  background: linear-gradient(200deg, #1f3a2c 0%, #16291f 60%, #0f1d16 100%); color: #f1e6d2; }
.dadcamp-media { order: 2; margin: 0; position: relative; min-height: 420px; }
.dadcamp-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.dadcamp-body { padding: 32px 34px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  border-left: 6px solid #e07a2e; }
.dadcamp-card h3 { margin: 0 0 8px; font-size: 1.6rem; color: #fff; }
.dadcamp-card p { margin: 0; color: rgb(255 255 255 / .85); max-width: 46ch; }
.dadcamp-thumbs { list-style: none; display: flex; gap: 12px; margin: 22px 0 0; padding: 0; }
.dadcamp-thumbs img { width: 140px; height: 140px; object-fit: contain; filter: drop-shadow(0 4px 10px rgb(0 0 0 / .45)); }
.btn-camp { margin-top: 20px; min-height: 44px; padding: 0 20px; background: #e07a2e; color: #1a1208; font-size: .95rem; }
.btn-camp:hover { background: #f08d42; }
@media (max-width: 760px) {
  .card.dadcamp-card { grid-template-columns: 1fr; }
  .dadcamp-media { order: 0; min-height: 0; aspect-ratio: 4 / 3; }
  .dadcamp-body { padding: 24px; border-left: 0; border-top: 6px solid #e07a2e; }
  .dadcamp-thumbs img { width: 120px; height: 120px; }
}

/* Wards Rule: sibling of the lumber / dad camp cards (crest left, panel right). Charcoal + chrome + beard red; dark in both modes. */
@font-face { font-family: "Pirata One"; src: url("assets/pirata-one.woff2") format("woff2"); font-display: swap; }
.card.wr-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); padding: 0; overflow: hidden; border: 0;
  background: linear-gradient(160deg, #26282c 0%, #17181b 60%, #0e0f11 100%); color: #FFF6E3;
  box-shadow: var(--shadow), inset 0 0 0 1px rgb(201 204 207 / .14); }
.wr-media { margin: 0; position: relative; min-height: 420px; display: grid; place-items: center; padding: 36px;
  background:
    radial-gradient(ellipse 60% 55% at 50% 58%, rgb(200 38 27 / .26), rgb(200 38 27 / 0) 70%),
    url("assets/wards-rule-scales.svg") 0 0 / 20px 12px,
    linear-gradient(180deg, #1d1e21, #111214); }
.wr-media img { width: min(340px, 86%); height: auto; filter: drop-shadow(0 10px 24px rgb(0 0 0 / .5)); transition: transform .25s ease; }
.wr-card:hover .wr-media img { transform: translateY(-3px); }
.wr-body { padding: 32px 34px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  border-left: 1px solid rgb(201 204 207 / .14); }
.wr-card h3 { margin: 0 0 6px; font-size: 1.6rem; color: #fff; }
.wr-card p { margin: 0; color: rgb(255 246 227 / .85); max-width: 46ch; }
.wr-card p.wr-creed { margin: 0 0 12px; font-family: "Pirata One", system-ui, serif; font-size: 2.1rem; line-height: 1.1;
  letter-spacing: .01em; color: #E8583A; }
.wr-creed span { display: block; }
.wr-lines { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; }
.wr-lines a, .wr-lines span { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px 0 10px; border-radius: 999px;
  font-size: .9rem; font-weight: 600; color: #FFF6E3; text-decoration: none; background: rgb(201 204 207 / .1); border: 1px solid rgb(201 204 207 / .22);
  transition: background-color .15s ease, border-color .15s ease; }
.wr-lines a:hover { background: rgb(201 204 207 / .18); border-color: rgb(201 204 207 / .4); }
.wr-lines a:focus-visible { outline: 3px solid #C9CCCF; outline-offset: 3px; border-radius: 999px; }
.wr-lines svg { width: 20px; height: 20px; color: #C9CCCF; flex: none; }
.btn-wr { margin-top: 22px; min-height: 44px; padding: 0 20px; background: #C8261B; color: #fff; font-size: .95rem; }
.btn-wr:hover { background: #D93323; }
.btn-wr:focus-visible { outline-color: #C9CCCF; }
@media (max-width: 760px) {
  .card.wr-card { grid-template-columns: 1fr; }
  .wr-media { min-height: 0; aspect-ratio: 4 / 3; padding: 28px; }
  .wr-body { padding: 24px; border-left: 0; border-top: 1px solid rgb(201 204 207 / .14); }
}
@media (prefers-reduced-motion: reduce) { .wr-media img { transition: none; } .wr-card:hover .wr-media img { transform: none; } }

/* Privacy note */
.footer-privacy { margin: 14px 0 0; line-height: 1.4; }
.footer-privacy small { font-size: .7rem; opacity: .8; }
