/* ODLAN: coffee-shop theme */

/* Fonts are self-hosted (SIL Open Font License) */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/figtree-latin.woff2") format("woff2");
}

:root {
  --kraft: #D8B47F;
  --roast: #25160F;
  --crema: #F2E2C4;
  --milk: #FFFBF2;
  --blue: #2342C9;
  --cherry: #C4302B;
  --roast-muted: #CDB894;
  --ink-soft: #5B4639;
  --error-on-dark: #FFB4AB;

  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Figtree", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max: 72rem;
  --edge: max(var(--gutter), calc((100% - var(--max)) / 2));
  --focus: var(--blue);
  --target: 2.75rem;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
  margin: 0;
  background: var(--kraft);
  color: var(--roast);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--roast);
  color: var(--milk);
  padding: 0.75rem 1rem;
  z-index: 20;
}
.skip:focus { top: 1rem; }

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

.wrap { max-width: var(--max); margin-inline: auto; }

/* Icons: drawn inline, one shared stroke style */

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* Buttons and links */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--target);
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  padding: 0.7rem 1.6rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: #1a33a8; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.7; cursor: progress; transform: none; }

.btn--small { padding: 0.5rem 1.2rem; font-size: 0.95rem; }

.btn--kraft { background: var(--kraft); color: var(--roast); }
.btn--kraft:hover { background: var(--crema); }

.textlink {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}
.textlink:hover { text-decoration-color: var(--blue); }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem var(--edge);
  background: var(--kraft);
}

.brand {
  display: inline-flex;
  align-items: baseline; /* the wordmark's baseline sits on the base of the cup */
  gap: 0.5rem;
  padding-block: 0.2rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand__cup { transform: translateY(0.55px); } /* the cup ends just above its box edge; this seats it exactly on the baseline */

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-weight: 500;
}
.nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  padding-inline: 0.25rem;
  text-decoration: none;
}
.nav a:not(.btn):hover,
.nav a[aria-current] { text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 2px; }

/* Mobile: a native <details> disclosure, no script needed */
.mnav { display: none; position: relative; margin-left: auto; }
.mnav__contact { display: none; }
.mnav summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--target);
  padding: 0.4rem 1rem;
  border: 2px solid var(--roast);
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.15s ease;
}
.mnav[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.mnav ul {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 12rem;
  padding: 0.5rem;
  background: var(--milk);
  border: 2px solid var(--roast);
  border-radius: 1rem;
  box-shadow: 0 10px 24px rgba(37, 22, 15, 0.2);
}
.mnav li a {
  display: flex;
  align-items: center;
  min-height: var(--target);
  padding: 0.4rem 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0.6rem;
}
.mnav li a:hover,
.mnav li a[aria-current] { background: var(--crema); }

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding: clamp(2.5rem, 7vw, 6rem) var(--gutter) clamp(4rem, 9vw, 8rem);
}

