/*
Fonts Available
  "Alike"
  "Bellota Text"
  "Cormorant Infant"
  "Hedvig Letters Serif"
  "Ibarra Real Nova"
  "Josefin Slab"
  "Libre Baskerville"
  "Metamorphous"
  "Mollie Glaston"
  "Montserrat"
  "Nanum Myeongjo"
  "Raleway"
  "Wittgenstein"
  "Zen Kaku Gothic New"
*/

/*
Hero Images Available:
  hero-landing-breakfast-01-flip.jpg
  hero-landing-breakfast-01.png
  hero-landing-breakfast-02.jpg
  hero-landing-breakfast-03.png
  hero-landing-breakfast-04.jpg
  hero-landing-breakfast-04b.jpg
  hero-landing-breakfast-05.png
  hero-landing-breakfast-06.jpg
  mobile-hero-landing-breakfast-01.jpg
  mobile-hero-landing-breakfast-02.jpg
  mobile-hero-landing-reading-book-01.jpg
*/


/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --hero-image: url('/ignore/photos/original/mobile-hero-landing-reading-book-01.jpg');
  --font-headlines: "Wittgenstein";
  --font-logo: "Ibarra Real Nova";
  --font-body: "Raleway";
  --text: #fff;
  --pad-x: clamp(1.25rem, 5vw, 4rem);
  --hero-position: 10% 5%;  /* tweak the focal point per image */
  --hero-gradient: linear-gradient(to bottom, rgba(0,0,0,.7) 0%, rgba(0,0,0,.45) 35%, rgba(0,0,0,0) 70%);

  --color-light-neutral: #faf8f5;
  --color-mid-neutral: #f5f4ed; /* #F5F4EB; */ /* #f7f6f0; */
  --color-dark-neutral: #d6d5c7;
  
  --color-light-highlight: #c7d5d6;
  --color-mid-highlight: #a9d3d4;
  --color-vibrant-highlight: #86dadb;
  
  --color-muted-accent: #d4aaa9;  /* #DB8786 */
  --color-dark-accent: #BB7876;  /* #C94D4B */
  --color-pale-accent: #EDEEF5;
  --color-mid-accent: #BCC0DA;
  
  --color-midnight: rgba(0, 0, 0, 0.90);
  --color-ink: #1d1d1b;
  --color-deep-lagoon: #003559;
  --color-lake-shore: #2674a8;
  --color-lake-shallows: #e0f7ff;

  --section-pad-y: clamp(3rem, 8vw, 7rem);
}

/* Larger screens swap in the desktop image */
.nav-toggle { display: none; }  /* hide hamburger on non-mobile */
@media (min-width: 761px) {
  :root {
    --hero-image: url('/ignore/photos/original/hero-landing-breakfast-04b.jpg');
    --hero-position: 95% 95%;
    --hero-gradient: linear-gradient(to right, rgba(0,0,0,.7) 0%, rgba(0,0,0,.45) 35%, rgba(0,0,0,0) 70%)
  }
}

/* We could consider adding more variants later, but this is good enough for now.
@media (min-width: 1200px) { :root { --hero-image: url('/img_store/web/landing-wide.jpg'); } }
*/

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body), sans-serif;
  line-height: 1.5;
}

a { color: inherit; }

h1 {
  font-family: var(--font-headlines);
  font-size: 2rem;
}

h2  {
  font-family: var(--font-headlines);
  font-weight: normal;
} 

h3  {
  font-family: var(--font-headlines);
  font-weight: normal;
} 

section {
  padding-left: 2rem;
}

/*
section.hero {
  padding: 0;
}
*/

.pre-header {
  line-height: 0rem;
  text-transform: uppercase;
}

blockquote {
  font-family: var(--font-headlines);
  border-left: 7px solid rgba(0, 0, 0, 0.22);
  border-left: 7px solid var(--color-mid-accent);
  padding: 0.6rem;
  padding-left: 1.5rem;
  background-color: rgba(150, 150, 150, 0.15);
  background-color: var(--color-pale-accent);
} 

blockquote.pull-quote {
  font-size: 1.5rem;
}

blockquote.pull-quote .attribution {
  font-size: 1rem;
}


@media (max-width: 760px) {
  blockquote.pull-quote {
    font-size: 1rem;
  }

  blockquote.pull-quote .attribution {
    font-size: 0.75rem;
  }
}

a.logo img  {
  width: 13rem;
  /*
  height: auto;
  aspect-ratio: TODO;
  */
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 600px;
  height: 100vh;           /* fallback */
  height: 100svh;          /* accounts for mobile browser toolbars */
  color: var(--text);

  /* Dark overlay keeps text readable on any photo */
  /*  background-image: linear-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, .45)), var(--hero-image);*/
  /* Dark overlay on left only - not going to work on all photos  */
  background-image: var(--hero-gradient), var(--hero-image);
  background-size: cover;
  background-position: var(--hero-position);
  background-repeat: no-repeat;
}

/* ---------- Header: left links | logo | right links ---------- */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 1rem;
  padding: 1.5rem var(--pad-x);
}

.nav {
  display: flex;
  gap: 1.5rem;
  padding-top: .35rem;
}
.nav-right { justify-content: flex-end; }

.nav a {
  text-decoration: none;
  font-size: 1rem;
  padding: .25rem 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover,
.nav a:focus-visible { border-bottom-color: currentColor; }

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
}
.logo-name {
  font-size: 2rem;
  font-weight: 700;
/*  letter-spacing: .08em;*/
  line-height: 1.1;
  font-family: var(--font-logo);
}
.logo-tagline {
  font-size: .85rem;
  opacity: .85;
font-family: var(--font-logo);
}

