:root {
  --navy: #173b4f;
  --navy-dark: #0e2b3a;
  --coastal: #dcecf1;
  --coastal-deep: #c5dfe8;
  --coral: #dc5f45;
  --coral-dark: #b94733;
  --cream: #f4eedf;
  --paper: #fffdf7;
  --ink: #172129;
  --muted: #59636a;
  --line: rgba(23, 33, 41, 0.16);
  --shadow: 0 20px 60px rgba(11, 35, 47, 0.15);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #ffca60;
  outline-offset: 4px;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  background: white;
  color: var(--navy-dark);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  color: white;
  background: linear-gradient(to bottom, rgba(9, 30, 41, 0.85), transparent);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(14, 43, 58, 0.97);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 64px;
  height: 46px;
  object-fit: contain;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 4px;
  background: white;
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 23px);
}

.brand-copy small {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 800;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:not(.nav-order):hover {
  color: #ffd6ca;
}

.nav-order {
  padding: 11px 17px;
  border-radius: 999px;
  background: var(--coral);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
}

.nav-order:hover {
  background: #f07258;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  color: white;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: min(800px, 92vh);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: white;
  background: var(--navy-dark);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/landing-store-front.jpg");
  background-position: 62% 47%;
  background-size: cover;
  transform: scale(1.015);
  filter: brightness(1.09) contrast(1.04) saturate(1.06);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(6, 24, 32, 0.87) 0%, rgba(8, 31, 40, 0.62) 40%, transparent 76%),
    linear-gradient(0deg, rgba(8, 31, 40, 0.5), transparent 24%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 150px 120px;
}

.heritage-mark {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.maine-flag {
  width: 78px;
  height: 52px;
  flex-shrink: 0;
  border: 2px solid var(--cream);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
  transform: rotate(-4deg);
}

.heritage-line {
  margin: 0;
  color: #ffe1ad;
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.05;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.heritage-line span {
  display: block;
  margin-top: 8px;
  color: white;
  font-family: var(--sans);
  font-size: 0.46em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 18px;
  color: #ffd2c7;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow.ink {
  color: var(--navy);
}

.eyebrow.coral {
  color: var(--coral);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.02;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(58px, 8vw, 108px);
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-lede {
  max-width: 620px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.87);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
}

.hero-actions,
.visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border: 2px solid transparent;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary,
.button-coral {
  background: var(--coral);
  color: white;
}

.button-primary:hover,
.button-coral:hover {
  background: var(--coral-dark);
}

.doordash-mark {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: white;
  color: #e3422f;
  font-size: 12px;
  font-weight: 950;
}

.button-light {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  backdrop-filter: blur(5px);
}

.button-light:hover {
  background: white;
  color: var(--navy-dark);
}

.button-outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: white;
}

.button-outline:hover {
  background: white;
  color: var(--navy-dark);
}

.hero-address {
  position: absolute;
  z-index: 3;
  right: 28px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-address span {
  color: var(--coral);
}

.quick-strip {
  position: relative;
  z-index: 4;
  background: var(--coastal);
  border-bottom: 1px solid var(--line);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.quick-item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 112px;
  padding: 24px 34px;
  border-right: 1px solid var(--line);
  text-decoration: none;
}

.quick-item:first-child {
  border-left: 1px solid var(--line);
}

.quick-item:hover strong {
  color: var(--coral-dark);
}

.quick-icon {
  display: grid;
  place-items: center;
  width: 40px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  border: 1px solid rgba(23, 59, 79, 0.34);
  border-radius: 50%;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
}

.quick-item span:last-child {
  display: grid;
}

.quick-item small {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.quick-item strong {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.25;
}

.quick-detail { font-size: 14px; margin-top: 5px; }
.quick-updates { font-size: 12px; text-decoration: underline; text-underline-offset: 3px; margin-top: 4px; }

.favorites { background: #edf5f7; }

#favorites-title { padding-bottom: 14px; }
#favorites-title::after {
  content: "";
  display: block;
  width: 115px;
  height: 8px;
  margin-top: 18px;
  border-block: 2px solid var(--coral-dark);
  transform: rotate(-3deg);
}

.section {
  padding-block: clamp(80px, 10vw, 138px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: 70px;
  margin-bottom: 54px;
}

h2 {
  margin-bottom: 0;
  color: var(--navy-dark);
  font-size: clamp(44px, 5.5vw, 72px);
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.section-heading > p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 17px;
}

.food-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.food-card {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy-dark);
  box-shadow: var(--shadow);
}

.food-card-wide {
  grid-column: 1 / -1;
  min-height: 560px;
}

.food-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 25, 34, 0.94), rgba(5, 25, 34, 0.65) 20%, transparent 48%);
}

.food-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.food-card:hover img {
  transform: scale(1.035);
}

.food-card-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 34px;
  color: white;
}

