@charset "UTF-8";
:root {
  --ink: #111;
  --muted: #8b8b8b;
  --rule: #e6e6e6;
  --accent: #b56aa6;
  /* mauve-ish for "Bakes" */
  --bg: #fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  margin-bottom: 120px;
}

.top {
  display: flex;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 14px;
  align-items: start;
  padding: 48px 28px 0px;
}

.top > .left {
  grid-column: 1;
  min-width: 0;
}

.top > .contact {
  grid-column: 2;
  min-width: 0;
  width: 80%;
  align-self: start;
}

.contact {
  padding-top: 6px;
}

/* LEFT COLUMN */
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  flex: 0 0 60px;
}

.profile-text {
  display: flex;
  flex-direction: column;
}

.avatar {
  width: 60px;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(0.95) contrast(1.02);
}

.name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  letter-spacing: 0.2px;
  line-height: 0.95;
  font-weight: 400;
  white-space: nowrap;
  margin: 0;
  padding-bottom: 5px;
  margin-bottom: 0px;
  text-transform: none;
}

.name .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}

/* --- name swap animation --- */
/* --- name swap animation (adjusted for Playfair italics) --- */
.name.name-swap {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35ch;
}

/* wrapper that stacks the last names */
.name-swap .last-wrap {
  position: relative;
  display: inline-block;
  height: 0.85em;
  min-width: 6ch;
  vertical-align: baseline;
  padding-top: 0.05em;
}

/* all last names occupy the same spot */
.name-swap .last {
  position: absolute;
  left: 0;
  top: 0.06em;
  white-space: nowrap;
  /* cycle control */
  --cycle: 10s;
  /* total loop length; tweak if you want faster/slower */
  animation-duration: var(--cycle);
  animation-timing-function: ease;
  animation-iteration-count: infinite;
}

/* BOAS */
.name-swap .last-boas {
  animation-name: boas-cycle;
}

/* BAKES */
.name-swap .last-bakes {
  animation-name: bakes-cycle;
}

/* TRAVELS */
.name-swap .last-travels {
  animation-name: travels-cycle;
}

/* COOKS */
.name-swap .last-cooks {
  animation-name: cooks-cycle;
}

/* WRITES */
.name-swap .last-writes {
  animation-name: writes-cycle;
}

