@font-face { font-family: 'League Spartan'; font-style: normal; font-display: swap; font-weight: 100 900; src:url(fonts/league-spartan-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'League Spartan'; font-style: normal; font-display: swap; font-weight: 100 900; src:url(fonts/league-spartan-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Literata'; font-style: normal; font-display: swap; font-weight: 200 900; src:url(fonts/literata-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Literata'; font-style: normal; font-display: swap; font-weight: 200 900; src:url(fonts/literata-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Literata'; font-style: italic; font-display: swap; font-weight: 200 900; src:url(fonts/literata-latin-ext-wght-italic.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Literata'; font-style: italic; font-display: swap; font-weight: 200 900; src:url(fonts/literata-latin-wght-italic.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Amatic SC'; font-style: normal; font-display: swap; font-weight: 700; src:url(fonts/amatic-sc-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Amatic SC'; font-style: normal; font-display: swap; font-weight: 700; src:url(fonts/amatic-sc-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* my coffee story
   layout: the logo's speech bubble greets you, you answer with one of three
   questions, and each section of the page is the reply. everything hangs off
   the left edge of a 12-column grid; the bubble is the only loud thing. */

:root {
  --ink: #231f20;        /* the black of the logo */
  --paper: #ffffff;      /* the white walls */
  --butter: #fff3b0;     /* the yellow the old site used behind the menu */
  --marker: #ffe24a;     /* same yellow, pushed, for highlighter strokes */
  --mist: #e9e7df;       /* photo placeholders */
  --quiet: #5c5754;      /* secondary text */

  --display: "League Spartan", "Avenir Next", "Century Gothic", "Trebuchet MS", sans-serif;
  --text: "Literata", "Iowan Old Style", Georgia, serif;
  --hand: "Amatic SC", "Bradley Hand", "Segoe Print", cursive;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --bar: 76px;
  --frame: 3px;   /* picture frame: ink outline straight on the photo */
  --round: 16px;  /* corner of the frame */
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 12px); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 clamp(1.0625rem, 0.98rem + 0.28vw, 1.1875rem)/1.7 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
.band--ink :focus-visible { outline-color: var(--marker); }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* paints the strip above the sticky bar on phones with a notch */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }

.skip { position: absolute; left: -999px; top: 0; background: var(--marker); padding: .6em 1em; font: 700 1rem var(--display); z-index: 50; }
.skip:focus { left: 12px; top: 12px; }

/* highlighter: used on hover, on today's opening hours, nowhere else */
.hl {
  text-decoration: none;
  background-image: linear-gradient(var(--marker), var(--marker));
  background-repeat: no-repeat;
  background-position: 0 82%;
  background-size: 0% .42em;
  transition: background-size .28s cubic-bezier(.3, .7, .2, 1);
}
.hl:hover, .hl:focus-visible { background-size: 100% .42em; }
.hl--on { background-size: 100% .42em; }
.hl--on:hover, .hl--on:focus-visible { background-size: 100% .95em; }

/* ---------- top bar ---------- */

.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--paper);
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}
.top.is-stuck { border-bottom-color: var(--ink); }
.top .wrap { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 32px); height: var(--bar); }
.brand { flex: none; width: 54px; }
.brand svg { width: 100%; height: auto; }
.now { font: 700 1.55rem/1 var(--hand); letter-spacing: .02em; margin-left: 4px; }
.nav { margin-left: auto; display: flex; align-items: baseline; gap: clamp(13px, 2.4vw, 34px); font: 700 1.08rem/1 var(--display); letter-spacing: -.01em; }
.nav a { padding: .55em 0 .3em; }
.lang {
  font: 700 .95rem/1 var(--display);
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: .5em .8em .3em;
}
.lang:hover { background: var(--ink); color: var(--paper); }

/* ---------- photo slots ---------- */

.shot {
  position: relative;
  margin: 0;
  display: grid;
  place-items: center;
  max-width: 100%;
  overflow: hidden;
  border: var(--frame) solid var(--ink);
  border-radius: var(--round);
  background: var(--mist);
}
/* the grey box and file name only show while a photo is missing */
.shot:has(img) { background: var(--ink); }
.shot:has(img)::before { content: none; }
.shot::before {
  content: attr(data-slot);
  font: 700 1.5rem/1 var(--hand);
  letter-spacing: .04em;
  color: var(--quiet);
  text-align: center;
  padding: 8px;
}
.shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- hero ---------- */

.hero { padding-block: clamp(4px, 1.2vw, 16px) clamp(56px, 8vw, 112px); }
.stage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
.stage .shot { grid-column: 5 / -1; grid-row: 1; aspect-ratio: 3 / 2; }

.bubble {
  grid-column: 1 / 7;
  grid-row: 1;
  z-index: 2;
  position: relative;
  width: 100%;
  max-width: 570px;
  aspect-ratio: 600 / 620;
  margin-top: clamp(16px, 2.2vw, 32px);
  margin-left: calc(var(--gutter) * -.35);
  container-type: inline-size;
}
.bubble svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bubble h1 {
  position: absolute;
  left: 10.83%;
  top: 10%;
  width: 78.33%;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--paper);
  font: 800 9.3cqi/.94 var(--display);
  letter-spacing: -.035em;
  padding-top: .2em; /* league spartan sits high in its box */
}
.bubble h1 span { display: block; }

.reply { display: grid; gap: clamp(14px, 1.6vw, 22px); margin-top: clamp(14px, 1.8vw, 26px); }
.reply-line { font: 700 clamp(2.5rem, 4.6vw, 3.9rem)/1 var(--hand); letter-spacing: .01em; }
.asks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px clamp(20px, 3vw, 44px); }
.asks a { display: flex; align-items: center; gap: 14px; text-decoration: none; font: 800 clamp(1.3rem, 2vw, 1.75rem)/1 var(--display); letter-spacing: -.025em; }
.asks .shot { flex: none; width: clamp(64px, 6.4vw, 88px); aspect-ratio: 1; border-radius: 50%; border-width: 2px; transition: transform .3s cubic-bezier(.2, 1.4, .4, 1); }
.asks .shot::before { font-size: .95rem; }
.asks a:hover .shot { transform: rotate(-6deg) scale(1.06); }
.asks a span { padding-top: .18em; }