.food-card-copy h3 {
  margin-bottom: 8px;
  font-size: clamp(29px, 4vw, 46px);
}

.food-card-copy p {
  max-width: 550px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 9px;
  background: var(--coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.menu-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 34px;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
}

.menu-more p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
}

.menu-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.text-link {
  flex: 0 0 auto;
  color: var(--coral-dark);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.story {
  overflow: hidden;
  background: var(--cream);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(60px, 10vw, 140px);
}

.story-logo-wrap {
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid rgba(23, 59, 79, 0.2);
  background: white;
  box-shadow: 16px 16px 0 rgba(220, 95, 69, 0.7);
  transform: rotate(-1.5deg);
}

.story-logo-wrap img {
  width: 100%;
  height: auto;
}

.story-copy h2 {
  max-width: 720px;
  margin-bottom: 28px;
}

.story-lede {
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 31px);
  line-height: 1.35;
}

.story-copy > p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.catering {
  background: var(--coastal);
}

.coffee-saying { transform: rotate(-2deg); transform-origin: left center; }
.coffee-saying span {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px 12px;
  background: var(--cream);
  box-shadow: 6px 6px 0 var(--coral-dark);
}
.catering-copy .coffee-note {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  margin-block: 35px 24px;
}

.catering-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 34px;
}

.catering-copy h2 {
  max-width: 700px;
  margin-bottom: 28px;
}

.catering-lede {
  max-width: 720px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 31px);
  line-height: 1.35;
}

.catering-copy > p:not(.eyebrow):not(.catering-lede) {
  max-width: 690px;
  color: var(--muted);
  font-size: 17px;
}

.catering-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 30px;
}

.lobster-feature {
  position: relative;
  width: clamp(150px, 18vw, 230px);
  justify-self: center;
  margin: 0;
  overflow: hidden;
  border: 6px solid white;
  background: #050505;
  box-shadow: 12px 14px 0 rgba(220, 95, 69, 0.22);
  transform: rotate(1.5deg);
}

.lobster-feature img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.lobster-feature figcaption {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 5px 8px;
  background: white;
  color: var(--navy-dark);
  font-family: var(--serif);
  font-size: clamp(13px, 1.5vw, 18px);
  font-weight: 700;
  transform: rotate(-2deg);
}

.contact-email {
  margin: 10px 0 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.contact-email a {
  color: white;
  font-weight: 800;
  text-underline-offset: 4px;
}

.saying-strip {
  border-block: 1px solid rgba(255, 255, 255, 0.17);
  background: var(--coral-dark);
  color: white;
}

.saying-strip-inner {
  min-height: 156px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 52px);
  text-align: center;
}

.saying-strip strong {
  font-family: var(--serif);
  font-size: clamp(19px, 2.8vw, 32px);
  padding: 14px 20px;
  border: 2px dashed rgba(255, 255, 255, 0.7);
  transform: rotate(-2deg);
}

.saying-strip strong:last-child {
  background: var(--cream);
  color: var(--navy-dark);
  border: 2px solid var(--navy-dark);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.2);
  transform: rotate(2deg);
}

.visit {
  padding-block: clamp(80px, 10vw, 126px);
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.09), transparent 22%),
    var(--coastal-deep);
  color: var(--navy-dark);
}

.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: clamp(50px, 9vw, 120px);
}

.visit h2 {
  max-width: 780px;
  margin-bottom: 30px;
  color: var(--navy-dark);
}

.visit address {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: 22px;
  font-style: normal;
  line-height: 1.45;
}

.hours-note {
  margin-bottom: 28px;
  color: var(--navy-dark);
  font-size: 16px;
}

