/* Vintage stationery palette — cream paper, sage, dusty rose, terracotta, navy ink, kraft */
:root {
  --paper: #f6f0e4;
  --card: #fbf8f1;
  --kraft: #dcc7a4;
  --sage: #7f8c68;
  --olive: #5d6a4b;
  --rose: #d6a092;
  --terracotta: #b5654a;
  --navy: #2f3a4b;
  --mustard: #c6a250;
  --ink: #3d342b;
  --soft: #7b6f62;
  --line: #e2d7c3;

  --hand: "Kalam", "Bradley Hand", cursive;
  --label: "Patrick Hand SC", "Kalam", cursive;
  --note: "Caveat", cursive;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font: 300 19px/1.7 var(--hand);
  /* soft paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .28 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--hand); font-weight: 300; line-height: 1.15; margin: 0; }

.wrap { max-width: 1080px; margin: 0 auto; padding-inline: clamp(20px, 5vw, 48px); }

/* small hand-printed label, like the INK / SKETCH tags */
.label {
  font-family: var(--label);
  font-size: .95rem;
  letter-spacing: .18em;
  color: var(--sage);
}

/* paintings melt into the paper */
.paint { mix-blend-mode: multiply; }

/* washi tape */
.tape {
  position: absolute;
  width: 84px;
  height: 22px;
  background: rgba(214, 160, 146, .55);
  background-image: radial-gradient(rgba(255,255,255,.55) 1.2px, transparent 1.6px);
  background-size: 8px 8px;
  z-index: 2;
}
.tape--sage { background-color: rgba(127, 140, 104, .45); }
.tape--kraft { background-color: rgba(198, 162, 80, .4); }

/* ink splashes & watercolour marks — sit behind the paintings, which multiply over them */
.splash { position: absolute; filter: url(#bleed); pointer-events: none; z-index: 0; }
.splash--orange { color: #c9773f; opacity: .32; }
.splash--green { color: #7f8c68; opacity: .32; }
.splash--rose { color: #d6a092; opacity: .4; }
.wash {
  position: absolute;
  border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  filter: blur(14px);
  pointer-events: none;
  z-index: 0;
}
.wash--sage { background: rgba(127, 140, 104, .22); }
.wash--rose { background: rgba(214, 160, 146, .28); }
.wash--mustard { background: rgba(198, 162, 80, .22); }
.paint { position: relative; z-index: 1; }

/* pencil-texture filter applied to doodles */
.doodle { filter: url(#pencil); }

/* ---------- nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 28px;
}
.logo { position: relative; font-family: var(--hand); font-weight: 400; font-size: 1.6rem; }
.logo span { position: relative; z-index: 1; }
.logo .splash--orange { width: 78px; left: -26px; top: -26px; opacity: .3; }
.logo .splash--green { width: 92px; left: 70px; top: -18px; opacity: .26; transform: rotate(160deg); }
.logo em { font-style: normal; color: var(--terracotta); }
.links { display: flex; gap: clamp(18px, 4vw, 40px); }
.links a { font-family: var(--label); letter-spacing: .16em; font-size: 1rem; color: var(--soft); transition: color .2s; }
.links a:hover, .links a.is-current { color: var(--ink); }
.links a.is-current { border-bottom: 1.5px solid var(--rose); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding-block: clamp(30px, 6vw, 70px) clamp(70px, 10vw, 120px);
}
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4rem); margin: 10px 0 18px; }
.hero h1 span { color: var(--terracotta); }
.hero p { color: var(--soft); max-width: 25em; margin: 0 0 30px; }
.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--label);
  letter-spacing: .16em;
  font-size: 1rem;
  padding: 12px 26px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  transition: background .25s, color .25s;
}
.cta:hover { background: var(--ink); color: var(--card); }
.cta--quiet { border-color: transparent; color: var(--soft); padding-inline: 8px; }
.cta--quiet:hover { background: none; color: var(--terracotta); }

.hero-art { position: relative; justify-self: center; width: min(100%, 380px); }
.hero-art .tape { top: -8px; left: 50%; transform: translateX(-50%) rotate(-3deg); }
.hero-art .sprig { position: absolute; width: 74px; left: -48px; bottom: 10px; transform: rotate(-12deg); }
.hero-note {
  position: absolute;
  right: -10px;
  bottom: -38px;
  font-family: var(--note);
  font-size: 1.35rem;
  color: var(--soft);
  transform: rotate(-3deg);
}

/* ---------- divider ---------- */
.divider { display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--line); }
.divider::before, .divider::after { content: ""; height: 1px; width: min(28%, 220px); background: var(--line); }
.divider svg { width: 46px; }

/* ---------- journal ---------- */
.section { padding-block: clamp(60px, 9vw, 110px); }
.head { text-align: center; margin-bottom: clamp(36px, 6vw, 60px); }
.head h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-top: 6px; }

.journal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 44px);
}
.entry { margin: 0; text-align: center; }
.entry .frame { position: relative; height: clamp(200px, 22vw, 250px); display: flex; align-items: center; justify-content: center; }
.entry img { max-height: 100%; max-width: 100%; width: auto; }
.entry figcaption { margin-top: 12px; }
.entry b { display: block; font-weight: 400; font-size: 1.15rem; }
.entry small { font-family: var(--label); letter-spacing: .16em; color: var(--sage); font-size: .85rem; }

/* ---------- quote ---------- */
.quote { text-align: center; }
.quote blockquote {
  margin: 0 auto;
  max-width: 640px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.5;
  color: var(--ink);
}
.quote cite { display: block; margin-top: 14px; font-style: normal; font-family: var(--note); font-size: 1.5rem; color: var(--terracotta); }
.quote .ink { width: 46px; margin: 0 auto 22px; }

/* ---------- shop ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 3vw, 32px); }
.stamp {
  position: relative;
  display: block;
  background: var(--card);
  padding: 16px 16px 20px;
  text-align: center;
  /* perforated postage-stamp edge */
  -webkit-mask:
    radial-gradient(circle at center, transparent 4px, #000 4.5px) -7px -7px / 14px 14px repeat,
    linear-gradient(#000 0 0) 7px 7px / calc(100% - 14px) calc(100% - 14px) no-repeat;
          mask:
    radial-gradient(circle at center, transparent 4px, #000 4.5px) -7px -7px / 14px 14px repeat,
    linear-gradient(#000 0 0) 7px 7px / calc(100% - 14px) calc(100% - 14px) no-repeat;
  filter: drop-shadow(0 1px 1px rgba(61, 52, 43, .08));
  transition: transform .3s ease;
}
.stamp:hover { transform: translateY(-4px) rotate(-.6deg); }
.stamp .pic { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: var(--paper); border: 1px solid var(--line); margin-bottom: 14px; overflow: hidden; }
.stamp .pic img { max-height: 88%; max-width: 88%; width: auto; height: auto; }
.stamp b { display: block; font-weight: 400; font-size: 1.2rem; line-height: 1.3; }
.stamp small { font-family: var(--label); letter-spacing: .14em; color: var(--soft); font-size: .82rem; }
.stamp .price { display: block; font-family: var(--note); color: var(--terracotta); font-size: 1.35rem; margin-top: 2px; }

.shop-more { text-align: center; margin-top: 44px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); margin-top: 40px; padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
footer .sign { font-family: var(--note); font-size: 1.5rem; color: var(--terracotta); }
footer .links a { font-size: .9rem; }
footer small { width: 100%; color: var(--soft); font-size: .9rem; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-inline: auto; }
  .hero-art { width: min(80%, 320px); margin-top: 10px; }
  .journal { grid-template-columns: 1fr 1fr; }
  .shop-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .links { gap: 14px; }
  .links a { font-size: .85rem; letter-spacing: .1em; }
  .journal { grid-template-columns: 1fr; }
}

/* ==========================================================
   Intro (home)
   ========================================================== */
.intro { text-align: center; padding-bottom: 0; }
.intro-card { position: relative; max-width: 680px; margin: 0 auto; }
.intro-card > *:not(.splash):not(.wash) { position: relative; z-index: 1; }
.intro h2 { font-size: clamp(2rem, 4vw, 2.6rem); margin: 6px 0 18px; }
.intro h2 span { color: var(--terracotta); }
.intro p { font-size: 1.12rem; margin: 0 0 1em; }
.intro .smile { font-family: var(--note); font-size: 1.4rem; color: var(--terracotta); }
.intro .invite { font-family: var(--note); font-size: 1.6rem; color: var(--olive); margin-top: 6px; }
.socials { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }

/* ==========================================================
   Shop page
   ========================================================== */
.nav-right { display: flex; align-items: center; gap: clamp(18px, 4vw, 40px); }
.cart-btn {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--label);
  letter-spacing: .16em;
  font-size: 1rem;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cart-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--terracotta);
  color: var(--card);
  font-family: var(--hand);
  font-size: .8rem;
  letter-spacing: 0;
  display: inline-grid;
  place-items: center;
}

.shop-intro { text-align: center; padding-block: clamp(30px, 5vw, 60px) 10px; }
.shop-intro h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin: 8px 0 14px; }
.shop-intro p { color: var(--soft); max-width: 34em; margin: 0 auto; }

.filters { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; margin: 34px 0 10px; }
.filter {
  background: none;
  border: 0;
  border-bottom: 1.5px solid transparent;
  padding: 4px 2px;
  cursor: pointer;
  font-family: var(--label);
  letter-spacing: .16em;
  font-size: 1rem;
  color: var(--soft);
}
.filter:hover { color: var(--ink); }
.filter.is-active { color: var(--ink); border-bottom-color: var(--rose); }

.cat { padding-block: 40px 20px; }
.cat[hidden] { display: none; }
.cat-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 30px; }
.cat-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.3rem); }
.cat-head p { margin: 0; color: var(--soft); font-size: 1rem; }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: clamp(20px, 3vw, 32px); }
.products .stamp { display: flex; flex-direction: column; text-align: center; }
.products .stamp:hover { transform: none; }
.products .stamp .pic { position: relative; }
.products .stamp .place { display: block; font-family: var(--label); letter-spacing: .14em; color: var(--sage); font-size: .8rem; margin-top: 2px; }
.sizes { display: flex; justify-content: center; gap: 6px; margin: 12px 0 4px; }
.size {
  background: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2px 10px;
  cursor: pointer;
  font-family: var(--label);
  letter-spacing: .1em;
  font-size: .85rem;
  color: var(--soft);
}
.size.is-active { border-color: var(--ink); color: var(--ink); }
.size-note { display: block; color: var(--soft); font-size: .8rem; min-height: 1.4em; }
.buy { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.buy .price { margin: 0; }
.add {
  background: none;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  padding: 6px 14px;
  cursor: pointer;
  font-family: var(--label);
  letter-spacing: .14em;
  font-size: .85rem;
  color: var(--ink);
  transition: background .2s, color .2s;
}
.add:hover { background: var(--ink); color: var(--card); }
.add.is-added { background: var(--sage); border-color: var(--sage); color: var(--card); }

.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; text-align: center; }
.notes h3 { font-size: 1.35rem; font-weight: 400; margin-bottom: 6px; }
.notes p { color: var(--soft); font-size: 1rem; margin: 0; }

