@charset "utf-8";
/* ==========================================================================
   Kelly's Key West — heritage archive
   Palette sampled from the restaurant's own carved sign and roundel logo.
   ========================================================================== */

:root {
  /* --- colour: taken from the sign photograph and the roundel ------------ */
  --ink:        #10293d;   /* deep navy — primary text */
  --ink-soft:   #3c5a70;   /* secondary text */
  --blue:       #1e4a6d;   /* the sign's carved lettering */
  --blue-bright:#2a6ea0;
  --sea:        #2e8c96;   /* Caribbean turquoise */
  --sage:       #bcd7cc;   /* weathered mint of the sign board */
  --sage-deep:  #8fb3a6;
  --coral:      #a8412a;   /* the sign's "CARIBBEAN BAR/GRILL" lettering */
  --coral-soft: #c2604a;
  --sun:        #e9c33f;   /* roundel sun — used very sparingly */
  --brass:      #8a6c33;
  --sea-text:   #1a5c64;   /* teal, darkened for text use (>=4.5:1 on all surfaces) */
  --credit:     #5c5344;   /* provenance credit lines */
  --paper:      #f7f3ea;   /* weathered white */
  --paper-2:    #efe8db;
  --paper-3:    #e5dccb;
  --rule:       rgba(16, 41, 61, .18);
  --rule-soft:  rgba(16, 41, 61, .10);
  --muted:      #4a5b68;

  /* --- type ------------------------------------------------------------- */
  --display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step--1: clamp(.82rem, .8rem + .1vw, .88rem);
  --step-0:  clamp(1.0625rem, 1.02rem + .18vw, 1.15rem);
  --step-1:  clamp(1.2rem, 1.12rem + .35vw, 1.42rem);
  --step-2:  clamp(1.36rem, 1.2rem + .7vw, 1.8rem);
  --step-3:  clamp(1.6rem, 1.32rem + 1.2vw, 2.4rem);
  --step-4:  clamp(2rem, 1.5rem + 2.1vw, 3.3rem);
  --step-5:  clamp(2.4rem, 1.6rem + 3.4vw, 4.6rem);

  /* --- space ------------------------------------------------------------ */
  --gutter: clamp(1.15rem, .6rem + 2.2vw, 2.75rem);
  --flow: 1.05em;
  --container: 1180px;
  --container-wide: 1420px;
  --measure: 68ch;

  --radius: 2px;
  --radius-img: 3px;

  --z-skip: 60;
  --z-header: 50;
  --z-nav: 40;
  --z-raised: 10;
}

/* ==========================================================================
   base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.012em;
  margin: 0 0 .5em;
  font-variation-settings: "SOFT" 20, "WONK" 1;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); font-weight: 700; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
h4 { font-size: var(--step-0); font-family: var(--body); font-weight: 700; letter-spacing: .01em; }

p, ul, ol, dl, figure, blockquote, table { margin: 0 0 var(--flow); }
:where(.flow) > * + * { margin-top: var(--flow); }

a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--coral); }

img, svg, video { max-width: 100%; height: auto; display: block; }

hr {
  border: 0; height: 1px; background: var(--rule); margin: 2.5rem 0;
}

:focus-visible {
  outline: 3px solid var(--sea);
  outline-offset: 3px;
  border-radius: var(--radius);
}

::selection { background: var(--sage); color: var(--ink); }

/* ==========================================================================
   layout primitives
   ========================================================================== */
.wrap { width: min(100% - (var(--gutter) * 2), var(--container)); margin-inline: auto; }
.wrap-wide { width: min(100% - (var(--gutter) * 2), var(--container-wide)); margin-inline: auto; }
.measure { max-width: var(--measure); }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose > :first-child { margin-top: 0; }

