/* =========================================
   Isabel Rueda — Friskmalet
   Shared design system
   ========================================= */

:root {
  --cream:           #F2ECDF;
  --cream-deep:      #E8DFCC;
  --ink:             #171512;
  --ink-soft:        #3A342C;
  --muted:           #7A7064;
  --terracotta:      #8B3A1A;
  --terracotta-deep: #6B2B10;
  --wheat:           #BFA888;
  --rule:            #CBBFA8;
  --blue:            #077BA5;  /* signature teal — used in .bleed and hero accents */
  --blue-deep:       #064D68;
  --font-serif:      'Playfair Display', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .39  0 0 0 0 .3  0 0 0 .08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
  z-index: 2;
}
.wrap-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}
@media (max-width: 720px) {
  .wrap { padding: 0 24px; }
  .wrap-narrow { padding: 0 24px; }
}

/* =========================================
   NAV
   ========================================= */
nav.site {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0 0;
  position: relative;
  z-index: 3;
}
.mast {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
}
.mast::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--terracotta);
  margin-left: 6px; vertical-align: middle;
}
.navlinks {
  display: flex;
  gap: 28px;
  list-style: none;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 500;
}
.navlinks a {
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.navlinks a:hover,
.navlinks a.active { border-color: var(--terracotta); }
.navlinks a.ig {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.navlinks a.ig::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 4px;
  border: 1.5px solid currentColor;
  position: relative;
  display: inline-block;
}
@media (max-width: 860px) {
  .navlinks { display: none; }
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: var(--ink);
  color: var(--cream);
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--terracotta); transform: translateY(-1px); }
.btn.primary { background: var(--terracotta); }
.btn.primary:hover { background: var(--terracotta-deep); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn.ghost:hover { background: var(--ink); color: var(--cream); }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--terracotta);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: gap .2s;
}
.link-arrow:hover { gap: 12px; }

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5 { color: var(--ink); }
.eyebrow {
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 500;
}
.section-label {
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.section-label::before {
  content: "";
  flex: 0 0 40px;
  height: 1px;
  background: var(--terracotta);
}

/* =========================================
   CROPS / IMAGE PLACEHOLDERS
   ========================================= */
.crop {
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(at 30% 20%, rgba(255,240,200,.6), transparent 60%),
    radial-gradient(at 80% 80%, rgba(139, 58, 26, .25), transparent 55%),
    linear-gradient(135deg, #D9C8A6 0%, #A88258 55%, #6B4423 100%);
  position: relative;
  overflow: hidden;
}
.crop.tall { aspect-ratio: 3 / 5; }
.crop.square { aspect-ratio: 1 / 1; }
.crop.wide {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(at 70% 30%, rgba(255,230,180,.55), transparent 55%),
    linear-gradient(120deg, #C8B28B 0%, #8B6B44 60%, #3E2F1F 100%);
}
.crop.dark {
  background:
    radial-gradient(at 40% 40%, rgba(180,130,70,.35), transparent 55%),
    linear-gradient(160deg, #3E2F1F 0%, #1F1711 100%);
}
.crop.bread {
  background:
    radial-gradient(at 30% 40%, rgba(255,220,160,.5), transparent 55%),
    radial-gradient(at 75% 70%, rgba(110,60,30,.5), transparent 60%),
    linear-gradient(140deg, #C49A66 0%, #7A4E2A 50%, #3B230F 100%);
}
.crop.grain {
  background:
    radial-gradient(at 50% 35%, rgba(255,235,180,.6), transparent 60%),
    linear-gradient(135deg, #E3CDA2 0%, #A8855A 60%, #5A3F22 100%);
}
.crop.mill {
  background:
    radial-gradient(at 60% 30%, rgba(200,200,200,.4), transparent 55%),
    linear-gradient(135deg, #8A8479 0%, #4A423B 60%, #1F1A15 100%);
}
.crop.portrait {
  background:
    radial-gradient(at 50% 35%, rgba(230,190,155,.7), transparent 60%),
    radial-gradient(at 40% 70%, rgba(100,60,40,.5), transparent 60%),
    linear-gradient(145deg, #D2A784 0%, #8B5E3C 60%, #3E2412 100%);
}
.crop::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence baseFrequency='.75' numOctaves='3'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.4'/></svg>");
  mix-blend-mode: overlay;
  opacity: .6;
  pointer-events: none;
}
.crop .caption {
  position: absolute;
  bottom: 16px;
  left: 18px;
  right: 18px;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,245,225,.85);
  line-height: 1.6;
  font-weight: 500;
}
.crop .caption span {
  color: rgba(255,245,225,.5);
  font-weight: 400;
}
.crop .placeholder-hint {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 9px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255,245,225,.65);
  background: rgba(0,0,0,.2);
  padding: 4px 8px;
  border-radius: 2px;
}
/* Real photo inside a .crop placeholder. Uses cover so it fills any aspect
   ratio variant; per-instance object-position can be set inline. */
.crop > img.photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}
.crop.has-photo .placeholder-hint { display: none; }
.crop.has-photo .caption { z-index: 2; position: relative; }
.crop.has-photo::after { opacity: .15; }   /* dial back the noise overlay on real photos */

/* =========================================
   CTA / NEWSLETTER
   ========================================= */
.signup {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.signup input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 4px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ink);
  outline: none;
}
.signup input::placeholder { color: var(--muted); }
.signup button {
  border: none;
  background: transparent;
  padding: 14px 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  transition: color .2s;
}
.signup button:hover { color: var(--terracotta); }

/* =========================================
   FOOTER
   ========================================= */
footer.site {
  border-top: 1px solid var(--rule);
  padding: 48px 0 56px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
footer.site .colophon {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 36ch;
  line-height: 1.5;
}
footer.site h5 {
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 14px;
}
footer.site ul { list-style: none; font-size: 14px; line-height: 1.9; }
footer.site a { color: var(--ink); text-decoration: none; }
footer.site a:hover { color: var(--terracotta); }
footer.site .fine {
  grid-column: 1 / -1;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
}
@media (max-width: 860px) {
  footer.site { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  footer.site { grid-template-columns: 1fr; }
  footer.site .fine { flex-direction: column; gap: 8px; }
}

/* =========================================
   PAGE HEADER (non-home pages)
   ========================================= */
.page-header {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 64px;
}
.page-header .eyebrow {
  margin-bottom: 20px;
}
.page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -.025em;
  margin-bottom: 28px;
}
.page-header h1 em {
  font-style: italic;
  color: var(--terracotta);
}
.page-header .lede {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 46ch;
}

/* =========================================
   ARTICLE (blog post) LAYOUT
   ========================================= */
article.post .meta {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
article.post .meta .dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--muted);
  align-self: center;
}
article.post h1.title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -.025em;
  margin-bottom: 28px;
}
article.post .lede {
  font-family: var(--font-serif);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.45;
  color: var(--ink-soft);
  margin-bottom: 48px;
  max-width: 48ch;
}
article.post .hero-image {
  margin: 48px 0 64px;
}
article.post h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 48px 0 20px;
}
article.post h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.2;
  margin: 32px 0 12px;
}
article.post p {
  margin-bottom: 1.1em;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
}
article.post p.dropcap::first-letter {
  font-family: var(--font-serif);
  float: left;
  font-size: 5em;
  line-height: .85;
  padding: 4px 10px 0 0;
  color: var(--terracotta);
}
article.post ul, article.post ol {
  margin: 0 0 1.2em 1.4em;
  color: var(--ink-soft);
}
article.post li {
  margin-bottom: .5em;
  line-height: 1.65;
}
article.post ul li::marker { color: var(--terracotta); }
article.post blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.3;
  color: var(--ink);
  margin: 40px 0;
  padding-left: 28px;
  border-left: 3px solid var(--terracotta);
}
article.post strong { color: var(--ink); font-weight: 600; }
article.post a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }

