/* ==========================================================================
   Piece of Heaven — base
   Tokens, reset, typography, frames, buttons, nav, footer, motion.
   Palette and mood come straight from the logo: pale ice blue, black
   hairlines, and a lot of air.
   ========================================================================== */

:root {
  /* --- color ------------------------------------------------------------ */
  --paper:      #FCFBF8;  /* warm gallery white — the dominant ground */
  --paper-warm: #F6F1E9;  /* cream break sections */
  --ice:        #DFF3F8;  /* THE brand color, straight from the logo */
  --ice-soft:   #EEF8FB;  /* large ice washes */
  --ice-deep:   #A9D4E0;  /* hairlines, underlines */
  --ink:        #14181C;  /* near-black, as in the logo mark */
  --ink-70:     #4A5257;  /* secondary copy */
  --ink-45:     #838C92;  /* captions, meta */
  --caramel:    #B8763A;  /* accent — sampled from the cinnamon glaze */
  --caramel-dk: #8E5A28;
  --rose:       #A8566B;  /* validation errors only */

  --line:       rgba(20, 24, 28, .12);
  --line-soft:  rgba(20, 24, 28, .07);

  /* --- type ------------------------------------------------------------- */
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans:  "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --fs-hero:    clamp(3rem, 10.5vw, 8.5rem);
  --fs-display: clamp(2.4rem, 6.5vw, 5rem);
  --fs-h2:      clamp(2rem, 4.6vw, 3.5rem);
  --fs-h3:      clamp(1.35rem, 2.2vw, 1.75rem);
  --fs-body:    1.0625rem;
  --fs-lead:    clamp(1.0625rem, 1.5vw, 1.3rem);
  --fs-eyebrow: .7rem;

  /* --- space ------------------------------------------------------------ */
  --gutter:  clamp(1rem, 5vw, 5rem);
  --section: clamp(5rem, 12vh, 10rem);
  --max:     1320px;
  --measure: 34rem;

  /* --- motion ----------------------------------------------------------- */
  --ease: cubic-bezier(.16, .84, .28, 1);
}

/* --- reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--caramel);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: 50%; top: -100px;
  transform: translateX(-50%);
  background: var(--ink); color: var(--paper);
  padding: .75rem 1.25rem; z-index: 200;
  text-decoration: none;
}
.skip:focus { top: .75rem; }

.sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- typography --------------------------------------------------------- */
h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.04;
}

.hero__title   { font-size: var(--fs-hero); }
.display       { font-size: var(--fs-display); line-height: 1.02; }
h2             { font-size: var(--fs-h2); }
h3             { font-size: var(--fs-h3); line-height: 1.2; }

em, .italic { font-style: italic; }

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: var(--fs-eyebrow);
  font-weight: 400;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--ink-45);
  margin-bottom: 1.75rem;
}
.eyebrow--ice { color: var(--ice-deep); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.7;
  color: var(--ink-70);
  max-width: var(--measure);
}

p + p { margin-top: 1.1em; }
h1 + p, h2 + p, h3 + p,
h1 + .lead, h2 + .lead, h3 + .lead { margin-top: 1.4rem; }

.meta {
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-45);
}

/* --- layout ------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); }
.section--ice   { background: var(--ice-soft); }
.section--cream { background: var(--paper-warm); }

.rule { height: 1px; background: var(--line); border: 0; }

/* --- frames (all photo treatment is CSS only) --------------------------- */
.frame {
  position: relative;
  overflow: hidden;
  background: var(--ice-soft);
  border-radius: 2px;
}
.frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* pulls phone-camera oversaturation back toward editorial */
  filter: saturate(.93) contrast(1.04);
  transition: transform 1.1s var(--ease);
}
/* film grain — unifies photos shot in different light into one set */
.frame::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .055;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
a.frame:hover img,
.frame--zoom:hover img { transform: scale(1.045); }

/* per-photo crops — chosen against each photo's real aspect ratio so the
   room, the couch, the oven and the table edge all fall outside the frame */
