/* ============================================================
   Kettle & Fern — one-page neighbourhood coffee shop
   Fully static. Nothing on this site changes unless a human
   edits these files.
   ============================================================ */

:root {
  --paper:      #f4ecdd;
  --paper-deep: #ede0c8;
  --ink:        #23271f;
  --pine:       #2e4b3f;
  --pine-deep:  #223a30;
  --rust:       #c05f2e;
  --rust-deep:  #a34e24;
  --sand:       #e6d7ba;
  --sage:       #9aa98f;

  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Karla", "Helvetica Neue", sans-serif;

  --gutter: clamp(1.25rem, 5vw, 5rem);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--pine); color: var(--paper); }

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

/* ============ top bar ============ */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--gutter);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--pine);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: .01em;
}

.nav { display: flex; gap: 1.75rem; }

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: .15rem;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s cubic-bezier(.65, 0, .35, 1);
}

.nav a:hover::after,
.nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

/* ============ hero ============ */
.hero {
  padding: clamp(3rem, 9vh, 6.5rem) var(--gutter) clamp(3.5rem, 10vh, 7rem);
  position: relative;
  max-width: 75rem;
}

.hero-kicker {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1.75rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 420;
  font-size: clamp(2.9rem, 8.2vw, 6.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--pine-deep);
}

.hero-title .line { display: block; }

.hero-title em {
  font-style: italic;
  font-weight: 340;
  color: var(--rust);
}

.hero-sub {
  max-width: 34rem;
  margin-top: 2rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: #4a4d42;
}

.hero-cta {
  display: inline-block;
  margin-top: 2.25rem;
  padding: .95rem 2rem;
  background: var(--pine);
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background .3s ease, transform .3s ease, box-shadow .3s ease;
  box-shadow: 0 10px 24px -12px rgba(35, 39, 31, .5);
}

.hero-cta:hover,
.hero-cta:focus-visible {
  background: var(--rust);
  transform: translateY(-2px);
  box-shadow: 0 16px 28px -12px rgba(35, 39, 31, .55);
}

.hero-note {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(2rem, 6vh, 4rem);
  font-family: var(--font-display);
  font-style: italic;
  font-size: .95rem;
  color: var(--sage);
  text-align: right;
  max-width: 12rem;
  line-height: 1.5;
}

/* entrance choreography */
.reveal { animation: rise .9s cubic-bezier(.22, 1, .36, 1) both; }
.hero-kicker.reveal   { animation-delay: .05s; }
.hero-title .line:nth-child(1) { animation-delay: .15s; }
.hero-title .line:nth-child(2) { animation-delay: .28s; }
.hero-title .line:nth-child(3) { animation-delay: .41s; }
.hero-sub.reveal      { animation-delay: .55s; }
.hero-cta.reveal      { animation-delay: .68s; }
.hero-note.reveal     { animation-delay: .8s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .ticker-track { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ============ ticker strip ============ */
.ticker {
  background: var(--pine);
  color: var(--paper);
  overflow: hidden;
  padding: .85rem 0;
  transform: rotate(-.6deg) scale(1.02);
  border-block: 3px solid var(--pine-deep);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  white-space: nowrap;
  animation: drift 32s linear infinite;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: .02em;
}

.ticker-track i {
  font-style: normal;
  color: var(--rust);
  font-size: .8rem;
}

@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ menu ============ */
.menu {
  padding: clamp(4.5rem, 12vh, 8rem) var(--gutter);
  max-width: 75rem;
}

.section-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: end;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 420;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--pine-deep);
  max-width: 22ch;
}

.section-title em { font-style: italic; color: var(--rust); font-weight: 340; }

.section-aside {
  justify-self: end;
  text-align: right;
  font-size: .95rem;
  color: #55584c;
  font-style: italic;
}

.menu-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(2.5rem, 6vw, 6rem);
}

.item {
  padding: 1.3rem .25rem 1.35rem;
  border-bottom: 1px solid #d8c9ab;
  transition: background .25s ease, padding .25s ease;
}

.item:hover { background: rgba(230, 215, 186, .45); padding-left: .85rem; padding-right: .85rem; }

.item-top {
  display: flex;
  align-items: baseline;
  gap: .75rem;
}

.item h3 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.3rem;
  color: var(--ink);
}

