/* ============================================================
   CATHYMIYATA.COM — Main Stylesheet
   ============================================================
   HOW TO EDIT:
   • Colors are defined at the top under ":root" — change them once
     and they update everywhere.
   • Font choices are in the @import line and the font-family rules.
   • Search for "OVERLAP OPTION A" and "OVERLAP OPTION B" to switch
     the photo layout between bottom-left and top-right overlap.
   ============================================================ */

/* ── Google Fonts (vintage-feeling typefaces, loaded from the web) ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Josefin+Sans:wght@100;300&display=swap');

/* ── Colour palette ──────────────────────────────────────────────── */
:root {
  --bg:           #f0ede8;   /* off-white parchment background         */
  --border:       #b8a99a;   /* warm grey for photo borders            */
  --title-color:  #c9a97a;   /* soft antique gold/beige for headings   */
  --nav-color:    #3a3530;   /* dark brown-grey for navigation text     */
  --nav-hover:    #8c7055;   /* warm mid-tone on hover                  */
  --placeholder:  #d4cfc9;   /* fill for missing-image boxes            */
  --placeholder-text: #7a706a;
}

/* ── Reset & base ────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  background-color: var(--bg);
  /* Subtle aged-paper texture using pure CSS — no image needed */
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0,0,0,0.012) 2px,
      rgba(0,0,0,0.012) 4px
    );
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--nav-color);
  min-height: 100vh;
}

/* ── Page wrapper: centres everything, limits max width ─────────── */
.page-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 30px 60px;
}

/* ── Site header: title + tagline ───────────────────────────────── */
.site-header {
  text-align: center;
  margin-bottom: 40px;
}

/* Main title — old-fashioned serif in antique gold/beige */
.site-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: 0.12em;
  color: var(--title-color);
  text-transform: none;
  line-height: 1.2;
  /* Subtle text shadow for depth */
  text-shadow: 1px 1px 3px rgba(0,0,0,0.08);
}

/* Subtitle / destination line */
.site-tagline {
  margin-top: 8px;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 100;
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--nav-color);
  opacity: 0.6;
}

/* ── Photo stage: the overlapping photo layout ───────────────────── */
/*
  The stage is a positioned container. The main photo sits normally
  inside it; the secondary photo is positioned absolutely so it can
  overlap the corner of the main photo.
*/
.photo-stage {
  position: relative;
  /* Extra space at the top-right to allow the secondary photo to
     overlap without being clipped — adjust if you change photo sizes */
  padding-top: 60px;
  padding-right: 40px;
  padding-bottom: 0;
  margin-bottom: 48px;
}

/* Shared frame styles (the bordered box around each photo) */
.photo-frame {
  background-color: var(--placeholder);
  border: 1.5px solid var(--border);
  /* Classic thin double-border effect using outline + offset */
  outline: 1px solid var(--border);
  outline-offset: 5px;
  overflow: hidden;
  /* Black-and-white filter applied to images for vintage look */
  filter: grayscale(100%) contrast(1.05);
  transition: filter 0.4s ease;
}

/* Reveal colour on hover if you ever want that effect — remove this
   rule to keep photos permanently black-and-white */
/* .photo-frame:hover { filter: grayscale(0%); } */

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── MAIN / HERO photo ───────────────────────────────────────────── */
.photo-main {
  width: 100%;
  /* Tall enough to be the hero — adjust this number to taste */
  height: 520px;
}

/* ── SECONDARY / OVERLAPPING photo ──────────────────────────────── */

/*
  ╔══════════════════════════════════════════════════════════════╗
  ║  OVERLAP OPTION B (current): top-right corner overlap         ║
  ╚══════════════════════════════════════════════════════════════╝
  The secondary image floats over the top-right corner of the main image.
*/
.photo-secondary {
  position: absolute;

  /* OPTION B — top-right overlap ────────────────────────────── */
  top: 0;          /* sits at the top of the stage              */
  right: 0;        /* flush with the right edge of the stage    */
  width: 42%;      /* relative to the stage width               */
  height: 260px;   /* absolute height — adjust to taste         */
  z-index: 2;      /* sits ON TOP of the main photo             */
  box-shadow: 4px -4px 18px rgba(0,0,0,0.18); /* depth shadow  */

  /*
  ──────────────────────────────────────────────────────────────
  OVERLAP OPTION A (alternative): bottom-left corner overlap
  To switch: comment out the four lines above (top, right, width, height)
  and uncomment the four lines below. Also change padding-top/padding-right
  in .photo-stage to padding-bottom: 120px; padding-left: 0;
  ──────────────────────────────────────────────────────────────
  bottom: 0;
  left: 30px;
  width: 42%;
  height: 260px;
  */
}