/* ---------- cart drawer ---------- */
.backdrop { position: fixed; inset: 0; background: rgba(61, 52, 43, .35); z-index: 40; }
.backdrop[hidden] { display: none; }
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(400px, 100%);
  z-index: 41;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 24px calc(24px + env(safe-area-inset-bottom, 0px));
  box-shadow: -8px 0 30px rgba(61, 52, 43, .15);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .35s ease, visibility 0s linear .35s;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform .35s ease; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.drawer-head h2 { font-size: 1.8rem; }
.drawer-close { background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--soft); }
.drawer-items { flex: 1; overflow-y: auto; }
.drawer-empty { text-align: center; color: var(--soft); font-family: var(--note); font-size: 1.5rem; margin-top: 50px; }
.line { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line img { width: 58px; height: 58px; object-fit: cover; mix-blend-mode: multiply; }
.line b { display: block; font-weight: 400; font-size: 1rem; line-height: 1.3; }
.line small { font-family: var(--label); letter-spacing: .12em; color: var(--soft); font-size: .78rem; }
.qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; }
.qty button { width: 22px; height: 22px; border: 1px solid var(--line); background: var(--card); border-radius: 50%; cursor: pointer; line-height: 1; color: var(--ink); }
.line-price { font-family: var(--note); font-size: 1.25rem; color: var(--terracotta); }
.drawer-foot { border-top: 1.5px solid var(--ink); padding-top: 14px; }
.total { display: flex; justify-content: space-between; font-size: 1.15rem; }
.total span:last-child { font-family: var(--note); font-size: 1.5rem; color: var(--terracotta); }
.drawer-foot small { display: block; color: var(--soft); font-size: .85rem; margin-bottom: 14px; }
.drawer-foot .cta { width: 100%; justify-content: center; background: var(--ink); color: var(--card); cursor: pointer; }
.drawer-foot .cta:hover { background: var(--terracotta); border-color: var(--terracotta); }
.drawer-foot .cta:disabled { opacity: .4; cursor: not-allowed; }
.drawer-msg { margin-top: 14px; padding: 12px 14px; background: var(--card); border-left: 3px solid var(--rose); font-size: .95rem; }
.drawer-msg[hidden] { display: none; }
.drawer-msg a { text-decoration: underline; }