/* Each word is visible for a slice of the 0–100% timeline */
@keyframes boas-cycle {
  0% {
    opacity: 0;
    transform: translateY(-140%);
  }
  3.64% {
    opacity: 1;
    transform: translateY(0);
  }
  33.64% {
    opacity: 1;
    transform: translateY(0);
  }
  /* hold ~3.0s total */
  37.28% {
    opacity: 0;
    transform: translateY(35%);
  }
  100% {
    opacity: 0;
    transform: translateY(35%);
  }
}
@keyframes bakes-cycle {
  0%, 37.28% {
    opacity: 0;
    transform: translateY(-140%);
  }
  40.92% {
    opacity: 1;
    transform: translateY(0);
  }
  49.32% {
    opacity: 1;
    transform: translateY(0);
  }
  52.96% {
    opacity: 0;
    transform: translateY(35%);
  }
  100% {
    opacity: 0;
    transform: translateY(35%);
  }
}
@keyframes travels-cycle {
  0%, 52.96% {
    opacity: 0;
    transform: translateY(-140%);
  }
  56.60% {
    opacity: 1;
    transform: translateY(0);
  }
  65% {
    opacity: 1;
    transform: translateY(0);
  }
  68.64% {
    opacity: 0;
    transform: translateY(35%);
  }
  100% {
    opacity: 0;
    transform: translateY(35%);
  }
}
@keyframes cooks-cycle {
  0%, 68.64% {
    opacity: 0;
    transform: translateY(-140%);
  }
  72.28% {
    opacity: 1;
    transform: translateY(0);
  }
  80.68% {
    opacity: 1;
    transform: translateY(0);
  }
  84.32% {
    opacity: 0;
    transform: translateY(35%);
  }
  100% {
    opacity: 0;
    transform: translateY(35%);
  }
}
@keyframes writes-cycle {
  0%, 84.32% {
    opacity: 0;
    transform: translateY(-140%);
  }
  87.96% {
    opacity: 1;
    transform: translateY(0);
  }
  96.36% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(35%);
  }
  /* blends into Boas */
}
/* one-shot intro for solo pages */
@keyframes solo-last-in {
  0% {
    opacity: 0;
    transform: translateY(-140%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
/* SOLO pages: kill cycling and play just once */
.name-swap.solo-bakes .last-bakes,
.name-swap.solo-travels .last-travels,
.name-swap.solo-cooks .last-cooks,
.name-swap.solo-writes .last-writes {
  animation-name: solo-last-in;
  animation-duration: 600ms;
  animation-timing-function: ease;
  animation-iteration-count: 1;
  animation-fill-mode: both;
}

.location {
  grid-column: 2;
  font-size: 10px;
  letter-spacing: 1px;
  color: #404040;
  text-transform: uppercase;
  grid-column: auto;
  margin-top: 2px;
}

.blurb {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 12px;
  line-height: 1.55;
  color: #333;
  max-width: 560px;
}

/* RIGHT COLUMN (FORM) */
.contact {
  padding-top: 6px;
}

.field {
  margin-bottom: 12px;
}

.label {
  font-size: 7px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
  display: block;
}

.input,
.textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--rule);
  outline: none;
  background: transparent;
  color: var(--ink);
}

.textarea {
  min-height: 140px;
  resize: vertical;
  border: 1px solid transparent;
  border-bottom: 1px solid var(--rule);
  padding-top: 10px;
}

.input::placeholder,
.textarea::placeholder {
  color: #c7c7c7;
}

.input:focus,
.textarea:focus {
  border-bottom-color: #c9c9c9;
}

.submit {
  margin-top: 8px;
  border: 1px solid var(--ink);
  background: transparent;
  padding: 10px 16px;
  font-size: 14px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
}

.submit:hover {
  background: var(--ink);
  color: #fff;
}

/* ---- Message modal ---- */
.message-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.message-modal.is-open {
  display: flex;
}

.message-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

.message-modal__panel {
  position: relative;
  width: min(720px, 94vw);
  height: min(60vh, 560px);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  padding: 14px;
}

.message-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.message-modal__title {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.message-modal__close {
  appearance: none;
  background: transparent;
  border: 0;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 8px;
}

.message-modal__close:hover {
  background: #f3f3f3;
}

.message-modal__textarea {
  flex: 1;
  width: 100%;
  resize: none;
  border: 0;
  outline: none;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  padding: 12px 6px;
}

.message-modal__footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
}

.message-modal__send {
  appearance: none;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.message-modal__send:hover {
  opacity: 0.9;
}

/* stop background scroll when modal open */
body.modal-open {
  overflow: hidden;
}

/* === SUBSCRIBE FORM (scoped + centered) === */
.subscribe {
  font-family: "Playfair Display", Georgia, serif;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  justify-content: center;
  width: 100%;
}

/* scope the form styles to only inside .subscribe */
.subscribe #subscribeForm {
  display: flex;
  flex-direction: column;
  font-family: "Playfair Display", Georgia, serif;
  padding-top: 5px;
  padding-bottom: 5px;
  width: 100%;
  max-width: 260px;
  /* controls form width on the page */
  align-items: center;
  /* keeps inner content centered if it wraps */
}

.subscribe .form-container {
  display: flex;
  overflow: hidden;
  width: 100%;
  justify-content: center;
  /* centers the input row within the form width */
}

.subscribe input[type="email"] {
  flex: 1;
  padding: 5px;
  padding-left: 0px;
  font-size: 10px;
  font-family: "Playfair Display", Georgia, serif;
  border: none;
  outline: none;
  max-width: 145px;
  background-color: transparent;
}

/* scope subscribe text so it won’t affect other areas */
.subscribe .subscribe-text {
  font-size: 10px;
  line-height: 1.4;
}

/* scope button styles to this component only */
.subscribe button#subscribeButton {
  display: none;
  background-color: transparent;
  color: #000000;
  font-weight: bold;
  cursor: pointer;
  outline: none;
  font-family: Arial, serif;
  border: none;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.subscribe button#subscribeButton.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* NAV */
.nav {
  font-family: "Playfair Display", Georgia, serif;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  justify-content: center;
  width: 100%;
  font-style: italic;
}

.nav bakes {
  color: var(--accent);
}

.nav travels {
  color: var(--accent);
}

.nav cooks {
  color: var(--accent);
}

.nav a {
  text-decoration: none;
  color: inherit;
}

.nav a:hover {
  text-decoration: underline;
}

.nav .sep {
  opacity: 0.5;
  user-select: none;
}

/* Post Content */
.no-image {
  margin-left: 30px;
  margin-right: 30px;
}

.no-image h1 {
  margin-top: 0px;
}

.post-description {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.5em;
}

.post-link {
  padding-bottom: 60px;
}

.post {
  margin-top: 20px;
}

.post-content {
  font-family: "Playfair Display", Georgia, serif;
  padding: 20px 28px 120px;
}

h1 {
  margin-bottom: 0px;
  font-size: 20px;
  text-transform: uppercase;
}

.post-title {
  font-family: "Montserrat", "Futura PT", "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.15em;
}

.post-title a {
  text-decoration: none;
  color: #000;
}

.post-title a:hover {
  text-decoration: underline;
}

.post-date {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 10px;
  margin-top: 5px;
  text-transform: uppercase;
}

.entry {
  line-height: 1.5em;
}

.entry img {
  display: block;
  width: 100%;
  height: auto;
  margin: 20px 0;
}

/* LOWER IMAGE SECTION */
.gallery {
  margin-top: 20px;
}

.cake-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #eee;
}