.crop-macro     { object-position: 50% 45%; }  /* 0.639 — glaze texture */
.crop-tray      { object-position: 50% 45%; }  /* 0.697 — full tray */
.crop-confeti   { object-position: 50% 58%; }  /* 0.97  — drops the dark wood */
.crop-roll      { object-position: 50% 50%; }  /* 0.872 — whole roll visible */
.crop-grad      { object-position: 50% 61%; }  /* 0.753 — cuts couch + chair */
.crop-macarons  { object-position: 50% 50%; }

/* --- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 1rem 1.9rem;
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background .4s var(--ease), color .4s var(--ease),
              border-color .4s var(--ease), transform .4s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--solid  { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--caramel); }

.btn--caramel { background: var(--caramel); color: #fff; }
.btn--caramel:hover { background: var(--caramel-dk); }

.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: transparent; }

.btn--sm { padding: .7rem 1.3rem; font-size: .7rem; }

/* quiet text link with an animated ice underline */
.tlink {
  display: inline-block;
  text-decoration: none;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--ice-deep);
  transition: border-color .4s var(--ease), color .4s var(--ease);
}
.tlink:hover { border-color: var(--caramel); color: var(--caramel); }

/* --- nav ---------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.1rem var(--gutter);
  background: transparent;
  transition: background .5s var(--ease), box-shadow .5s var(--ease),
              padding .5s var(--ease);
}
.nav.is-stuck {
  background: rgba(252, 251, 248, .92);
  backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 1px 0 var(--line-soft);
  padding-block: .7rem;
}
/* inner pages start with the nav already on paper */
.nav--solid {
  position: sticky;
  background: rgba(252, 251, 248, .92);
  backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 1px 0 var(--line-soft);
}

.nav__brand {
  display: block;
  margin-right: auto;
  flex: none;
  line-height: 0;
  transition: opacity .5s var(--ease);
}
.nav__logo {
  height: clamp(52px, 5.4vw, 72px);
  width: auto;
  transition: height .5s var(--ease);
}
.nav.is-stuck .nav__logo { height: clamp(44px, 4vw, 54px); }

/* home page: the hero carries the big logo, so the nav one waits until you
   scroll past it instead of showing the logo twice */
.nav--home:not(.is-stuck) .nav__brand { opacity: 0; pointer-events: none; }

.nav__links { display: flex; align-items: center; gap: 2.2rem; }
.nav__links a {
  text-decoration: none;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  position: relative;
  padding-block: .3rem;
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--caramel);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
  padding: 0;
}
.nav__burger span {
  display: block;
  width: 22px; height: 1px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav__burger { display: block; order: 3; }
  .nav__links {
    position: fixed; inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    background: var(--ice-soft);
    opacity: 0; visibility: hidden;
    transition: opacity .45s var(--ease), visibility .45s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; }
  .nav__links a { font-size: 1rem; letter-spacing: .28em; }
  .nav .btn { font-size: .68rem; padding: .6rem 1.1rem; }
}
@media (max-width: 420px) {
  .nav { gap: .9rem; }
  .nav .btn { padding: .55rem .95rem; letter-spacing: .14em; }
}

/* --- footer ------------------------------------------------------------- */
.footer {
  background: var(--ice-soft);
  padding-block: clamp(3.5rem, 8vh, 6rem) 2rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}
.footer__logo { width: clamp(180px, 20vw, 240px); height: auto; }
.footer__contact { display: grid; gap: .9rem; justify-items: start; }
.footer__contact a {
  text-decoration: none;
  display: inline-flex; align-items: center; gap: .6rem;
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease);
}
.footer__contact a:hover { border-color: var(--ice-deep); }
.footer__bottom {
  margin-top: 3.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between;
  font-size: .72rem; letter-spacing: .1em;
  color: var(--ink-45);
}
@media (max-width: 720px) {
  .footer__top { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* --- reveal motion ------------------------------------------------------ */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* the site is intentionally light — never invert it */
@media (prefers-color-scheme: dark) {
  :root { color-scheme: light; }
}
