/* Nick on Wild — site styles */
:root {
  --night: #1E2219;
  --forest: #2F3A28;
  --olive: #3E4A2F;
  --sand: #EFE6D2;
  --grass: #DCCDA8;
  --muted: #BDB39A;
  --ochre: #D98A44;
  --max: 1320px;
  --pad: clamp(1rem, 4vw, 2.5rem);
  font-family: 'Karla', 'Helvetica Neue', Arial, sans-serif;
  color: var(--sand);
  background: var(--night);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--ochre); }
a:hover { color: var(--grass); }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }

.caps { font-weight: 500; letter-spacing: .32em; text-transform: uppercase; font-size: .82rem; }
h2.caps { font-size: .95rem; font-weight: 700; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* header: the same bar on every page */
.site-header { position: relative; z-index: 20; background: var(--night); border-bottom: 1px solid #2C3424; }
@media (min-width: 900px) { .site-header { position: sticky; top: 0; background: rgba(30,34,25,.95); backdrop-filter: blur(8px); } }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: .5rem 2rem; padding-top: .75rem; padding-bottom: .75rem; }
.brand { display: block; line-height: 0; flex: none; }
.brand img { height: 40px; width: auto; }
.site-header nav { min-width: 0; }
.nav { display: flex; align-items: center; gap: 0 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav li { flex: none; }
.nav a { color: var(--sand); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.nav a:hover { color: var(--ochre); }
.nav a[aria-current="page"] { color: var(--ochre); box-shadow: inset 0 -2px 0 var(--ochre); }
@media (max-width: 1100px) { .nav { gap: 0 1.15rem; } .nav.caps { letter-spacing: .22em; } }
@media (max-width: 899px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; padding-bottom: 0; }
  .site-header nav { width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .site-header nav::-webkit-scrollbar { display: none; }
  .nav { padding-right: var(--pad); }
}

/* page heading with the Home button */
.page-head { padding: clamp(1.5rem, 4vw, 2.75rem) 0 clamp(1.75rem, 4vw, 2.75rem); }
.back { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 1.1rem 0 .7rem; border: 1px solid #4E5944; border-radius: 999px; color: var(--sand); text-decoration: none; font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.back svg { width: 18px; height: 18px; }
.back:hover { border-color: var(--sand); color: var(--sand); background: rgba(239,230,210,.06); }
.page-head h1 { margin: 1.4rem 0 .5rem; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.1; font-weight: 700; color: var(--sand); text-wrap: balance; }
.page-head p { margin: 0; max-width: 40rem; color: var(--muted); font-size: 1.1rem; }
.page-body { padding-bottom: clamp(3.5rem, 8vw, 6rem); }

/* hero */
.hero { position: relative; min-height: min(88vh, 900px); display: flex; align-items: flex-end; background: var(--forest); overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,24,16,.62), rgba(20,24,16,0) 34%), linear-gradient(to bottom, rgba(20,24,16,.42), rgba(20,24,16,0) 18%); }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(2rem, 6vw, 4.5rem); }
.hero-logo { width: min(640px, 100%); height: auto; }
.hero-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.hero-empty img { width: min(460px, 70vw); opacity: .95; }

/* tall opening photo: on wide screens it sits on the right and fades into the night ground */
@media (min-width: 900px) {
  /* landscape hero: smaller signature tucked into the bottom-left, with a soft left shade for contrast */
  .hero.has-photo:not(.portrait)::after { background: linear-gradient(to top, rgba(20,24,16,.62), rgba(20,24,16,0) 34%), linear-gradient(to right, rgba(20,24,16,.38), rgba(20,24,16,0) 40%); }
  .hero.has-photo:not(.portrait) .wrap { max-width: none; padding-left: max(var(--pad), 4vw); }
  .hero.has-photo:not(.portrait) .hero-logo { width: min(440px, 26vw); }
  .hero.portrait { --hero-h: min(94vh, 1000px); --img-w: min(calc(var(--hero-h) * 2 / 3), 52vw);
    background: var(--night); align-items: center; min-height: var(--hero-h); }
  /* show the whole frame: full hero height, natural 2:3 width, no crop */
  .hero.portrait > img { left: auto; right: 0; width: var(--img-w); height: 100%; object-position: 30% 50% !important; }
  .hero.portrait::after { background: linear-gradient(to bottom, rgba(20,24,16,.45), rgba(20,24,16,0) 16%); }
  /* logo centred in the space beside the photo */
  .hero.portrait .wrap { max-width: none; margin: 0; width: calc(100% - var(--img-w)); padding: 0 4vw; display: flex; justify-content: center; }
  .hero.portrait .hero-logo { width: min(540px, 100%); }
}

/* sections */
section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 2.5rem; }
.section-head h2 { margin: 0; color: var(--sand); }
.section-head p { margin: 0; color: var(--muted); }