@media (max-width: 820px) {
  .notes { grid-template-columns: 1fr; }
}

.shop-grid--three { grid-template-columns: repeat(3, 1fr); max-width: 820px; margin: 0 auto; }
@media (max-width: 820px) { .shop-grid--three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .shop-grid--three { grid-template-columns: 1fr; max-width: 300px; } }

/* ==========================================================
   Hero panorama (home) — the signature café painting first
   ========================================================== */
.hero-wide { padding-bottom: clamp(60px, 9vw, 110px); }
.pano {
  position: relative;
  max-width: 1140px;
  margin: 8px auto 0;
  padding-inline: clamp(12px, 3vw, 30px);
}
.pano img {
  width: 100%;
  height: auto;
  /* feather all four edges into the paper */
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 4%, #000 96%, transparent),
    linear-gradient(to bottom, transparent, #000 5%, #000 94%, transparent);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to right, transparent, #000 4%, #000 96%, transparent),
    linear-gradient(to bottom, transparent, #000 5%, #000 94%, transparent);
          mask-composite: intersect;
}
.pano .hero-note { right: clamp(16px, 4vw, 40px); bottom: -34px; }
.hero-wide .hero-text { text-align: center; margin-top: clamp(50px, 7vw, 80px); }
.hero-wide h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); margin: 10px 0 16px; }
.hero-wide p { color: var(--soft); max-width: 31em; margin: 0 auto 28px; }