/* ---------- Hero content ---------- */
.hero-content {
  flex: 1;                       /* fills remaining height */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
/*  justify-content: start;*/
  max-width: 44rem;
  padding: 2.5rem var(--pad-x) 4rem;
}

.hero-headline {
/*  margin: 0 0 1rem;*/
  margin: 13vh 0 1rem 0;
  font-size: clamp(2.25rem, 5vw + 1rem, 4.5rem);
  line-height: 1.05;
  font-family: var(--font-headlines);

}

.hero-subheadline {
  margin: 0 0 2rem;
  max-width: 34rem;
  font-size: clamp(1.1rem, 1vw + .9rem, 1.5rem);
  opacity: .92;
}

/* ---------- Outline CTA ---------- */
.btn-outline {
  display: inline-block;
  padding: .85rem 2rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  border: 2px solid currentColor;
  border-radius: 4px;
  transition: background-color .2s, color .2s;
}
.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--text);
  color: #000;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* ---------- Mobile: logo on top, both link groups on one row below ---------- */
@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo  toggle"
      "left  left"
      "right right";
    align-items: center;
    row-gap: 0;
  }
  .site-header .logo       { grid-area: logo; align-items: flex-start; text-align: left; justify-self: start; }
  .site-header .logo-name  { font-size: 1.6rem; }
  .site-header .nav-left   { grid-area: left; }
  .site-header .nav-right  { grid-area: right; }

  /* Links hidden until the menu is opened */
  .site-header .nav { display: none; flex-direction: column; gap: 0; padding-top: 0; }
  .site-header.is-open .nav { display: flex; }
  .site-header.is-open .nav-left { padding-top: 1rem; }
  .site-header .nav a { font-size: 1.1rem; padding: .6rem 0; }

  /* Readable backdrop while the menu is open */
  .site-header.is-open { background: rgba(0, 0, 0, .8); }

  /* Hamburger button */
  .site-header .nav-toggle {
    grid-area: toggle;
    justify-self: end;
    display: block;
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: 0;
    -webkit-appearance: none;
    appearance: none;
    color: #fff;
    cursor: pointer;
  }
  .site-header .nav-toggle span {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: #fff;
    transition: transform .2s, opacity .2s, top .2s;
  }
  .site-header .nav-toggle span:nth-child(1) { top: 14px; }
  .site-header .nav-toggle span:nth-child(2) { top: 21px; }
  .site-header .nav-toggle span:nth-child(3) { top: 28px; }
  .site-header .nav-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

  /* Hamburger -> X */
  .site-header.is-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
  .site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.is-open .nav-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
}

@media (prefers-reduced-motion: reduce) {
  .btn-outline, .nav-toggle span { transition: none; }
}

/* ---------- Two-column section ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr;            /* mobile: stacked */
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: var(--section-pad-y) var(--pad-x);
  color: var(--color-ink);
  scroll-margin-top: 1rem;
}

.two-col-text {
  max-width: 34rem;
}

.two-col-text h2 {
  margin: 0 0 .5rem;
  font-size: clamp(2rem, 3vw + 1rem, 3.25rem);
  font-size: 2.2rem;
}
.two-col-text h3 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.1rem, 1vw + .9rem, 1.4rem);
  opacity: .75;
  font-size: 1.1rem;
}
.two-col-text p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.photo-two-col {
  display: block;
  width: 100%;
  max-height: 90%;
  aspect-ratio: 4 / 3;                   /* mobile crop */
  object-fit: cover;
  border-radius: 4px;
}

@media (min-width: 761px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;                 /* fallback */
    min-height: 100svh;
  }

  .photo-two-col {
    aspect-ratio: auto;                /* use the photo's natural ratio... */
    max-height: 75vh;                  /* fallback */
    max-height: min(75svh, calc(100svh - 2 * var(--section-pad-y)));
    object-fit: cover;                 /* ...and crop instead of distorting if capped */
    object-position: center;           /* adjust per photo, e.g. "center 20%" */
  }
}

/* ---------- Article Layout Elements ---------- */

.inline-double-photo-row img {
  width: 45%;
  padding-left: 5%;
}


/* ---------- Footer ---------- */
footer {
  padding: 3rem var(--pad-x);
  background: var(--color-midnight);
  color: var(--color-mid-neutral);
  text-align: center;
  font-size: .95rem;
  line-height: 2;
}

footer h3 {
  margin: 0 0 .75rem;
  font-family: var(--font-logo);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .08em;
}

footer a {
  padding: .25rem .1rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
footer a:hover,
footer a:focus-visible { border-bottom-color: currentColor; }


footer .legal {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.7rem;
}

/*  Composeable Color Elements */
.bg-light-neutral { background: var(--color-light-neutral); }
.bg-mid-neutral { background: var(--color-mid-neutral); }
.bg-dark-neutral { background: var(--color-dark-neutral); }

.bg-light-highlight { background: var(--color-light-highlight); }
.bg-mid-highlight { background: var(--color-mid-highlight); }
.bg-vibrant-highlight { background: var(--color-vibrant-highlight); }


.bg-muted-accent { background: var(--color-muted-accent); }
.bg-dark-accent { background: var(--color-dark-accent); }

.bg-pale-accent { background: var(--color-pale-accent); }
.bg-mid-accent { background: var(--color-mid-accent); }

.bg-midnight { background: var(--color-midnight); }
.bg-ink { background: var(--color-ink); }

.bg-lake-shallows { background: var(--color-lake-shallows); }
.bg-lake-shore { background: var(--color-lake-shore); }
.bg-deep-lagoon { background: var(--color-deep-lagoon); }

/* Graphics  */
.tiny-icon {
  width: 0.65rem;
  opacity: 90%;
}
