:root {
  --paper: #f7f3ec;
  --paper-dark: #ede6da;
  --ink: #2b2622;
  --muted: #6b6259;
  --sea: #2f5d6e;
  --rule: #d9d0c3;
  --heart: #e0245e;
  --image-border: #e2dccf;
  --card-inkquill: #eef0f0;
  --card-inkquill-border: #6b8199;
  --card-plant: #f3e6e7;
  --card-plant-border: #b88a8f;
  --card-plant-text-color: #8b3a45;
  --text-color-navy: #132447c9;
  --quote-color: #471313c9;
  --form-background: #fffdf9;
  --error: #eb1f3a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --max: 1100px;
  --narrow: 720px;
  --space: 1.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--sea);
}

h1,
h2,
h3 {
  font-weight: normal;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
}

h2 a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
}

.narrow {
  max-width: var(--narrow);
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--rule);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem var(--space);
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.logo {
  color: var(--ink);
  font-size: 1.4rem;
  text-decoration: none;
}

.site-header ul,
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header nav a {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--sea);
}

.site-header nav ul {
  align-items: center;
}

/* Social menu */

.social-menu {
  position: relative;
}

.social-menu summary {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  list-style: none;
  text-transform: uppercase;
}

.social-menu summary::-webkit-details-marker {
  display: none;
}

.social-menu summary:hover,
.social-menu[open] summary {
  color: var(--sea);
}

.chat-heart {
  width: 1.2rem;
  height: 1.2rem;
}

.chat-heart .heart {
  transform-box: fill-box;
  transform-origin: center;
  transition: fill 0.2s, transform 0.2s;
}

.social-menu summary:hover .heart,
.social-menu summary:focus-visible .heart,
.social-menu[open] .heart {
  fill: var(--heart);
  transform: scale(1.25);
}

.social-menu .caret {
  width: 0.7rem;
  height: 0.7rem;
  transition: transform 0.15s;
}

.social-menu[open] .caret {
  transform: rotate(180deg);
}

.social-panel {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  z-index: 10;
  padding: 0.4rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 10px 30px rgba(43, 38, 34, 0.15);
}

.site-header .social-panel a {
  color: var(--ink);
  letter-spacing: normal;
  text-transform: none;
}

.site-header .social-panel a:hover {
  background: var(--paper-dark);
  color: var(--sea);
}

.social-icons {
  display: flex;
  gap: 0.25rem;
  border-radius: 999px;
}

.social-icons a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.social-icons svg {
  width: 20px;
  height: 20px;
}

.social-words {
  min-width: 11rem;
}

.social-words a {
  display: block;
  padding: 0.55rem 0.8rem;
  font-size: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .chat-heart .heart,
  .social-menu .caret {
    transition: none;
  }
}

/* Sections */

section {
  padding: calc(var(--space) * 2.5) 0;
}

.hero {
  padding-top: calc(var(--space) * 4);
  text-align: center;
}

.hero-map {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero-map::before {
  content: "";
  position: absolute;
  inset: 1rem 0;
  z-index: -1;
  background: url("../assets/images/cape-breton-topo.svg") center / contain no-repeat;
  opacity: 0.14;
}

@media (min-width: 900px) {
  .hero-map {
    padding-bottom: calc(var(--space) * 4);
  }

  .hero-map::before {
    inset: 0.75rem 0;
    background-position: 82% center;
    opacity: 0.28;
  }
}

.tagline {
  color: var(--muted);
  font-size: clamp(1.25rem, 2.5vw, 1.25rem);
  font-style: italic;
  line-height: 1.5;
}

.photo-credit{
  margin:auto;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
}

.kicker {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro-portrait {
  float: right;
  width: 130px;
  margin: 0.25rem 0 1rem 1.25rem;
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--paper-dark);
  shape-outside: circle();
  shape-margin: 1rem;
}

@media (min-width: 768px) {
  .intro-portrait {
    width: 212px;
    margin-left: 2rem;
  }
}

.container:has(> .intro-portrait) {
  display: flow-root;
}

.intro-portrait + .lead {
  margin-top: 0;
}

.lead {
  font-size: 1.3rem;
  line-height: 1.6;
}

.band {
  background: var(--paper-dark);
}

.split {
  display: grid;
  gap: calc(var(--space) * 2);
  align-items: center;
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: 1fr 1.4fr;
  }
}