/* "Watercolor" — a loose rose wash behind the word, like a brush highlight */
.hl { position: relative; isolation: isolate; color: var(--terracotta); white-space: nowrap; }
.hl::before {
  content: "";
  position: absolute;
  left: -.12em; right: -.12em;
  bottom: .08em;
  height: .48em;
  background: rgba(214, 160, 146, .45);
  border-radius: 40% 60% 45% 55% / 60% 40% 60% 40%;
  transform: rotate(-1.5deg);
  filter: url(#bleed);
  z-index: -1;
}

/* three little ink bottles above the quote */
.inks { display: flex; justify-content: center; align-items: flex-end; gap: 10px; margin-bottom: 22px; }
.inks .ink { width: 46px; margin: 0; }
.inks .ink--red { width: 34px; transform: rotate(-8deg); }
.inks .ink--yellow { width: 36px; transform: rotate(7deg); }

/* fixed-size products (long postcard, zine): their measurements */
.products .spec { display: block; margin: 12px 0 2px; font-family: var(--label); letter-spacing: .1em; font-size: .85rem; color: var(--ink); }

/* ---------- shop "coming soon" mode ---------- */
.soon-note { display: none; }
.is-coming-soon .soon-note {
  display: block;
  max-width: 520px;
  margin: 26px auto 0;
  padding: 16px 22px;
  border: 1px dashed var(--kraft);
  background: var(--card);
}
.is-coming-soon .soon-note p { margin: 4px 0 0; font-size: 1rem; }
.soon-note a { color: var(--terracotta); border-bottom: 1px solid var(--rose); }
.is-coming-soon .cart-btn,
.is-coming-soon .drawer,
.is-coming-soon .backdrop { display: none !important; }
.soon-tag {
  font-family: var(--label);
  letter-spacing: .14em;
  font-size: .82rem;
  color: var(--sage);
  border: 1px dashed var(--sage);
  border-radius: 3px;
  padding: 5px 12px;
}