.hours-note strong { font-size: 20px; }
.hours-note a { display: inline-block; margin-top: 8px; font-size: 14px; text-underline-offset: 4px; }
.visit .eyebrow { color: var(--navy); }
.visit .contact-email, .visit .contact-email a { color: var(--navy-dark); }
.visit .button-outline { color: var(--navy-dark); border-color: var(--navy); }

.visit-card {
  position: relative;
  padding: clamp(32px, 5vw, 54px);
  background: var(--cream);
  color: var(--ink);
  box-shadow: 18px 18px 0 rgba(220, 95, 69, 0.85);
  transform: rotate(1.5deg);
}

.visit-card-kicker {
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.visit-card h3 {
  margin: 16px 0 18px;
  color: var(--navy-dark);
  font-size: clamp(31px, 4vw, 44px);
}

.visit-card p {
  color: var(--muted);
}

.visit-card a {
  color: var(--coral-dark);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.site-footer {
  padding-block: 36px;
  background: #b2d1dd;
  color: var(--navy-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 35px;
}

.site-footer strong {
  color: var(--navy-dark);
  font-family: var(--serif);
  font-size: 20px;
}

.site-footer p {
  margin: 2px 0 0;
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 13px;
  font-weight: 800;
}

.footer-links a:hover {
  color: var(--coral-dark);
}

.footer-brand { display: flex; align-items: center; gap: 12px; }

.copyright {
  white-space: nowrap;
}

@media (max-width: 840px) {
  .site-header {
    background: rgba(14, 43, 58, 0.94);
  }

  .header-inner {
    min-height: 72px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    inset: 72px 0 auto;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 22px;
    background: rgba(14, 43, 58, 0.98);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 13px 10px;
  }

  .nav-order {
    margin-top: 8px;
    text-align: center;
  }

  .hero {
    min-height: 760px;
  }

  .hero-media {
    background-position: 69% center;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(6, 29, 40, 0.85), rgba(6, 29, 40, 0.28));
  }

  .quick-grid,
  .section-heading,
  .catering-grid,
  .story-grid,
  .visit-grid {
    grid-template-columns: 1fr;
  }

  .quick-item {
    min-height: 92px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .quick-item:first-child {
    border-left: 1px solid var(--line);
  }

  .section-heading {
    gap: 24px;
  }

  .food-card,
  .food-card-wide {
    min-height: 430px;
  }

  .story-logo-wrap {
    width: min(430px, 88vw);
    margin-inline: auto;
  }

  .lobster-feature {
    width: min(200px, 55vw);
    margin-inline: auto;
  }

  .visit-card {
    margin: 12px 12px 12px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .copyright {
    margin-top: 0;
  }
}

@media (max-width: 600px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .brand-copy small {
    display: none;
  }

  .brand-logo {
    width: 56px;
    height: 40px;
  }

  .hero {
    min-height: 720px;
    align-items: end;
  }

  .hero-media {
    background-position: 67% 50%;
  }

  .hero-shade {
    background: linear-gradient(to top, rgba(6, 29, 40, 0.92) 8%, rgba(6, 29, 40, 0.65) 62%, rgba(6, 29, 40, 0.08));
  }

  .hero-content {
    padding: 128px 0 96px;
  }

  .heritage-mark { gap: 12px; margin-bottom: 24px; }
  .maine-flag { width: 63px; height: 42px; }

  h1 {
    font-size: clamp(45px, 14vw, 62px);
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-address {
    right: 16px;
    bottom: 18px;
    left: 16px;
    justify-content: center;
    font-size: 12px;
  }

  .quick-item {
    padding: 20px;
  }

  .food-grid {
    grid-template-columns: 1fr;
  }

  .food-card-wide {
    grid-column: auto;
  }

  .food-card,
  .food-card-wide {
    min-height: 385px;
  }

  .food-card-copy {
    padding: 24px;
  }

  .menu-more {
    align-items: flex-start;
    flex-direction: column;
  }

  .menu-actions {
    width: 100%;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .catering-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .lobster-feature {
    width: min(160px, 50vw);
    margin-inline: auto;
  }

  .saying-strip-inner {
    min-height: 126px;
    flex-direction: column;
    gap: 20px;
    padding-block: 32px;
  }

  .saying-strip-inner span {
    display: none;
  }

  .visit-actions {
    display: grid;
  }

  .footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