/* welcome */
.welcome { max-width: 46rem; margin: 0 0 clamp(3rem, 7vw, 5.5rem); font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.4; color: var(--sand); text-wrap: pretty; }
.welcome strong { color: var(--ochre); font-weight: 700; }

/* gallery */
.gallery { columns: 3 320px; column-gap: 1rem; }
.gallery figure { margin: 0 0 1rem; break-inside: avoid; }
.gallery button { all: unset; display: block; width: 100%; cursor: zoom-in; border-radius: 4px; overflow: hidden; }
.gallery button:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }
.gallery img { width: 100%; height: auto; transition: transform .5s ease; }
.gallery button:hover img { transform: scale(1.03); }
.gallery figcaption { padding: .55rem .1rem 0; color: var(--muted); font-size: .9rem; }
.placeholder { display: flex; align-items: center; justify-content: center; background: var(--forest); border: 1px dashed #59654A; border-radius: 4px; color: var(--muted); }

/* lightbox */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(14,16,11,.96); color: var(--sand); }
.lightbox::backdrop { background: rgba(14,16,11,.96); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; padding: 3.5rem 4rem 2rem; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 11.5rem); width: auto; height: auto; object-fit: contain; }
.lightbox p { margin: 0; color: var(--muted); text-align: center; }
.lb-btn { position: absolute; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(239,230,210,.1); color: var(--sand); cursor: pointer; }
.lb-btn:hover { background: rgba(239,230,210,.2); }
.lb-close { top: .75rem; right: .75rem; }
.lb-prev { left: .75rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .75rem; top: 50%; transform: translateY(-50%); }
.lb-btn svg { width: 22px; height: 22px; }