/* Callout box */
.callout {
  background: var(--cream-deep);
  padding: 28px 32px;
  margin: 40px 0;
  border-left: 3px solid var(--terracotta);
}
.callout .tag {
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 10px;
}
.callout p { font-size: 15px !important; line-height: 1.6; margin: 0 !important; }

/* Step list */
.steps {
  margin: 40px 0;
  list-style: none !important;
  padding: 0 !important;
}
.steps li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li .n {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 36px;
  line-height: 1;
  color: var(--terracotta);
}
.steps li .body h4 {
  font-family: var(--font-serif);
  font-size: 20px;
  margin-bottom: 6px;
}
.steps li .body p {
  font-size: 15px !important;
  line-height: 1.55;
  margin: 0 !important;
}

/* Post navigation */
.post-nav {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.post-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
}
.post-nav a .label {
  display: block;
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.post-nav a .title {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.3;
}
.post-nav a.next { text-align: right; }

/* =========================================
   CARDS (blog, events)
   ========================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.cards.three { grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 860px) {
  .cards, .cards.three { grid-template-columns: 1fr; gap: 40px; }
}
.card a {
  display: block;
  color: inherit;
  text-decoration: none;
}
.card .crop { margin-bottom: 20px; }
.card .meta {
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.card .meta .dot {
  display: inline-block;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--muted);
  vertical-align: middle;
  margin: 0 8px;
}
.card h3 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.1;
  letter-spacing: -.015em;
  margin-bottom: 12px;
  transition: color .2s;
}
.card a:hover h3 { color: var(--terracotta); }
.card p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

/* Event list (larger, table-like) */
.event-list {
  border-top: 1px solid var(--ink);
}
.event {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
}
.event .date {
  font-family: var(--font-serif);
  text-align: center;
}
.event .date .d {
  font-size: 48px;
  font-style: italic;
  line-height: 1;
  color: var(--terracotta);
  display: block;
}
.event .date .m {
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
  margin-top: 8px;
  display: block;
  font-family: 'Inter', sans-serif;
}
.event .info h3 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.1;
  margin-bottom: 8px;
}
.event .info .where {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .05em;
  margin-bottom: 6px;
}
.event .info .where strong {
  color: var(--ink-soft);
  font-weight: 500;
}
.event .info p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-top: 6px;
  max-width: 55ch;
}
.event .price {
  text-align: right;
}
.event .price .amount {
  font-family: var(--font-serif);
  font-size: 24px;
  margin-bottom: 8px;
}
.event .price .note {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 12px;
}
@media (max-width: 720px) {
  .event { grid-template-columns: 70px 1fr; gap: 20px; }
  .event .price { grid-column: 1 / -1; text-align: left; padding-top: 8px; border-top: 1px dashed var(--rule); }
  .event .price .amount { display: inline-block; margin-right: 12px; }
  .event .date .d { font-size: 36px; }
}

/* =========================================
   REVEAL
   ========================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* =========================================
   FULL BLEED SECTION
   ========================================= */
.bleed {
  margin: 80px 0;
  padding: 100px 0;
  background: var(--blue-deep);
  color: var(--cream);
  overflow: hidden;
  position: relative;
}
.bleed::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(at 20% 30%, rgba(7, 123, 165, .55), transparent 60%),
    radial-gradient(at 80% 70%, rgba(191, 168, 136, .12), transparent 55%);
}
.bleed .wrap, .bleed .wrap-narrow { position: relative; z-index: 2; }
.bleed .eyebrow { color: var(--wheat); }
.bleed h2 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(36px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -.02em;
  margin-top: 28px;
  max-width: 18ch;
}
.bleed h2 .contrast {
  font-style: normal;
  color: var(--wheat);
}
.bleed p {
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.5;
  color: rgba(242, 236, 223, .82);
  margin-top: 28px;
  max-width: 46ch;
}