/* ── Placeholder styling (shown when image files aren't present) ── */
.photo-frame.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-label {
  display: none; /* hidden by default; shown via JS onerror on the img */
  text-align: center;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--placeholder-text);
  line-height: 2;
  padding: 20px;
}

.photo-frame.placeholder img {
  display: none; /* hide the broken image icon */
}

.photo-frame.placeholder .placeholder-label {
  display: block;
}

/* ── Navigation tabs ─────────────────────────────────────────────── */
/*
  Nine tabs displayed below the photos, centred and spaced evenly.
  On smaller screens they wrap naturally to multiple rows.
*/
.tab-nav {
  margin-top: 10px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}

.tab-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 0;
}

.tab-nav ul li {
  /* Vertical divider between items */
  border-right: 1px solid var(--border);
  line-height: 1;
}

.tab-nav ul li:last-child {
  border-right: none;
}

.tab-nav ul li a {
  display: block;
  padding: 4px 18px;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--nav-color);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.tab-nav ul li a:hover,
.tab-nav ul li a:focus {
  color: var(--nav-hover);
  text-decoration: none;
}

/* Active page highlight (added to the <a> tag on each sub-page) */
.tab-nav ul li a.active {
  color: var(--title-color);
  border-bottom: 1px solid var(--title-color);
}

/* ── Inner-page layout (used by all sub-pages) ───────────────────── */
.inner-page {
  margin-top: 50px;
}

.inner-page h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-style: normal;
  font-size: 2rem;
  color: var(--nav-color);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.inner-page p {
  font-size: 1.05rem;
  line-height: 1.85;
  max-width: 680px;
  margin-bottom: 18px;
  color: var(--nav-color);
}

.inner-page p strong {
  font-weight: 700;
  color: #1a1612;
}

/* Exercise titles — bold subheadings within exercise sections */
.exercise-title {
  display: block;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #1a1612;
  margin: 28px 0 8px;
  max-width: 680px;
}

/* Photo placeholder for inner pages */
.inner-photo {
  width: 100%;
  max-width: 680px;
  height: 380px;
  background-color: var(--placeholder);
  border: 1.5px solid var(--border);
  outline: 1px solid var(--border);
  outline-offset: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0;
  overflow: hidden;
}

.inner-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.inner-photo .placeholder-label {
  display: block;
  text-align: center;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--placeholder-text);
  line-height: 2;
}

/* ── Responsive tweaks ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .page-wrapper {
    padding: 30px 16px 40px;
  }

  .photo-main {
    height: 340px;
  }

  .photo-secondary {
    width: 55%;
    height: 190px;
    right: 0;
    top: 0;
  }

  .photo-stage {
    padding-top: 40px;
    padding-right: 20px;
    padding-bottom: 0;
  }

  .tab-nav ul li a {
    font-size: 0.65rem;
    padding: 4px 10px;
    letter-spacing: 0.12em;
  }

  .inner-page h2 {
    font-size: 1.5rem;
  }

  .inner-photo {
    height: 240px;
  }
}

/* ── Designer credit (homepage footer) ──────────────────────────── */
.designer-credit {
  margin-top: 28px;
  text-align: center;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--nav-color);
  opacity: 0.35;
}

/* ── Page intro subtitle ─────────────────────────────────────────── */
.page-intro {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--title-color);
  margin-bottom: 28px;
  opacity: 0.8;
}

/* ── Section subheadings ─────────────────────────────────────────── */
.section-subhead {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-style: normal;
  font-size: 1.3rem;
  color: var(--nav-color);
  letter-spacing: 0.04em;
  margin: 40px 0 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  max-width: 680px;
}

/* ── Inline content images ───────────────────────────────────────── */
.inner-photo-wrap {
  max-width: 480px;
  margin: 28px 0;
}

.content-img {
  width: 100%;
  height: auto;
  display: block;
  border: 1.5px solid var(--border);
  outline: 1px solid var(--border);
  outline-offset: 5px;
}

.img-caption {
  margin-top: 10px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--nav-color);
  opacity: 0.6;
  max-width: 680px;
}

/* ── Pull quote / blockquote ─────────────────────────────────────── */
.pull-quote {
  border-left: 2px solid var(--title-color);
  padding: 16px 24px;
  margin: 32px 0;
  max-width: 640px;
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--nav-color);
}

.pull-quote p {
  margin: 0;
}