/* ---------- bands ---------- */

.band { padding-block: clamp(64px, 9vw, 136px); }
.band--butter { background: var(--butter); }
.band--butter .hl { background-image: linear-gradient(var(--paper), var(--paper)); }
.band--ink { background: var(--ink); color: var(--paper); }

.ask { display: inline-block; font: 700 clamp(2.1rem, 3.6vw, 3.1rem)/1 var(--hand); letter-spacing: .01em; transform: rotate(-2deg); transform-origin: left bottom; margin-bottom: .1em; }
.title { font: 800 clamp(5.2rem, 16vw, 14rem)/.8 var(--display); letter-spacing: -.055em; margin-left: -.045em; margin-bottom: .32em; }

/* ---------- menu ---------- */

.group { display: grid; grid-template-columns: minmax(0, 10.5rem) minmax(0, 1fr) minmax(0, 30%); grid-template-areas: "name body shot"; gap: 20px clamp(20px, 3.4vw, 56px); align-items: start; padding-block: clamp(26px, 3vw, 40px) clamp(36px, 4.4vw, 64px); border-top: 3px solid var(--ink); }
.group:last-child { padding-bottom: 0; }
.group h3 { grid-area: name; }
.group .body { grid-area: body; }
.group .shot { grid-area: shot; aspect-ratio: 5 / 6; }
.group h3 { font: 800 clamp(1.9rem, 2.7vw, 2.5rem)/1 var(--display); letter-spacing: -.035em; }

.items { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: 1.5rem clamp(20px, 3vw, 44px); }
.items dt { font: 700 1.5rem/1.05 var(--display); letter-spacing: -.02em; }
.items dd { margin: .2em 0 0; font-style: italic; font-size: .97em; line-height: 1.45; }

.group p { max-width: 30em; }
/* the koláče sentence is set like the item descriptions in the other two groups */
.group .body > p:first-child { font-style: italic; font-size: .97em; line-height: 1.45; }
.more { margin-top: 1.1em; display: flex; flex-wrap: wrap; align-items: center; gap: .1em .7em; }
.more > span:first-child { font: 700 1.9rem/1 var(--hand); letter-spacing: .02em; }

/* instagram / facebook: one-colour glyphs that take the colour of the text around them */
.icons { display: flex; gap: 2px; }
.ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: inherit; transition: background-color .2s, color .2s; }
.ico svg, .handle svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.ico:hover, .ico:focus-visible { background: var(--marker); color: var(--ink); }
.band--butter .ico:hover, .band--butter .ico:focus-visible { background: var(--paper); }
.handle { display: inline-flex; align-items: center; min-height: 44px; gap: .55em; text-decoration: none; font: 700 1.2rem/1.1 var(--display); letter-spacing: -.01em; }
.handle span { padding-top: .2em; }

/* ---------- about ---------- */

.lead-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 104px); align-items: start; }
.lead { font-size: clamp(1.4rem, 2.3vw, 2.05rem); line-height: 1.42; letter-spacing: -.012em; max-width: 25em; }
.lead-grid .shot { aspect-ratio: 4 / 5; }

.pair { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: center; }
.lead-grid + .pair, .pair + .pair { margin-top: clamp(72px, 10vw, 152px); }
.pair .copy { grid-column: 1 / 7; grid-row: 1; }
.pair .shot { grid-column: 8 / -1; grid-row: 1; aspect-ratio: 4 / 5; }
.pair--flip .copy { grid-column: 7 / -1; }
.pair--flip .shot { grid-column: 1 / 6; }
.pair h3 { font: 800 clamp(2.5rem, 5vw, 4.4rem)/.9 var(--display); letter-spacing: -.045em; margin-bottom: .45em; }
.pair p { max-width: 34em; }
.pair p + p { margin-top: 1em; }