.section { padding-block: clamp(2.75rem, 1.6rem + 4.2vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); }
.section--sage { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink h2, .section--ink h3 { color: var(--paper); }
.section--ink a { color: var(--sage); }
.section--ink a:hover { color: #fff; }

.skip-link {
  position: absolute; left: .75rem; top: -4rem; z-index: var(--z-skip);
  background: var(--ink); color: var(--paper); padding: .7rem 1.1rem;
  border-radius: var(--radius); font-weight: 600; text-decoration: none;
  transition: top .16s ease;
}
.skip-link:focus { top: .75rem; color: var(--paper); }

/* ==========================================================================
   eyebrow / labels
   ========================================================================== */
.eyebrow {
  font-family: var(--body);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 .85rem;
  display: flex; align-items: center; gap: .6rem;
}
.eyebrow::after {
  content: ""; flex: 1 1 auto; height: 1px; background: var(--rule);
  max-width: 6rem;
}
.section--ink .eyebrow { color: var(--sage); }
.section--ink .eyebrow::after { background: rgba(247, 243, 234, .28); }

.era-tag {
  display: inline-block;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--sage);
  padding: .22em .6em;
  border-radius: var(--radius);
  white-space: nowrap;
}
.era-tag--a  { background: var(--sage); }
.era-tag--b1 { background: #dcd2bd; }
.era-tag--b2 { background: #cddfe8; }

/* ==========================================================================
   header + nav  (works with zero JavaScript)
   ========================================================================== */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: relative;
  z-index: var(--z-header);
}
.site-header__bar {
  display: flex; align-items: center; gap: 1rem;
  padding-block: .85rem;
  flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: .7rem; min-height: 44px;
  text-decoration: none; color: var(--ink); margin-right: auto;
}
.brand img { width: 46px; height: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--display); font-weight: 700; font-size: 1.24rem;
  letter-spacing: -.01em;
}
.brand__sub {
  font-size: .68rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-top: .22em;
}

.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; padding: .45rem .8rem;
  font: inherit; font-size: .95rem; font-weight: 600;
  background: transparent; color: var(--ink);
  border: 1px solid var(--rule); border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .1rem .35rem;
}
.site-nav a {
  display: block; padding: .5rem .62rem;
  min-height: 44px; display: flex; align-items: center;
  font-size: .95rem; font-weight: 600; letter-spacing: .005em;
  color: var(--ink); text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}
.site-nav a:hover { color: var(--coral); border-bottom-color: var(--coral); }
.site-nav a[aria-current="page"] { color: var(--coral); border-bottom-color: var(--coral); }

/* Two navs, one shown at a time — a plain <nav> on desktop and a
   <details> disclosure on mobile. Both work with JavaScript disabled, and the
   hidden one is removed from the accessibility tree by display:none. */
.site-nav--desktop { display: none; }
.site-nav--mobile { width: 100%; }
@media (max-width: 899px) {
  .site-nav--mobile nav ul { flex-direction: column; gap: 0; border-top: 1px solid var(--rule); padding-top: .4rem; margin-top: .5rem; }
  .site-nav--mobile a { padding: .1rem .2rem .1rem .7rem; border-bottom: 0; border-left: 3px solid transparent; }
  .site-nav--mobile a:hover, .site-nav--mobile a[aria-current="page"] { border-bottom: 0; border-left-color: var(--coral); }
}
@media (min-width: 900px) {
  .site-nav--desktop { display: block; }
  .site-nav--mobile { display: none; }
}

/* ==========================================================================
   historical status notice
   ========================================================================== */

.notice {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--coral);
  background: var(--paper-2);
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  font-size: .96rem;
  color: var(--ink);
}
.notice p { margin: 0; }
.notice p + p { margin-top: .6em; }
.notice__title {
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  font-size: var(--step--1); color: var(--coral); margin-bottom: .35em;
}

.historical-flag {
  display: inline-block;
  font-size: var(--step--1);
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--coral); border: 1px solid currentColor;
  padding: .12em .5em; border-radius: var(--radius);
  vertical-align: .12em;
}

/* ==========================================================================
   hero
   ========================================================================== */
/* Editorial split hero: an ink text panel beside a full-bleed photograph.
   The photograph is never dimmed, so it reads as a photograph rather than a
   texture, and the text sits on solid colour for reliable contrast. */
