/* Mike Harlan Photography: shared styles for every page */
/* =========================================================
   COLORS & SIZES — change these to restyle the whole site
   ========================================================= */
:root {
  --bg: #121212;          /* page background (near black) */
  --bg-alt: #1b1b1a;      /* slightly lighter sections */
  --text: #ecebe6;        /* main text (warm off-white) */
  --muted: #9b998f;       /* secondary text */
  --accent: #e0a458;      /* sunrise amber, used sparingly */
  --line: #2c2b29;        /* thin divider lines */
  --max: 1200px;          /* widest the content gets */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Work Sans", system-ui, sans-serif;
}

/* ---------- Basics ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }   /* anything marked "hidden" stays hidden */
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }
.eyebrow {
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 26px;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid var(--text); transition: background .25s, color .25s;
}
.btn:hover { background: var(--text); color: var(--bg); }
.btn-accent { border-color: var(--accent); color: var(--accent); }
.btn-accent:hover { background: var(--accent); color: var(--bg); }

/* ---------- Header & navigation ---------- */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  background: linear-gradient(to bottom, rgba(0,0,0,.6), transparent);
  transition: background .3s, box-shadow .3s;
}
/* once the visitor scrolls, the menu bar gets a solid background so text never shows through */
header.scrolled { background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
/* LOGO: change the width here to make it bigger or smaller */
.logo img { width: 230px; height: auto; }
.footer-logo { width: 160px; opacity: .7; margin-bottom: 10px; }
.nav ul { list-style: none; display: flex; gap: 34px; align-items: center; }
.nav ul a { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.nav ul a:hover { opacity: 1; color: var(--accent); }
.nav .nav-cta { color: var(--accent); opacity: 1; }
.menu-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.6rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: flex-end;
  /* HERO PHOTO: to change it, replace images/hero.jpg with another photo (same name) */
  background-image:
    linear-gradient(to top, rgba(10,10,10,.85) 0%, rgba(10,10,10,.1) 55%),
    url("images/hero.jpg");
  background-size: cover; background-position: 35% center;  /* keeps the windmill in frame on phones */
  padding-bottom: 12vh;
}
.hero .wrap { width: 100%; }
/* hero text sits on the right so it doesn't cover the windmill */
.hero-text { max-width: 540px; margin-left: auto; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); max-width: 14ch; }
.hero h1 em { color: var(--accent); }
.hero p { max-width: 46ch; margin: 18px 0 32px; color: #d6d4cc; font-size: 1.05rem; }
.hero .buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .credit { position: absolute; right: 24px; bottom: 24px; font-size: .7rem; color: var(--muted); letter-spacing: .08em; }

/* ---------- Sections ---------- */
section { padding: 110px 0; scroll-margin-top: 40px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.text-link { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; border-bottom: 1px solid var(--accent); padding-bottom: 3px; }

/* ---------- Gallery cards (collections) ---------- */
.collections { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.card img { height: 100%; object-fit: cover; transition: transform .8s ease; }
.card:hover img { transform: scale(1.05); }
.card .label {
  position: absolute; inset: auto 0 0 0; padding: 40px 20px 18px;
  background: linear-gradient(to top, rgba(0,0,0,.8), transparent);
}
.card h3 { font-size: 1.35rem; }
.card .count { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #d8d6ce; text-shadow: 0 1px 3px rgba(0,0,0,.6); }

/* ---------- Most Popular (rows of equal-height photos) ---------- */
.selected { background: var(--bg-alt); }
.popular { display: flex; flex-direction: column; gap: 16px; }
.popular-row { display: flex; gap: 16px; }
.popular-row a { flex: var(--r) 1 0; position: relative; overflow: hidden; }
.popular-row img { height: 100%; object-fit: cover; transition: transform .8s ease; }
.popular-row a:hover img { transform: scale(1.04); }
.popular figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px;
  font-size: .82rem; background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
  opacity: 0; transition: opacity .3s;
}
.popular a:hover figcaption, .popular a:focus figcaption { opacity: 1; }

/* ---------- Calendar feature ---------- */
.calendar { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center; }
.cal-cover { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.cal-cover img { aspect-ratio: 22 / 17; object-fit: cover; }   /* 11 x 8.5 inch proportions */
.cal-cover .hint {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(10,10,10,.75); color: var(--text); padding: 9px 18px; white-space: nowrap;
  font: 400 .72rem var(--sans); letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.25); transition: background .25s;
}
.cal-cover:hover .hint { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.cal-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 14px; }
.cal-thumbs button { padding: 0; border: 0; background: none; cursor: pointer; opacity: .7; transition: opacity .2s; position: relative; }
.cal-thumbs button:hover, .cal-thumbs button:focus-visible { opacity: 1; }
.cal-thumbs img { aspect-ratio: 22 / 17; object-fit: cover; }
.cal-thumbs span { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 4px 3px; font: 500 .58rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.8), transparent); }
.calendar h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 18px; }
.calendar p { color: #cfcdc5; margin-bottom: 14px; }
.calendar .price { font-family: var(--serif); font-size: 2.2rem; color: var(--text); margin: 6px 0 10px; }
.cal-details { list-style: none; margin: 0 0 22px; color: var(--muted); font-size: .95rem; }
.cal-details li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.cal-details li:first-child { border-top: 1px solid var(--line); }
.calendar .coming-soon { color: #e5484d; font-weight: 600; font-size: 1.1rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }

/* ---------- Calendar page viewer (pop-up) ---------- */
.viewer { border: 0; padding: 0; max-width: none; max-height: none; width: 100vw; height: 100vh; background: rgba(8,8,8,.96); color: var(--text); }
.viewer::backdrop { background: rgba(0,0,0,.85); }
.viewer[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.viewer figure { max-width: min(1100px, 92vw); text-align: center; }
.viewer figure img { max-height: 76vh; width: auto; max-width: 100%; margin: 0 auto; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.viewer figcaption { margin-top: 16px; font: 400 .8rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.viewer figcaption strong { color: var(--text); font-weight: 500; margin-right: 10px; }
.viewer .v-btn { position: absolute; background: none; border: 1px solid rgba(255,255,255,.25); color: var(--text); width: 48px; height: 48px; font-size: 1.4rem; cursor: pointer; transition: background .2s, color .2s; }
.viewer .v-btn:hover { background: var(--text); color: var(--bg); }
.viewer .v-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.viewer .v-next { right: 24px; top: 50%; transform: translateY(-50%); }
.viewer .v-close { right: 24px; top: 24px; }

/* ---------- Stories ---------- */
.stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.story img { aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 18px; }
.story .date { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.story h3 { font-size: 1.55rem; margin: 6px 0 8px; }
.story p { color: var(--muted); font-size: .95rem; }

/* ---------- About ---------- */
.about { border-top: 1px solid var(--line); }
.about-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.about-inner h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-style: italic; margin-bottom: 24px; }
.about-inner p { color: #cfcdc5; margin-bottom: 30px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 50px 0; font-size: .85rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
footer ul { list-style: none; display: flex; gap: 26px; flex-wrap: wrap; }
footer a:hover { color: var(--text); }

/* =========================================================
   MOBILE — everything below adjusts the layout on phones
   ========================================================= */
@media (max-width: 900px) {
  .collections, .stories { grid-template-columns: 1fr 1fr; }
  .calendar { grid-template-columns: 1fr; gap: 40px; }
  .collections .card { aspect-ratio: 1 / 1; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  section { padding: 72px 0; }
  .menu-toggle { display: block; }
  .logo img { width: 170px; }
  .nav ul {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(18,18,18,.97); border-top: 1px solid var(--line);
    display: none;
  }
  .nav ul.open { display: flex; }
  .nav ul li { width: 100%; text-align: center; border-bottom: 1px solid var(--line); }
  .nav ul a { display: block; padding: 18px; }
  .stories { grid-template-columns: 1fr; }
  .collections { gap: 10px; }
  .card h3 { font-size: 1.05rem; }
  .card .label { padding: 30px 12px 12px; }
  .hero { padding-bottom: 40px; }
  .hero p { margin: 12px 0 22px; font-size: .95rem; }
  .hero .buttons { gap: 10px; flex-wrap: nowrap; }
  .hero .btn { padding: 11px 16px; font-size: .7rem; }
  .popular-row { flex-wrap: wrap; gap: 10px; }
  .popular { gap: 10px; }
  .cal-thumbs { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .viewer .v-prev, .viewer .v-next { top: auto; bottom: 22px; transform: none; }
  .viewer .v-prev { left: calc(50% - 60px); } .viewer .v-next { right: calc(50% - 60px); }
  .viewer figure img { max-height: 66vh; }
  .popular-row a { flex: 1 1 100%; }   /* phones: one photo per line, full width */
  .popular figcaption { opacity: 1; }  /* no hover on phones, so always show titles */
}

/* =========================================================
   STORY PAGES (pages in the stories/ folder)
   ========================================================= */
.story-card { display: block; }
.story-card:hover h3 { color: var(--accent); }
.story-card .read { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text); border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.story-card .img-wrap { overflow: hidden; margin-bottom: 18px; }
.story-card img { margin-bottom: 0; transition: transform .8s ease; }
.story-card:hover img { transform: scale(1.04); }

.story-hero {
  position: relative; min-height: 72vh; display: flex; align-items: flex-end;
  background-size: cover; background-position: center; padding-bottom: 8vh;
}
.story-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,.92) 0%, rgba(10,10,10,.15) 60%); }
.story-hero .wrap { position: relative; width: 100%; }
.story-hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 18ch; }
.story-meta { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.story-body { max-width: 680px; margin: 0 auto; padding: 80px 24px 40px; font-size: 1.12rem; line-height: 1.85; color: #d6d4cc; }
.story-body p { margin-bottom: 1.4em; }
.story-body p:first-of-type::first-letter { font-family: var(--serif); font-size: 3.6em; float: left; line-height: .8; margin: .08em .12em 0 0; color: var(--accent); }
.story-body figure { margin: 2.2em -60px; }
.story-body figcaption { font-size: .82rem; color: var(--muted); margin-top: 10px; text-align: center; letter-spacing: .04em; }
.story-shop { max-width: 680px; margin: 0 auto; padding: 30px 24px 70px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.story-shop p { color: var(--muted); font-size: .95rem; }
.story-nav { border-top: 1px solid var(--line); }
.story-nav .wrap { display: flex; justify-content: space-between; gap: 20px; padding-top: 40px; padding-bottom: 40px; flex-wrap: wrap; }
.story-nav a { font-family: var(--serif); font-size: 1.3rem; }
.story-nav a:hover { color: var(--accent); }
.story-nav span { display: block; font: 400 .7rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.story-nav .next { text-align: right; margin-left: auto; }
@media (max-width: 760px) {
  .story-body { padding: 50px 16px 30px; font-size: 1.05rem; }
  .story-body figure { margin: 1.8em 0; }
  .story-shop { padding: 24px 16px 50px; }
}

/* =========================================================
   ABOUT PAGE (about.html)
   ========================================================= */
.about-page { padding: 150px 0 90px; }
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 70px; align-items: start; }
.about-photo { position: sticky; top: 110px; }
.about-photo img { width: 100%; max-width: 367px; height: auto; box-shadow: 0 30px 60px rgba(0,0,0,.5); }  /* max-width = the photo's actual width; raise it if you swap in a larger photo */
.about-text h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-style: italic; margin-bottom: 30px; }
.about-text p { color: #d6d4cc; font-size: 1.08rem; line-height: 1.85; margin-bottom: 1.3em; }
.about-text .eyebrow { color: var(--accent); margin-bottom: 14px; }
.inline-link { color: var(--accent); border-bottom: 1px solid rgba(224,164,88,.4); }
.inline-link:hover { border-bottom-color: var(--accent); }
.about-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { position: static; }
}
@media (max-width: 760px) {
  .about-page { padding: 110px 0 60px; }
  .about-text p { font-size: 1.02rem; }
}

/* =========================================================
   CONTACT PAGE (contact.html)
   ========================================================= */
.contact-page { padding: 150px 0 90px; }
.contact-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 80px; align-items: start; }
.contact-intro h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-style: italic; margin-bottom: 24px; }
.contact-intro .eyebrow { color: var(--accent); }
.contact-intro p { color: #d6d4cc; font-size: 1.08rem; margin-bottom: 1.2em; }
.contact-intro .contact-note { color: var(--muted); font-size: .92rem; border-top: 1px solid var(--line); padding-top: 1.2em; margin-top: 2em; }
.contact-form { display: grid; gap: 20px; }
.contact-form label { display: grid; gap: 8px; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contact-form .optional { text-transform: none; letter-spacing: 0; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: 300 1rem var(--sans); color: var(--text); background: var(--bg-alt);
  border: 1px solid var(--line); padding: 13px 14px; width: 100%; border-radius: 0;
  transition: border-color .2s;
}
.contact-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form button { justify-self: start; cursor: pointer; background: none; font-family: var(--sans); }
.contact-form button:disabled { opacity: .6; cursor: wait; }
.form-status { font-size: .95rem; min-height: 1.4em; }
.form-status.ok { color: #8fd18f; }
.form-status.error { color: #e5484d; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  .contact-page { padding: 110px 0 60px; }
  .contact-form button { justify-self: stretch; text-align: center; }
}