.move { display: flex; flex-wrap: wrap; align-items: center; gap: .1em .5em; font: 700 clamp(2rem, 3.4vw, 2.9rem)/1.05 var(--hand); letter-spacing: .02em; margin-bottom: .5em; }
.move s { text-decoration-thickness: 3px; color: var(--quiet); }
.move svg { width: 1.9em; flex: none; }
.links { margin-top: .7em; display: flex; flex-wrap: wrap; gap: .4em 1.4em; }

/* ---------- contacts ---------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 104px); align-items: start; }
.where address { font: 800 clamp(2.3rem, 5.4vw, 4.7rem)/1.04 var(--display); font-style: normal; letter-spacing: -.045em; }
.where address span { display: block; }
.map {
  display: inline-block;
  margin-top: clamp(20px, 2.4vw, 32px);
  font: 700 1.1rem/1 var(--display);
  text-decoration: none;
  border: 2px solid var(--paper);
  border-radius: 999px;
  padding: .85em 1.3em .65em;
}
.map:hover { background: var(--marker); border-color: var(--marker); color: var(--ink); }
.reach { margin-top: clamp(36px, 5vw, 64px); display: grid; gap: .5em; justify-items: start; font: 700 clamp(1.35rem, 2.4vw, 2rem)/1.1 var(--display); letter-spacing: -.02em; }
.reach a { text-decoration: none; overflow-wrap: anywhere; padding-top: .15em; }
.band--ink .hl { background-size: 100% 2px; background-position: 0 96%; }
.band--ink .hl:hover, .band--ink .hl:focus-visible { background-size: 100% 100%; color: var(--ink); }

.hours h3 { font: 700 clamp(2rem, 3.2vw, 2.7rem)/1 var(--hand); letter-spacing: .02em; margin-bottom: .5em; }
.hours table { margin-left: -.4em; border-collapse: collapse; font: 700 clamp(1.5rem, 2.5vw, 2.1rem)/1 var(--display); letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.hours th { text-align: left; font-weight: 700; padding: .5em 1.4em .3em .4em; }
.hours td { padding: .5em .4em .3em 0; white-space: nowrap; }
.hours tr.is-today { background: var(--marker); color: var(--ink); }
.status { margin-top: .8em; font: 700 clamp(1.8rem, 2.8vw, 2.4rem)/1.05 var(--hand); letter-spacing: .02em; color: var(--marker); min-height: 1.1em; }
.social { margin-top: clamp(24px, 3vw, 40px); margin-left: -9px; gap: 6px; }
.social .ico { width: 52px; height: 52px; }
.social .ico svg { width: 32px; height: 32px; }

.foot { background: var(--ink); color: var(--paper); padding-block: 0 clamp(28px, 4vw, 48px); }
.foot .wrap > div { border-top: 2px solid rgb(255 255 255 / .28); padding-top: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; font: 500 .98rem/1.2 var(--display); }
.foot svg { width: 30px; }
.foot p { display: flex; align-items: center; gap: 12px; padding-top: .2em; }
.foot a { padding-top: .2em; }

/* ---------- one entrance: the bubble speaks, you answer ---------- */

@media (prefers-reduced-motion: no-preference) {
  .bubble { animation: pop .75s cubic-bezier(.2, 1.35, .35, 1) both; transform-origin: 12% 96%; }
  .bubble h1 span { animation: say .42s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.5s + var(--i) * .13s); }
  .reply-line { animation: say .5s 1.25s both; }
  .asks li { animation: say .45s both; animation-delay: calc(1.5s + var(--i) * .1s); }
  @keyframes pop { from { transform: scale(.55) rotate(-9deg); opacity: 0; } }
  @keyframes say { from { opacity: 0; transform: translateY(.3em); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hl, .ico, .asks .shot { transition: none; }
}

/* ---------- narrower ---------- */

@media (max-width: 1080px) {
  .now { display: none; }
}

@media (max-width: 820px) {
  :root { --bar: 64px; }
  .brand { width: 46px; }
  .nav { font-size: 1rem; }

  .stage { grid-template-columns: 1fr; }
  .stage .shot { grid-column: 1; grid-row: 1; }
  .stage .shot img { object-position: 12% 50% !important; }
  .bubble { grid-column: 1; grid-row: 2; max-width: 440px; width: 88%; margin-top: -13%; margin-left: -6px; }
  .reply { margin-top: 20px; }

  .group { grid-template-columns: 1fr; grid-template-areas: "name" "shot" "body"; }
  .group .shot { aspect-ratio: 1; max-width: 460px; }

  .lead-grid { grid-template-columns: 1fr; }
  .lead-grid .shot { aspect-ratio: 4 / 3; margin-left: 12%; }

  .pair { grid-template-columns: 1fr; row-gap: 28px; }
  .pair .copy, .pair--flip .copy { grid-column: 1; grid-row: 2; }
  .pair .shot, .pair--flip .shot { grid-column: 1; grid-row: 1; }
  .pair .shot { margin-right: 12%; }
  .pair--flip .shot { margin-left: 12%; }

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

@media (max-width: 420px) {
  .nav { gap: 12px; font-size: .95rem; }
  .lang { padding-inline: .65em; }
  .asks { flex-direction: column; }
  .items { grid-template-columns: 1fr 1fr; }
  .items dt { font-size: 1.3rem; }
}