.hero h1 {
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero__lede {
  max-width: 32rem;
  margin-top: 1.75rem;
  font-size: 1.2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  margin-top: 2rem;
}

/* The order ticket: the one memorable thing */

.ticket {
  justify-self: center;
  width: min(100%, 22rem);
  filter: drop-shadow(0 12px 18px rgba(37, 22, 15, 0.22));
  transform: rotate(2.5deg);
  animation: print 1.4s cubic-bezier(0.25, 0.9, 0.3, 1) 0.3s both;
}

.ticket__body {
  position: relative;
  background: var(--milk);
  padding: 1.6rem 1.5rem 2.4rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  -webkit-mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / 16px 8px repeat-x,
    linear-gradient(#000 0 0) 0 0 / 100% calc(100% - 7px) no-repeat;
  mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / 16px 8px repeat-x,
    linear-gradient(#000 0 0) 0 0 / 100% calc(100% - 7px) no-repeat;
}

.ticket__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  text-align: center;
}
.ticket__sub { text-align: center; color: var(--ink-soft); margin-bottom: 0.9rem; }

.ticket hr { border: 0; border-top: 2px dashed #bfae98; margin: 0.9rem 0; }

.ticket li { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.2rem; }

.ticket__name { margin-top: 0.4rem; }

.ticket__stamp {
  position: absolute;
  right: 1.2rem;
  bottom: 2.2rem;
  border: 3px solid var(--cherry);
  color: var(--cherry);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.1rem 0.7rem;
  border-radius: 6px;
  transform: rotate(-9deg);
  opacity: 0.9;
}

@keyframes print {
  from { clip-path: inset(0 0 100% 0); transform: translateY(-1.5rem) rotate(2.5deg); }
  to   { clip-path: inset(0 0 -2rem 0); transform: translateY(0) rotate(2.5deg); }
}

/* Shared section bits */

.menu, .process, .work, .about, .contact {
  padding: clamp(4rem, 9vw, 7.5rem) var(--gutter);
}

.section-head { max-width: 38rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
.section-head p { margin-top: 1rem; font-size: 1.15rem; max-width: 34rem; }

.on-dark { background: var(--roast); color: var(--crema); --focus: var(--kraft); }
.on-blue { background: var(--blue); color: var(--milk); --focus: var(--milk); }

/* Menu: chalkboard */

.menu__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.75rem clamp(2rem, 6vw, 5rem);
}

.menu__list li {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  grid-template-areas:
    "icon title"
    "icon desc"
    "icon time";
  column-gap: 1.1rem;
  row-gap: 0.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px dotted rgba(242, 226, 196, 0.35);
}

.menu__list h3 {
  grid-area: title;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.9rem;
}
.drink { font-size: clamp(1.8rem, 3.4vw, 2.4rem); color: var(--kraft); }
.service {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0;
}

.menu__list p { grid-area: desc; color: var(--roast-muted); max-width: 34rem; }
.menu__list .time { grid-area: time; color: var(--crema); font-weight: 700; font-size: 0.95rem; }
.menu__list .icon { grid-area: icon; width: 3.5rem; height: 3.5rem; color: var(--kraft); }

/* Process */

.process { background: var(--crema); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  border-top: 4px solid var(--roast);
  padding-top: 1.1rem;
}
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--blue);
  margin-bottom: 0.9rem;
}
.steps h3 { font-size: 1.7rem; margin-bottom: 0.5rem; }

/* Work: client logo wall (logos are white on transparent, made for dark backgrounds) */

.work__logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.work__logos li {
  display: grid;
  place-items: center;
  height: 10rem;
  padding: 1.25rem 1.5rem;
  background: #36231A;
  border-radius: 1rem;
}

/* Logos are trimmed to their artwork, so each one centers exactly and is sized to fit the tile. */
.work__logos img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 6.5rem;
}

.work__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.02em;
  color: var(--crema);
}

.work__note {
  margin-top: clamp(2rem, 4vw, 3rem);
  max-width: 44rem;
  color: var(--crema);
  text-wrap: balance;
}
.work__note a { font-weight: 700; text-underline-offset: 0.25em; }

/* About */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 36rem);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.about h2 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
.about__text { display: grid; gap: 1.1rem; margin-top: 1.75rem; font-size: 1.2rem; max-width: 34rem; }
.about__tag {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--kraft);
}

.about__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 3px solid var(--kraft);
  border-radius: 1.5rem;
}

/* Contact */

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 36rem);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact h2 { font-size: clamp(2.8rem, 8vw, 5.5rem); line-height: 0.95; }
.contact__lede { margin-top: 1.25rem; font-size: 1.2rem; max-width: 26rem; }
.contact__alt { margin-top: 1.5rem; max-width: 26rem; }
.contact__alt a { font-weight: 700; text-underline-offset: 0.25em; }