.hero { background: var(--ink); color: var(--paper); }
.hero__grid { display: grid; }
/* mobile: the photograph sits above the text at a fixed ratio */
.hero__media { position: relative; aspect-ratio: 16 / 10; order: -1; }
.hero__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%;
}
.hero__inner {
  padding: clamp(2.25rem, 1.4rem + 4vw, 4.5rem) var(--gutter) clamp(2.5rem, 1.6rem + 4vw, 4.75rem);
  display: flex; flex-direction: column; justify-content: center;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: stretch; }
  /* desktop: the text column sets the row height and the photograph fills its cell */
  .hero__media { aspect-ratio: auto; order: 0; min-height: 30rem; }
  .hero__inner {
    padding-inline: clamp(2rem, calc((100vw - var(--container)) / 2 + 1rem), 7rem);
    padding-block: clamp(3rem, 1.5rem + 5vw, 6.5rem);
  }
}
.hero__roundel { width: clamp(76px, 9vw, 112px); margin-bottom: 1.3rem; }
.hero h1 {
  color: var(--paper); margin-bottom: .32em;
  font-size: var(--step-5); max-width: 12ch;
}
.hero__lede {
  font-size: var(--step-1); max-width: 38ch; color: #e7ece9;
  margin-bottom: 1.6rem; line-height: 1.5;
}
.hero__note {
  max-width: 46ch;
  font-size: .95rem; line-height: 1.55;
  color: #cfdad4;
  border-left: 3px solid var(--sea);
  padding-left: 1rem; margin: 0;
}
.hero__note strong { color: #fff; }
.hero__credit {
  position: absolute; right: .6rem; bottom: .5rem;
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: rgba(8,24,36,.62);
  padding: .22em .55em; border-radius: var(--radius);
}

/* ==========================================================================
   archival plate (figure)
   ========================================================================== */
.plate { margin: 0; }
.plate img {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: var(--radius-img);
  background: var(--paper-2);
}
.plate--pad img { padding: clamp(.6rem, 2vw, 1.4rem); background: #fff; }
.plate figcaption {
  margin-top: .7rem;
  font-size: .9rem; line-height: 1.5; color: var(--muted);
  display: flex; flex-direction: column; gap: .2rem;
}
.plate__credit {
  font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--credit); font-weight: 600;
}
.section--ink .plate figcaption { color: #c3cfc9; }
.section--ink .plate__credit { color: var(--sage-deep); }
.section--ink .plate img { border-color: rgba(247,243,234,.22); }

/* ==========================================================================
   editorial grids
   ========================================================================== */
.split {
  display: grid; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  align-items: start;
}
/* grid and flex children default to min-width:auto, which lets wide content
   (notably scrolling tables) push the page wider than the viewport */
.split > *, .tiles > *, .hero__grid > * { min-width: 0; }
.prose, .measure { min-width: 0; }
@media (min-width: 880px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--wide-left { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .split--wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
  .split--sticky > :last-child { position: sticky; top: 1.5rem; }
}

.tiles {
  display: grid; gap: clamp(1.2rem, .8rem + 2vw, 2.2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 248px), 1fr));
}

.linklist { list-style: none; margin: 0; padding: 0; }
.linklist li { border-top: 1px solid var(--rule); }
.linklist li:last-child { border-bottom: 1px solid var(--rule); }
.linklist a {
  display: flex; align-items: baseline; gap: .75rem;
  padding: .95rem .2rem; text-decoration: none; color: var(--ink);
  min-height: 44px;
  transition: background-color .16s ease, padding-left .16s ease;
}
.linklist a:hover { background: var(--paper-2); padding-left: .55rem; color: var(--coral); }
.linklist__title { font-weight: 600; font-family: var(--display); font-size: 1.1rem; }
.linklist__meta { margin-left: auto; font-size: .84rem; color: var(--muted); text-align: right; }

/* ==========================================================================
   timeline
   ========================================================================== */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: .5rem; bottom: .5rem;
  width: 1px; background: var(--rule);
}
.timeline li { position: relative; padding: 0 0 1.6rem 2.1rem; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--sea);
}
.timeline li[data-key="true"]::before { background: var(--coral); border-color: var(--coral); }
.timeline__year {
  font-family: var(--display); font-weight: 700; font-size: 1.12rem;
  display: block; letter-spacing: -.01em;
}
.timeline__body { margin: .15rem 0 0; color: var(--ink); }
.timeline__src { font-size: .82rem; color: var(--muted); display: block; margin-top: .2rem; }
.section--ink .timeline::before { background: rgba(247,243,234,.25); }
.section--ink .timeline li::before { background: var(--ink); }
.section--ink .timeline__body { color: #dfe5e2; }
.section--ink .timeline__src { color: #a9b8b2; }

/* ==========================================================================
   menu archive
   ========================================================================== */
.menu-era {
  border-top: 2px solid var(--ink);
  padding-top: 1.5rem;
  margin-top: 2.75rem;
}
.menu-era:first-of-type { margin-top: 0; }
.menu-era__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem 1rem; margin-bottom: .4rem; }
.menu-era__head h2 { margin: 0; }
.menu-era__src { font-size: .85rem; color: var(--muted); }

.dishes { margin: 0; }
.dish {
  border-bottom: 1px solid var(--rule-soft);
  padding: .85rem 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .1rem .9rem;
}
.dish__name {
  font-family: var(--display); font-weight: 600; font-size: 1.06rem;
  margin: 0; letter-spacing: -.005em;
}
.dish__price {
  grid-column: 2; grid-row: 1;
  font-variant-numeric: tabular-nums; font-weight: 700;
  color: var(--coral); white-space: nowrap;
}
.dish__desc {
  grid-column: 1 / -1; margin: .15rem 0 0;
  font-size: .95rem; color: var(--muted); line-height: 1.5;
}
.menu-section-head {
  font-family: var(--body); font-size: var(--step--1); font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: var(--sea-text);
  margin: 1.9rem 0 .2rem; padding-bottom: .35rem;
  border-bottom: 1px solid var(--rule);
}
.menu-section-head:first-child { margin-top: .6rem; }

/* ==========================================================================
   beer / label cards
   ========================================================================== */
.beer { text-align: left; }
/* the three label artworks have slightly different aspect ratios; a shared
   ratio box keeps the row of headings on one baseline */
.beer picture {
  display: block; background: #fff; padding: .9rem;
  border: 1px solid var(--rule); border-radius: var(--radius-img);
}
.beer img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #fff;
}
.beer h3 { margin: .9rem 0 .2rem; }
.beer p { margin: 0; font-size: .95rem; color: var(--muted); }
.section--ink .beer p { color: #c3cfc9; }
.section--ink .beer img { border-color: rgba(247,243,234,.2); }

/* ==========================================================================
   data tables (historical facts)
   ========================================================================== */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
table.data {
  width: 100%; border-collapse: collapse; font-size: .95rem;
  min-width: 34rem;
}
table.data th, table.data td {
  text-align: left; padding: .68rem .8rem .68rem 0;
  border-bottom: 1px solid var(--rule-soft); vertical-align: top;
}
table.data thead th {
  font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase;
  color: var(--sea-text); border-bottom: 1px solid var(--rule);
}

/* ==========================================================================
   quote
   ========================================================================== */
blockquote.pull {
  margin: 2rem 0; padding: 0 0 0 1.4rem;
  border-left: 3px solid var(--sea);
  font-family: var(--display); font-size: var(--step-1);
  line-height: 1.4; color: var(--ink); font-style: normal;
}
blockquote.pull cite {
  display: block; margin-top: .7rem;
  font-family: var(--body); font-size: .85rem; font-style: normal;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}

/* ==========================================================================
   breadcrumb
   ========================================================================== */
.crumbs { font-size: .86rem; color: var(--muted); padding-block: 1rem .25rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; }
.crumbs li::after { content: "/"; margin-left: .35rem; color: var(--sage-deep); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--coral); }