.bq-attr {
  margin-top: 12px;
  font-style: normal;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ── Timeline ────────────────────────────────────────────────────── */
.timeline {
  max-width: 680px;
  margin: 20px 0 32px;
  border-left: 2px solid var(--border);
  padding-left: 24px;
}

.tl-entry {
  margin-bottom: 28px;
  position: relative;
}

.tl-entry::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 6px;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--title-color);
  background: var(--bg);
  border-radius: 50%;
}

.tl-year {
  display: block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--nav-color);
  margin-bottom: 6px;
}


.tl-date {
  display: block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--nav-color);
  margin-bottom: 6px;
}

.tl-entry p {
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.8;
}

/* ── Resource link list ──────────────────────────────────────────── */
.resource-list {
  list-style: none;
  padding: 0;
  max-width: 680px;
  margin-bottom: 16px;
}

.resource-list li {
  padding: 10px 0 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  line-height: 1.6;
}

.resource-list li:last-child {
  border-bottom: none;
}

.resource-list a {
  color: var(--nav-hover);
  text-decoration: none;
  transition: opacity 0.2s;
}

.resource-list a:hover {
  opacity: 0.7;
}

/* ── Guide lists (ol/ul in teacher guide & book club) ────────────── */
.guide-list {
  max-width: 660px;
  padding-left: 1.4em;
  margin-bottom: 18px;
}

.guide-list li {
  font-size: 1.02rem;
  line-height: 1.85;
  margin-bottom: 8px;
  color: var(--nav-color);
}

/* ── Theme tag grid (teacher guide) ─────────────────────────────── */
.theme-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 680px;
  margin: 20px 0 32px;
}

.theme-tag {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 6px 14px;
  color: var(--nav-color);
}

/* ── Trigger warning box ─────────────────────────────────────────── */
.trigger-warning {
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.03);
  padding: 16px 20px;
  max-width: 680px;
  margin: 24px 0;
  font-size: 0.95rem;
  line-height: 1.75;
}

.trigger-warning p {
  margin: 0;
  font-size: 0.95rem;
}

/* ── Recipe blocks (book club) ───────────────────────────────────── */
.recipe-block {
  max-width: 680px;
  margin: 36px 0;
  padding: 28px 28px 20px;
  border: 1px solid var(--border);
  outline: 1px solid var(--border);
  outline-offset: 5px;
}

.recipe-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--title-color);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

/* ── Responsive additions ────────────────────────────────────────── */
@media (max-width: 600px) {
  .section-subhead {
    font-size: 1.2rem;
  }
  .timeline {
    padding-left: 16px;
  }
  .recipe-block {
    padding: 18px 16px;
  }
}

/* ── Other Books — colour layout ─────────────────────────────────── */
.book-row {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  max-width: 700px;
  margin: 40px 0;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.book-row:last-child {
  border-bottom: none;
}

.book-cover-wrap {
  flex: 0 0 150px;
}

/* Book covers shown in FULL COLOUR (no grayscale filter) */
.book-cover-colour {
  width: 150px;
  height: 210px;
  object-fit: cover;
  display: block;
  border: 1.5px solid var(--border);
  outline: 1px solid var(--border);
  outline-offset: 5px;
  /* No grayscale — colour intentional */
}

.book-info {
  flex: 1;
  min-width: 200px;
}

.book-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--title-color);
  margin-bottom: 4px !important;
}

.book-byline {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 14px !important;
}

/* ── Contact block ────────────────────────────────────────────────── */
.contact-block {
  max-width: 620px;
  margin: 32px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.contact-row {
  display: flex;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
  flex-wrap: wrap;
}

.contact-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--title-color);
  min-width: 90px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .book-cover-colour {
    width: 120px;
    height: 170px;
  }
  .book-cover-wrap {
    flex: 0 0 120px;
  }
}

/* ── Book info plain text (no extra margins between lines) ───────── */
.book-info p {
  margin-bottom: 2px !important;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--nav-color);
}

/* ── Homepage new title layout ───────────────────────────────────── */
.coming-soon-label {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--nav-color);
  opacity: 0.7;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  text-align: center;
}

.book-title-main {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: 0.06em;
  color: var(--title-color);
  text-align: center;
  line-height: 1.1;
  margin-bottom: 10px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.08);
}

.book-subtitle {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--nav-color);
  text-align: center;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.book-byline-home {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--nav-color);
  opacity: 0.7;
  text-align: center;
  margin-bottom: 0;
}

/* Make homepage photos slightly smaller than before */
.photo-main {
  width: 92%;
  margin: 0 auto;
  height: 480px;
  display: block;
}