.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.field { display: grid; gap: 0.4rem; align-content: start; }
.field label { font-weight: 700; }
.field__hint { font-weight: 400; color: var(--roast-muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: var(--target);
  padding: 0.7rem 1rem;
  font: inherit;
  color: var(--roast);
  background: var(--milk);
  border: 2px solid transparent;
  border-radius: 0.75rem;
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2325160F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 0.8rem;
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--error-on-dark); }

.field__error { color: var(--error-on-dark); font-weight: 700; }
.field__error:empty { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__notice { font-size: 0.95rem; color: var(--roast-muted); max-width: 34rem; }
.form__notice a { color: var(--crema); }

.form__status { font-weight: 700; }
.form__status:empty { display: none; }
.form__status--success { color: var(--kraft); }
.form__status--error { color: var(--error-on-dark); }

/* Non-JS error state: the Function redirects to /#contact-error */
.form__fallback { display: none; color: var(--error-on-dark); font-weight: 700; }
.form__fallback:target { display: block; }

.form .btn { justify-self: start; }

/* Legal and utility pages */

.legal { background: var(--crema); padding: clamp(3rem, 7vw, 5.5rem) var(--gutter); }
.legal__inner { max-width: 44rem; margin-inline: auto; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); }
.legal__meta { margin-top: 0.75rem; color: var(--ink-soft); }
.legal h2 { margin-top: 2.5rem; font-size: 1.7rem; letter-spacing: -0.02em; }
.legal h3 { margin-top: 1.5rem; font-size: 1.2rem; letter-spacing: -0.01em; }
.legal p, .legal li { max-width: 65ch; }
.legal p { margin-top: 0.9rem; }
.legal ul { margin-top: 0.9rem; padding-left: 1.25rem; list-style: disc; }
.legal li { margin-top: 0.4rem; padding-left: 0.25rem; }
.legal a { color: var(--blue); text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
.legal a:hover { text-decoration-thickness: 3px; }
.legal table { width: 100%; margin-top: 1rem; border-collapse: collapse; font-size: 0.98rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 0.7rem 0.8rem; border-bottom: 2px solid rgba(37, 22, 15, 0.2); }
.legal th { font-weight: 700; }

.notfound { padding: clamp(4rem, 10vw, 8rem) var(--gutter); }
.notfound__inner { max-width: 40rem; margin-inline: auto; }
.notfound h1 { font-size: clamp(2.8rem, 8vw, 5rem); }
.notfound p { margin: 1.25rem 0 2rem; font-size: 1.2rem; }

/* Footer */

.site-footer {
  background: var(--roast);
  color: var(--roast-muted);
  padding: clamp(2.5rem, 5vw, 4rem) var(--edge) 1.5rem;
  --focus: var(--kraft);
}
.footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(242, 226, 196, 0.2);
}
.footer__brand { color: var(--crema); }
.footer__brand strong { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.02em; }
.footer__brand p { margin-top: 0.4rem; max-width: 20rem; color: var(--roast-muted); }
.footer__col h2 { font-family: var(--font-body); font-size: 1rem; letter-spacing: 0; color: var(--crema); margin-bottom: 0.4rem; }
.footer__col a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  text-underline-offset: 0.25em;
}
.footer__col a:hover { color: var(--crema); }
.footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1.25rem;
  font-size: 0.95rem;
}

/* Responsive */

@media (max-width: 62rem) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 56rem) {
  .work__logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 48rem) {
  .nav { display: none; }
  .mnav { display: block; }
  .mnav__contact { display: inline-flex; }
  .site-header { gap: 0.75rem; }
  .hero { grid-template-columns: 1fr; }
  .ticket { justify-self: start; width: min(100%, 20rem); }
  .menu__list { grid-template-columns: 1fr; }
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__main { grid-template-columns: 1fr 1fr; }
  .footer__col a { min-height: var(--target); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 30rem) {
  .steps { grid-template-columns: 1fr; }
  .brand { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticket { animation: none; }
  .btn, .mnav summary::after { transition: none; }
}