/* Visible by default */
.gallery .cake-shot {
  opacity: 1;
  transform: none;
  transition: opacity 3.6s cubic-bezier(0.22, 0.61, 0.36, 1), transform 3.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

/* Hide only gallery images once JS is ready */
.reveal-ready .gallery .cake-shot {
  opacity: 0;
  transform: translateY(8px);
}

/* Revealed state */
.gallery .cake-shot.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* First cake-shot: always visible, no animation */
.gallery .cake-shot.no-transition {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  will-change: auto;
}

.reveal-ready .gallery .cake-shot.no-transition {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .gallery .cake-shot,
  .reveal-ready .gallery .cake-shot {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/* Footer */
.social-icons {
  margin-top: 8px;
}

.social-icons svg {
  color: var(--muted);
}

.hero {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  margin-left: 30px;
  margin-top: 100px;
  font-size: 10px;
  color: var(--muted);
}

.hero a {
  text-decoration: none;
  color: var(--muted);
}

.hero .name {
  font-size: 14.5px;
}

.email {
  padding-bottom: 5px;
}

.footer {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  margin-left: 30px;
  margin-top: 50px;
  margin-bottom: 40px;
  font-size: 10px;
  color: var(--muted);
}

.footer a {
  text-decoration: none;
  color: var(--muted);
}

/* === Sidebar layout above 760px (ordered: profile, blurb, subscribe, nav, contact) === */
@media (min-width: 560px) {
  .page {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    /* match sidebar width */
    grid-template-rows: auto 1fr auto;
    column-gap: 40px;
    /* main within 40px of sidebar */
    row-gap: 22px;
    align-items: start;
    padding: 48px 28px 0;
    min-height: 100vh;
  }

  /* Sidebar column */
  .sidebar {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 0px;
    position: sticky;
    top: 24px;
    min-width: 0;
    width: 100%;
    /* NEW: sidebar scrolls independently */
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* smooth iOS scroll */
    overscroll-behavior: contain;
    /* prevents page scroll chaining */
  }

  .top {
    display: contents;
  }

  .sidebar .left {
    order: 1;
    width: 100%;
    min-width: 0;
  }

  .sidebar .subscribe {
    order: 3;
  }

  .sidebar .nav {
    order: 4;
  }

  .sidebar .contact {
    order: 5;
    width: 100%;
    min-width: 0;
    align-self: stretch;
  }

  /* Main content spans all rows so footer can sit only in left column */
  .main {
    grid-column: 2;
    grid-row: 1 / span 3;
    min-width: 0;
  }

  .blurb {
    margin-bottom: 0px;
  }

  .subscribe .form-container {
    justify-content: left;
  }

  .nav {
    padding-bottom: 20px;
    justify-content: left;
  }

  /* Footer pinned at bottom of left column */
  .footer {
    grid-column: 1;
    grid-row: 3;
    margin: 0;
    align-self: end;
  }

  .post-content {
    padding: 20px 0 120px;
    max-width: none;
  }

  .post {
    margin-top: 0px;
  }

  .gallery {
    margin-left: 0;
    margin-top: 0px;
    /* spacing rules */
    display: grid;
    /* safe even if you already set grid elsewhere */
    column-gap: 20px;
    /* between pics in a row */
    row-gap: 30px;
    /* between rows */
    /* or shorthand: gap: 30px 20px; */
  }
}
@media (min-width: 890px) {
  #message {
    height: 100px;
  }
}