/* about */
.about { background: var(--forest); }
.about .wrap, .about-layout { display: flex; flex-wrap: wrap; align-items: center; gap: 2.5rem 4rem; }
.about-photo { flex: 1 1 380px; max-width: 600px; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text { flex: 999 1 380px; min-width: 0; }
.about-text h2 { margin: 0 0 1.25rem; }
.about-text p { margin: 0 0 1rem; font-size: 1.15rem; max-width: 38rem; text-wrap: pretty; }

/* contact + footer */
.contact { text-align: center; padding-top: 1rem; }
.contact h2 { margin: 0 0 1rem; }
.contact p { margin: 0 auto 1.75rem; max-width: 34rem; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 52px; padding: 0 1.75rem; border-radius: 999px; background: var(--sand); color: var(--night); text-decoration: none; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; }
.button:hover { background: var(--grass); color: var(--night); }
.contact .email { margin-top: 1.25rem; }
.site-footer { border-top: 1px solid #333C2B; padding: 2.5rem 0 3rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-footer img { width: 300px; height: auto; }
.site-footer p { margin: 0; color: var(--muted); font-size: .9rem; }

@media (max-width: 480px) {
  .nav { gap: .25rem 1rem; }
  .nav.caps { letter-spacing: .2em; font-size: .74rem; }
}

/* gear */
.gear-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 1rem; align-items: start; }
.gear-list > li { padding: 1.75rem; border: 1px solid #333C2B; border-radius: 8px; background: rgba(47,58,40,.4); }
.gear-top { display: flex; align-items: center; gap: 1.5rem; }
.gear-top svg { flex: 0 0 64px; width: 64px; height: 64px; color: var(--sand); }
.gear-kind { margin: 0 0 .35rem; color: var(--ochre); font-size: .75rem; font-weight: 700; }
.gear-top h3 { margin: 0 0 .3rem; font-size: 1.3rem; line-height: 1.25; font-weight: 700; color: var(--sand); }
.gear-top p:last-child { margin: 0; color: var(--muted); }
.specs { margin: 1.5rem 0 0; padding-top: .5rem; border-top: 1px solid #3A4431; }
.specs > div { display: grid; grid-template-columns: minmax(7.5rem, 38%) 1fr; gap: .25rem 1.25rem; padding: .6rem 0; border-bottom: 1px solid #2C3424; }
.specs > div:last-child { border-bottom: 0; }
.specs dt { color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding-top: .15rem; }
.specs dd { margin: 0; color: var(--sand); font-size: .98rem; line-height: 1.45; }
@media (max-width: 480px) { .gear-list > li { padding: 1.25rem; } .specs > div { grid-template-columns: 6.6rem 1fr; gap: .2rem .9rem; } .specs dt { font-size: .72rem; letter-spacing: .06em; } .specs dd { font-size: .92rem; } }
.gear-note { margin: 1.25rem 0 0; color: var(--muted); font-size: .85rem; }

/* shop */
.shop { background: var(--forest); }
.shop .wrap, .shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2.5rem 5rem; align-items: start; }
@media (max-width: 880px) { .shop .wrap, .shop-layout { grid-template-columns: minmax(0, 1fr); } }
.shop-intro h2 { margin: 0 0 1.25rem; }
.shop-intro .lead { margin: 0 0 2rem; max-width: 26rem; font-size: 1.45rem; line-height: 1.35; color: var(--sand); text-wrap: balance; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.steps li { display: flex; align-items: flex-start; gap: 1rem; max-width: 30rem; }
.steps span { flex: 0 0 2rem; height: 2rem; border-radius: 50%; border: 1.5px solid var(--ochre); color: var(--ochre); display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.steps p { margin: .15rem 0 0; color: var(--muted); }
.steps strong { color: var(--sand); font-weight: 700; }
.shop-form { display: grid; gap: 1.35rem; padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--forest); border-radius: 10px; }
.field { display: grid; gap: .5rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { padding: 0; font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sand); }
.field .opt { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 1.35rem; }
.shop-form input:not([type=radio]), .shop-form select, .shop-form textarea { width: 100%; min-height: 48px; padding: .75rem .9rem; font: inherit; color: var(--sand); background: #262B20; border: 1px solid #4E5944; border-radius: 6px; }
.shop-form textarea { resize: vertical; }
.shop-form select { appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EFE6D2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 18px; }
.shop-form ::placeholder { color: #8F8873; }
.shop-form input:focus, .shop-form select:focus, .shop-form textarea:focus { outline: 2px solid var(--ochre); outline-offset: 1px; border-color: var(--ochre); }
.photo-pick { display: flex; align-items: center; gap: .9rem; }
.photo-preview { flex: 0 0 72px; width: 72px; height: 72px; object-fit: cover; border-radius: 4px; pointer-events: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
.photo-preview[hidden] { display: none; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pills input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 1px solid #4E5944; border-radius: 999px; color: var(--sand); cursor: pointer; }
.pill:hover { border-color: var(--grass); }
.pills input:checked + .pill { background: var(--sand); border-color: var(--sand); color: var(--night); font-weight: 700; }
.pills input:focus-visible + .pill { outline: 2px solid var(--ochre); outline-offset: 2px; }
.shop-form .button { justify-self: start; border: 0; cursor: pointer; }
.shop-form .button:disabled { opacity: .6; cursor: wait; }
.form-status { margin: 0; min-height: 1.6em; color: var(--grass); }
.hidden { display: none; }
.lb-order { margin-top: .25rem; min-height: 44px; padding: 0 1.25rem; border: 1px solid var(--sand); border-radius: 999px; background: transparent; color: var(--sand); font: inherit; font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.lb-order:hover { background: var(--sand); color: var(--night); }

/* thank-you page */
.thanks { min-height: 55vh; display: flex; align-items: center; text-align: center; padding: 3rem 0; }
.thanks .wrap { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.thanks h1 { margin: 0; font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; color: var(--sand); }
.thanks p { margin: 0 0 1rem; max-width: 30rem; color: var(--muted); font-size: 1.1rem; }

/* home: welcome + tiles to each tab */
.home { padding: clamp(3rem, 7vw, 5.5rem) 0 0; }
.home .welcome { margin-bottom: 0; }
.home-gallery { padding-top: clamp(2.5rem, 5vw, 3.75rem); }
#gallery { scroll-margin-top: 72px; }

/* videos */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 1.5rem; }
.video { margin: 0; }
.video iframe, .video video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 6px; background: #000; }
.video figcaption { padding: .6rem .1rem 0; color: var(--muted); }
.empty { padding: clamp(2rem, 6vw, 4rem); border: 1px dashed #4E5944; border-radius: 10px; text-align: center; }
.empty .lead { margin: 0 0 .5rem; font-size: 1.45rem; color: var(--sand); }
.empty p { margin: 0 0 1.75rem; color: var(--muted); }
.contact-shop { margin-top: 2.5rem !important; }

/* about page: photo and story side by side */
.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2.5rem 4rem; align-items: center; }
.about-layout .about-photo { max-width: none; width: 100%; }
@media (max-width: 860px) { .about-layout { grid-template-columns: minmax(0, 1fr); } }

/* instagram reels */
.reels { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1.5rem; align-items: start; }
.reel { min-width: 0; }
.reel .instagram-media, .reel iframe { margin: 0 auto !important; min-width: 0 !important; width: 100% !important; max-width: 540px !important; border-radius: 8px !important; }
.reel blockquote.instagram-media { padding: 2rem 1rem; background: var(--forest); border: 1px solid #3A4431; text-align: center; }
.reel blockquote.instagram-media a { color: var(--sand); }
.more { margin: 2.5rem 0 0; text-align: center; }

/* photo protection: no drag, no long-press save menu, no selecting */
.gallery img, .hero > img, .about-photo img, .lightbox img, .photo-preview { -webkit-user-drag: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.gallery img, .hero > img, .about-photo img { pointer-events: none; }