.dots {
  flex: 1;
  border-bottom: 2px dotted #bfae8a;
  transform: translateY(-4px);
}

.price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--rust);
}

.desc {
  margin-top: .3rem;
  font-size: .95rem;
  color: #55584c;
  max-width: 42ch;
}

.menu-foot {
  margin-top: 2.5rem;
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sage);
}

/* ============ visit ============ */
.visit {
  background: var(--pine);
  color: var(--paper);
  padding: clamp(4rem, 11vh, 7.5rem) var(--gutter);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.panel {
  background: rgba(244, 236, 221, .06);
  border: 1px solid rgba(244, 236, 221, .22);
  border-radius: 14px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
}

.hours-panel { grid-column: 1 / span 4; }

.panel-title {
  font-family: var(--font-display);
  font-weight: 480;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  margin-bottom: 1.4rem;
  color: var(--sand);
}

.hours-table { width: 100%; border-collapse: collapse; }

.hours-table th,
.hours-table td {
  padding: .7rem 0;
  border-bottom: 1px solid rgba(244, 236, 221, .18);
  font-size: 1rem;
}

.hours-table th {
  text-align: left;
  font-weight: 500;
  color: rgba(244, 236, 221, .85);
}

.hours-table td {
  text-align: right;
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.1rem;
  color: #fff;
}

.hours-table tr:last-child th,
.hours-table tr:last-child td { border-bottom: none; }

.panel-note {
  margin-top: 1.4rem;
  font-size: .92rem;
  line-height: 1.65;
  color: rgba(244, 236, 221, .68);
}

/* photo */
.photo-panel {
  grid-column: 5 / span 5;
  margin-top: clamp(-3rem, -4vw, -1.5rem);
}

.photo-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 6px solid var(--paper);
  box-shadow: 0 30px 60px -25px rgba(15, 25, 20, .65);
  transform: rotate(1.2deg);
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}

.photo-frame:hover { transform: rotate(0deg) scale(1.015); }

.photo-frame svg { display: block; width: 100%; height: auto; }

figcaption {
  margin-top: 1rem;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: rgba(244, 236, 221, .72);
}

/* address */
.address-panel { grid-column: 10 / span 3; }

.address-panel address {
  font-style: normal;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.55;
  color: #fff;
}

.address-panel address strong { color: var(--sand); font-weight: 600; }

.panel-contact { margin-top: 1.4rem; font-size: .95rem; }

.panel-contact a {
  color: var(--paper);
  text-decoration-color: rgba(244, 236, 221, .4);
  text-underline-offset: 3px;
}

.panel-contact a:hover { color: var(--sand); }

.map-link {
  display: inline-block;
  margin-top: 1.6rem;
  padding: .7rem 1.5rem;
  border: 1.5px solid var(--sand);
  color: var(--sand);
  border-radius: 999px;
  text-decoration: none;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background .3s ease, color .3s ease;
}

.map-link:hover,
.map-link:focus-visible { background: var(--sand); color: var(--pine-deep); }

/* ============ footer ============ */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  padding: 2.25rem var(--gutter);
  border-top: 1px solid #d8c9ab;
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--pine);
}

.footer-line { font-size: .9rem; color: #55584c; margin-top: .2rem; }

.footer-note {
  text-align: right;
  font-size: .85rem;
  color: var(--sage);
  font-style: italic;
  line-height: 1.6;
}

/* ============ responsive ============ */
@media (max-width: 62rem) {
  .visit { grid-template-columns: 1fr 1fr; }
  .hours-panel   { grid-column: 1 / -1; }
  .photo-panel   { grid-column: 1 / -1; margin-top: 0; }
  .address-panel { grid-column: 1 / -1; }
  .photo-frame { max-width: 34rem; margin-inline: auto; }
  .hero-note { position: static; margin-top: 2.5rem; text-align: left; max-width: none; }
}

@media (max-width: 44rem) {
  .section-head { grid-template-columns: 1fr; }
  .section-aside { justify-self: start; text-align: left; }
  .menu-list { grid-template-columns: 1fr; }
  .visit { grid-template-columns: 1fr; }
  .footer { flex-direction: column; align-items: flex-start; }
  .footer-note { text-align: left; }
  .nav { gap: 1.1rem; }
}