/* ==========================================================================
   page head
   ========================================================================== */
.page-head { padding-block: clamp(1.4rem, 1rem + 2vw, 2.6rem) clamp(1.2rem, .8rem + 1.6vw, 2rem); }
.page-head h1 { font-size: var(--step-4); margin-bottom: .25em; }
.page-head__lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 52ch; line-height: 1.45; margin: 0; }

/* ==========================================================================
   footer
   ========================================================================== */
.site-footer {
  background: var(--ink); color: #cfdad4;
  padding-block: clamp(2.5rem, 1.6rem + 3vw, 4rem) 2rem;
  margin-top: clamp(3rem, 2rem + 4vw, 6rem);
  font-size: .95rem;
}
.site-footer h2 {
  font-size: var(--step--1); letter-spacing: .13em; text-transform: uppercase;
  color: var(--sage); font-family: var(--body); font-weight: 700; margin-bottom: .9rem;
}
.site-footer a { color: #e7ece9; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .1rem; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; padding: .35rem 0; }
.footer-grid {
  display: grid; gap: 2rem clamp(1.5rem, 1rem + 2vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}
.footer-brand { max-width: 34ch; }
.footer-brand img { width: 70px; margin-bottom: 1rem; }
.footer-bottom {
  border-top: 1px solid rgba(247,243,234,.16);
  margin-top: 2.5rem; padding-top: 1.4rem;
  font-size: .85rem; color: #9db0a8;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
}

/* ==========================================================================
   utility
   ========================================================================== */
.u-center { text-align: center; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); }
.small { font-size: .88rem; color: var(--muted); }
.stack-sm > * + * { margin-top: .6rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .site-header, .site-footer, .crumbs { display: none; }
  body { background: #fff; color: #000; }
  .hero__media { display: none; }
}
