/* Cowan's Cafe | shared styles
   Brand colors come from the logo files. */
:root {
  --navy: #27265f;
  --green: #355f3b;
  --white: #ffffff;
  --black: #000000;
  --lake: #e6eef2;      /* pale Lake Michigan tint for alternating sections */
  --text: #1c1b3a;      /* navy-leaning body text */
  --muted: #4c4b6e;
  --radius: 6px;
  --wrap: 1120px;
  --display: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --body: "Nunito Sans", "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: 64ch; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--lake { background: var(--lake); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--white); padding: .5rem 1rem; z-index: 10; }

/* ---------- Rope: the one signature element, pulled from the logo ---------- */
.rope {
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='14'%3E%3Cellipse cx='6.5' cy='7' rx='3.4' ry='7.4' transform='rotate(38 6.5 7)' fill='%23355f3b'/%3E%3Cpath d='M3 12 L10 2' stroke='%23284a2d' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
}

/* ---------- Header ---------- */
.site-header { background: var(--white); position: sticky; top: 0; z-index: 5; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .9rem 0; flex-wrap: wrap;
}
.brand img { width: 240px; }
.nav { display: flex; align-items: center; gap: .35rem 1.5rem; flex-wrap: wrap; }
.nav a {
  font-family: var(--display); font-weight: 600; font-size: 1.15rem;
  color: var(--navy); text-decoration: none; padding: .25rem 0;
  border-bottom: 3px solid transparent;
}
.nav a:hover { border-bottom-color: var(--green); color: var(--navy); }
.nav a[aria-current="page"] { border-bottom-color: var(--navy); }
.nav .call { color: var(--green); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--display); font-weight: 600;
  font-size: 1.1rem; padding: .7rem 1.4rem; border-radius: var(--radius);
  text-decoration: none; border: 2px solid var(--navy);
  background: var(--navy); color: var(--white);
}
.btn:hover { background: var(--green); border-color: var(--green); color: var(--white); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); border-color: var(--navy); }
.btn-row { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ---------- Home hero ---------- */
.hero { background: var(--lake); }
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center; padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.hero h1 { max-width: 15ch; }
.hero .lede { font-size: 1.2rem; color: var(--muted); }
.hero figure { margin: 0; }
.hero img { border-radius: var(--radius); border: 6px solid var(--white); box-shadow: 0 14px 30px -18px var(--navy); }

.hours-inline { margin-top: 1.25rem; font-weight: 700; color: var(--navy); }

/* ---------- Rename notice ---------- */
.rename { background: var(--green); color: var(--white); text-align: center; padding: .8rem 1rem; font-weight: 600; }
.rename p { margin: 0 auto; max-width: none; }

/* ---------- Three things we're known for ---------- */
.known { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }
.known img { border-radius: var(--radius); margin-bottom: 1rem; aspect-ratio: 4 / 3; object-fit: cover; }
.known p { color: var(--muted); }

/* ---------- Split rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split img { border-radius: var(--radius); }
.split--flip > :first-child { order: 2; }

/* ---------- Visit ---------- */
.visit { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2.5rem; align-items: start; }
.visit dl { margin: 0; }
.visit dt { font-family: var(--display); font-weight: 700; color: var(--navy); font-size: 1.2rem; margin-top: 1.2rem; }
.visit dt:first-child { margin-top: 0; }
.visit dd { margin: .2rem 0 0; }
.hours { border-collapse: collapse; }
.hours td { padding: .15rem 1.5rem .15rem 0; }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); }

/* ---------- Page header (menu, about) ---------- */
.page-head { background: var(--lake); text-align: center; padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem); }
.page-head p { margin-inline: auto; color: var(--muted); font-size: 1.15rem; }

/* ---------- Menu ---------- */
.menu-jump { display: flex; justify-content: center; gap: .6rem 1.5rem; flex-wrap: wrap; margin-top: 1.5rem; }
.menu-jump a { font-family: var(--display); font-weight: 600; color: var(--navy); }
.menu-section { padding: clamp(2.5rem, 6vw, 4rem) 0; scroll-margin-top: 110px; }
.menu-section + .menu-section { border-top: 1px solid #d5dde2; }
.menu-section > .wrap > p { color: var(--muted); }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 4rem; margin-top: 1.5rem; }
.item { padding: .9rem 0; }
.item-top { display: flex; align-items: baseline; gap: .5rem; }
.item-top h3 { margin: 0; font-size: 1.2rem; }
.item-top .leader { flex: 1; border-bottom: 2px dotted #9aa3b8; transform: translateY(-4px); }
.item-top .price { font-family: var(--display); font-weight: 700; color: var(--green); }
.item p { margin: .25rem 0 0; color: var(--muted); font-size: .98rem; }
.menu-note { text-align: center; font-size: .95rem; color: var(--muted); }
.menu-note p { margin-inline: auto; }

/* ---------- About timeline (a real sequence) ---------- */
.timeline { list-style: none; padding: 0; margin: 2rem 0 0; border-left: 3px solid var(--green); }
.timeline li { position: relative; padding: 0 0 2rem 1.75rem; }
.timeline li::before {
  content: ""; position: absolute; left: -9px; top: .45rem;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--navy);
}
.timeline .when { font-family: var(--display); font-weight: 700; color: var(--navy); font-size: 1.3rem; }
.timeline p { margin: .25rem 0 0; }

.quote {
  font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--navy);
  text-align: center; max-width: 26ch; margin: 0 auto; line-height: 1.3;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #dcdcf0; padding: 3.5rem 0 2rem; }
.site-footer .wrap { display: grid; grid-template-columns: auto 1fr 1fr; gap: 2.5rem; align-items: start; }
.site-footer img { width: 150px; }
.site-footer h2 { color: var(--white); font-size: 1.25rem; margin-bottom: .5rem; }
.site-footer a { color: var(--white); }
.site-footer p { margin: 0 0 .4rem; }
.site-footer .fine { grid-column: 1 / -1; max-width: none; border-top: 1px solid #45447a; padding-top: 1.25rem; font-size: .9rem; color: #b9b8d8; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap, .split, .visit, .menu-grid { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
  .known { grid-template-columns: 1fr; max-width: 480px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .menu-grid { gap: 0; }
}
@media (max-width: 560px) {
  .site-header { position: static; }
  .site-header .wrap { justify-content: center; }
  .brand img { width: 210px; }
  .nav { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