.badge {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.2rem 0.75rem;
  border: 1px solid var(--sea);
  color: var(--sea);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quote {
  margin: 0;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-style: italic;
  line-height: 1.5;
  text-align: center;
}

.closing {
  padding: calc(var(--space) * 4) 0;
}

.callout {
  margin: calc(var(--space) * 1.5) 0;
  padding: var(--space) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: 1.5rem;
  font-style: italic;
  text-align: center;
}

.themes {
  color: var(--sea);
  font-size: 1.25rem;
}

.book-details {
  list-style: none;
  margin: 0;
  padding: 0;
}

.book-title {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.cover {
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(43, 38, 34, 0.25);
}

.story-photo {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(43, 38, 34, 0.18);
}

.story-intro {
  text-align: center;
}

.price {
  margin-top: 0.5rem;
  font-size: 1.4rem;
  color: var(--sea);
}

/* Gallery */

.gallery {
  display: grid;
  gap: calc(var(--space) * 2);
}

@media (min-width: 700px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card h2 {
  margin-top: 1rem;
  font-size: 1.5rem;
}

.caption {
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
}

/* Listen button for the CBC interview (Home and Stories & Gallery) */

.listen-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font-size: 1.05rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.listen-cta:hover,
.listen-cta:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.listen-cta:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.listen-cta svg {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
}

.book-feature .listen-cta {
  display: inline-flex;
  width: auto;
  margin-top: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .listen-cta {
    transition: none;
  }
}

/* Reviews on yesterday's tomorrow page */

.reviews h2 {
  text-align: center;
}

.review-list {
  display: grid;
  gap: var(--space);
  margin: calc(var(--space) * 1.5) 0;
}

.review {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: var(--space);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* keeps quote lines near 70 characters on wide screens */
@media (min-width: 768px) {
  .review {
    padding: 2.25rem 3.5rem;
  }

  .review blockquote {
    font-size: 1.2rem;
  }
}

.review blockquote {
  flex: 1;
  margin: 0;
  font-style: italic;
}

.review blockquote p {
  margin: 0;
}

.review figcaption {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.reader-photo {
  max-width: 22rem;
  margin: 0 auto calc(var(--space) * 1.5);
}

.reader-photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 10px solid var(--image-border);
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.reader-photo figcaption {
  margin-top: 0.75rem;
  font-style: italic;
  text-align: center;
}

.reader-photo .photo-credit {
  display: block;
  margin-top: 0.25rem;
}

.review-invite {
  margin: 0;
  text-align: center;
}

/* Video on yesterday's tomorrow page */

.book-video {
  display: block;
  margin: 2rem auto;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 9;  /* height follows the width */
  height: auto;
  border: 0;
  border-radius: 4px;
}


/* Image slots until real photos arrive */

.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: var(--space);
  /* border: 2px dashed var(--rule); */
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  border: 10px solid var(--image-border);
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.yesterday-tomorrow-wide {
  min-height: 0;
  padding: 0;
}

.yesterday-tomorrow-wide  img{
  width: 100%;
  max-width: 900px;
  height:auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-width: 6px;
}

.page-break img {
  width: 220px;
  margin-left: auto;
}

/* Footer */

.site-footer {
  padding: calc(var(--space) * 2.5) 0;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.site-footer ul {
  justify-content: center;
  margin: 1rem 0;
}

.footer-name {
  margin: 0;
  color: var(--ink);
  font-size: 1.3rem;
}

.footer-tagline {
  margin: 0.25rem 0 0;
  font-style: italic;
}

.copyright {
  margin: 0;
  font-size: 0.85rem;
}

.credit {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
}

/* 404 */

.not-found {
  padding: calc(var(--space) * 5) 0;
  text-align: center;
}

/* Smaller screens */

.placeholder-wide {
  min-height: 0;
}

/* Tablets and phones: name and social icon on one row, every page visible below */

@media (max-width: 1023px) {
  .site-header .container {
    display: block;
    position: relative;
    padding-top: 0.5rem;
    padding-bottom: 0.25rem;
  }

  .logo {
    display: block;
    line-height: 44px;
  }

  .site-header nav ul {
    gap: 0 1.1rem;
  }

  .site-header nav li a {
    display: flex;
    align-items: center;
    min-height: 44px;
    border-bottom: 2px solid transparent;
    letter-spacing: 0.09em;
    white-space: nowrap;
  }

  .site-header nav a[aria-current="page"] {
    border-bottom-color: var(--sea);
  }

  .nav-social {
    position: absolute;
    top: 0.5rem;
    right: var(--space);
  }

  .social-menu summary {
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

  .social-panel {
    top: calc(100% + 0.25rem);
  }
}

/* Book: cover beside the title until there is room for two full columns */

@media (max-width: 767px) {
  .book-feature {
    grid-template-columns: 38% 1fr;
    grid-template-rows: 1fr auto auto 1fr;
    gap: 0 1.25rem;
  }

  .book-feature > div {
    display: contents;
  }

  .book-feature .cover {
    grid-column: 1;
    grid-row: 1 / 5;
    width: 100%;
  }

  .book-feature .badge {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }

  .book-feature h2 {
    grid-column: 2;
    grid-row: 3;
    margin: 0;
    font-size: 1.5rem;
  }

  .book-feature .tagline {
    grid-column: 1 / -1;
    grid-row: 5;
    margin: 1.5rem 0 0;
  }

  .book-feature > div > p:last-of-type {
    grid-column: 1 / -1;
    grid-row: 6;
  }

  .book-feature .listen-cta {
    grid-column: 1 / -1;
    grid-row: 7;
    width: 100%;
  }

  .book-meta {
    grid-template-columns: 38% 1fr;
    gap: 1.25rem;
  }

  .book-meta .cover {
    width: 100%;
  }

  .book-title {
    font-size: 1.4rem;
  }
}

@media (max-width: 699px) {
  section {
    padding: calc(var(--space) * 1.75) 0;
  }

  .hero {
    padding-top: calc(var(--space) * 2.5);
    padding-bottom: calc(var(--space) * 1.5);
  }

  .closing {
    padding: calc(var(--space) * 2.5) 0;
  }

  /* Smaller menu text so every page fits in two rows */

  .logo {
    font-size: 1.3rem;
  }

  .site-header nav ul {
    gap: 0 0.75rem;
  }

  .site-header nav li a {
    font-size: 0.72rem;
    letter-spacing: 0.03em;
  }

  /* Home intro */

  .intro-portrait {
    width: 104px;
    margin-left: 1rem;
  }

  .lead {
    font-size: 1.15rem;
  }

  /* Footer links big enough to tap */

  .site-footer nav ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .site-footer nav li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .site-footer nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }
}


 @media (min-width: 900px) {
  .yesterday-tomorrow-wide img {
    aspect-ratio: 16 / 7;
    width:70%;
    border-width: 10px;
  }
}