/* Gigglefeet — warm paper, ink, and far too much orange */

:root {
  --paper: #f6f0e2;
  --paper-deep: #efe6d2;
  --ink: #211a13;
  --ink-soft: #5c5245;
  --orange: #e0721f;
  --orange-deep: #b95a12;
  --sun: #f5b942;
  --teal: #2f7f7a;
  --card: #fffdf6;
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Karla", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--orange); color: #fff; }

img { display: block; max-width: 100%; }

/* film grain over everything */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .07;
  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='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items: center;
  padding: 4rem clamp(1.25rem, 6vw, 5rem) 5rem;
  overflow: hidden;
}

#paws { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.hero-inner { position: relative; z-index: 2; }

.eyebrow {
  font-size: .8rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--orange-deep); font-weight: 700; margin-bottom: 1rem;
}

.hero h1 {
  font-family: "Fraunces", serif; font-weight: 900;
  font-size: clamp(3.5rem, 11vw, 8.5rem);
  line-height: .95; letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: balance;
}

.hero h1::after {
  content: ""; display: block; width: 2.2em; height: .12em;
  background: var(--orange); border-radius: 99px; margin-top: .25em;
}

.tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  color: var(--ink-soft); max-width: 34ch; margin: 1.4rem 0 2rem;
}

.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: .85rem 1.7rem; border-radius: 99px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  font-weight: 700; transition: transform .2s ease, background .2s ease;
}
.btn:hover { background: var(--orange-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.mascot { position: relative; z-index: 2; text-align: center; }
.mascot img {
  width: min(100%, 430px); margin-inline: auto;
  border-radius: 26px; border: 6px solid var(--card);
  box-shadow: 0 30px 60px -20px rgba(33,26,19,.35);
  transform: rotate(2deg);
}
.mascot figcaption { margin-top: .9rem; font-style: italic; color: var(--ink-soft); font-size: .95rem; }

.scroll-hint {
  position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%);
  font-size: .85rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft); animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* ---------- marquee ---------- */
.marquee {
  background: var(--ink); color: var(--sun);
  overflow: hidden; white-space: nowrap; padding: .85rem 0;
  transform: rotate(-1.2deg) scale(1.02);
}
.marquee-track { display: inline-block; animation: slide 28s linear infinite; }
.marquee span {
  font-family: "Fraunces", serif; font-style: italic; font-size: 1.15rem;
  padding: 0 1.1rem;
}
.marquee i { color: var(--orange); font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- section scaffolding ---------- */
section { padding: clamp(4rem, 9vw, 7rem) clamp(1.25rem, 6vw, 5rem); }
.section-title {
  font-family: "Fraunces", serif; font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05;
  letter-spacing: -.01em; margin-bottom: .6rem;
}
.section-title em { color: var(--orange-deep); }
.section-title.light { color: var(--paper); }
.section-sub { color: var(--ink-soft); max-width: 60ch; margin-bottom: 2.2rem; font-size: 1.05rem; }

/* ---------- trinity cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; margin-top: 2.4rem; }
.card {
  background: var(--card); border-radius: var(--radius);
  padding: 2rem 1.8rem; border: 1px solid rgba(33,26,19,.08);
  box-shadow: 0 18px 40px -24px rgba(33,26,19,.3);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px) rotate(-.5deg); box-shadow: 0 28px 50px -24px rgba(185,90,18,.4); }
.card-no {
  font-family: "Fraunces", serif; font-weight: 900; font-size: 2.6rem;
  color: var(--orange); opacity: .85; line-height: 1; margin-bottom: .8rem;
}
.card h3 { font-family: "Fraunces", serif; font-size: 1.45rem; margin-bottom: .6rem; }
.card p { color: var(--ink-soft); }

/* ---------- field log ---------- */
.field-log { padding-left: 0; padding-right: 0; }
.banner { position: relative; }
.banner img { width: 100%; height: clamp(320px, 55vw, 560px); object-fit: cover; }
.banner-caption {
  position: absolute; inset: auto 0 0 0; padding: 4rem clamp(1.25rem, 6vw, 5rem) 2.2rem;
  background: linear-gradient(transparent, rgba(20,14,8,.78)); color: var(--paper);
}
.banner-caption p { color: #f3e9d4; max-width: 52ch; }

.postcards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.6rem; padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 6vw, 5rem) 0;
}
.postcard {
  position: relative; background: var(--card); border-radius: 12px;
  padding: 2.6rem 1.6rem 1.6rem; border: 1px solid rgba(33,26,19,.1);
  box-shadow: 0 20px 44px -26px rgba(33,26,19,.35);
  transition: transform .25s ease;
}
.postcard:hover { transform: rotate(0deg) scale(1.03) !important; z-index: 3; }
.tilt-l { transform: rotate(-1.6deg); }
.tilt-r { transform: rotate(1.6deg); }
.stamp {
  position: absolute; top: -14px; right: 18px;
  background: var(--teal); color: #fff; font-weight: 700; font-size: .8rem;
  letter-spacing: .12em; padding: .45rem .7rem; border-radius: 4px;
  border: 2px dashed rgba(255,255,255,.75);
  box-shadow: 0 6px 14px -6px rgba(33,26,19,.4);
}
.postcard h3 { font-family: "Fraunces", serif; font-size: 1.5rem; margin-bottom: .5rem; }
.postcard .entry { color: var(--ink-soft); margin-bottom: 1rem; }
.exif {
  font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange-deep); font-weight: 700;
  border-top: 1px dashed rgba(33,26,19,.2); padding-top: .8rem;
}

/* ---------- ask the cat ---------- */
.ask { background: var(--paper-deep); }
.chat {
  max-width: 720px; background: var(--card); border-radius: var(--radius);
  border: 1px solid rgba(33,26,19,.1); overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(33,26,19,.4);
}
.chat-log { padding: 1.6rem; display: flex; flex-direction: column; gap: .9rem; max-height: 380px; overflow-y: auto; }
.msg { max-width: 82%; padding: .8rem 1.1rem; border-radius: 16px; line-height: 1.5; }
.msg.cat { background: #f3e7cf; border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.cat p::before { content: "🐾 "; }
.msg.human { background: var(--ink); color: var(--paper); border-bottom-right-radius: 4px; align-self: flex-end; }
.msg.typing p { letter-spacing: .3em; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.chat-input { display: flex; border-top: 1px solid rgba(33,26,19,.12); }
.chat-input input {
  flex: 1; border: 0; background: transparent; padding: 1.1rem 1.4rem;
  font: inherit; color: var(--ink); outline: none;
}
.chat-input button {
  border: 0; background: var(--orange); color: #fff; font: inherit; font-weight: 700;
  padding: 0 1.8rem; cursor: pointer; transition: background .2s;
}
.chat-input button:hover { background: var(--orange-deep); }

/* ---------- footer ---------- */
footer {
  background: var(--ink); color: var(--paper);
  text-align: center; padding: 4rem 1.5rem 3rem;
}
.foot-big { font-family: "Fraunces", serif; font-style: italic; font-size: clamp(1.4rem, 3.4vw, 2.2rem); margin-bottom: 1.4rem; }
.foot-small { color: #b9ac93; font-size: .9rem; line-height: 1.8; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 3rem; text-align: center; }
  .hero h1::after { margin-inline: auto; }
  .tagline { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .mascot img { width: min(78vw, 340px); }
}
