/* The catering pages, and the thank-you, contact, info and 404 pages that share their style. */

/* Albert Sans and Jaapokki are defined in mrfish.css, which every page loads. */

/* Jaapokki again with font-display: swap, so titles are not invisible while the font loads.
   This file loads after mrfish.css, so this rule wins on these pages. */
@font-face {
  font-family: jaapokki;
  src: url(../fonts/jaapokki-regular.woff) format("woff");
  font-display: swap;
}

body#catering {
  --ct-paper: #ffffff;
  --ct-line: #e4dfd8;
  --ct-salmon-ink: #b4490c;
  --ct-night: var(--ink);
  --ct-night-2: #231f1c;
  --ct-on-night-2: #bfb7ad;
  --ct-gutter: 16px;
  --ct-r: 20px;
  --ct-r-sm: 12px;
  --ct-space: 72px;
  --ct-max: 1320px;

  background: var(--ct-paper);
  color: var(--ink);
  height: auto;
  -webkit-font-smoothing: antialiased;
}

/* Korean breaks between words, not inside them */
body#catering:lang(ko) {
  word-break: keep-all;
  overflow-wrap: break-word;
}

@media (min-width: 576px) {
  body#catering { --ct-gutter: 24px; }
}

@media (min-width: 992px) {
  body#catering { --ct-gutter: 40px; --ct-r: 28px; --ct-r-sm: 14px; --ct-space: 120px; }
}

body#catering ::selection { background: var(--salmon); color: var(--ink); }

body#catering .mynav { margin-bottom: 0 !important; }

/* The reset, the focus rings and the button are in mrfish.css */

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

/* ---------- Typography ---------- */

/* Titles, the clock and the quote are uppercase Jaapokki. It has one weight, so levels differ by size, and it lacks « ».
   font-synthesis: none prevents a fake bold Jaapokki where the weight is 800 (Korean and Vietnamese). */
.ct-h1,
.ct-h2,
.ct-pull,
.ct-place-name,
.ct-clock {
  font-family: var(--display-font);
  font-weight: var(--display-weight);
  font-synthesis: none;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* Jaapokki is wide in capitals, so the size follows the column width: "SUSHICATERING" is about 7.8 em. */
.ct-h1 {
  font-size: min(calc((100vw - 2 * var(--ct-gutter)) * 0.118), 6rem);
  line-height: 0.98;
  text-wrap: balance;
}

@media (min-width: 992px) {
  .ct-h1 { font-size: min(calc((min(100vw, var(--ct-max)) - 3 * var(--ct-gutter)) * 2 / 3 * 0.118), 6rem); }
}

.ct-h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3.25rem);
  line-height: 1;
  text-wrap: balance;
}

.ct-body,
.ct-faq p {
  font-size: 1.0625rem;
  line-height: 1.6;
  max-width: 68ch;
}

.ct-body,
.ct-faq p,
.ct-deck,
.ct-story-lead,
.ct-panel-lead,
.ct-frame-cap { text-wrap: pretty; }

.ct-meta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-2);
}

.ct-link {
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

.ct-link:hover { color: var(--ct-salmon-ink); }

/* On the dark form surface the button turns light on hover, since ink does not show on ink */
.ct-panel .fish-btn:hover { background: var(--on-night); color: var(--ink); }

/* Draft markers (local only) */
.ct-draftbar {
  margin: 0;
  padding: 8px var(--ct-gutter);
  background: #fff1e6;
  color: var(--ink);
  font-family: var(--body-font-family);
  font-size: 0.875rem;
  text-align: center;
}

.ct-draftbar a { color: var(--ct-salmon-ink); font-weight: 650; }

.ct-ph {
  background: rgba(255, 113, 29, 0.22);
  box-shadow: inset 0 -2px 0 var(--salmon);
  border-radius: 3px;
}

/* ---------- Top ---------- */

.ct-deck {
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--ink);
  max-width: 44ch;
}

@media (min-width: 992px) {
  .ct-deck { font-size: 1.1875rem; }
}

/* ---------- Evening: the story is dark ---------- */

/* The room in the photos is dim and warm. On a dark background the photos glow instead of being dark holes in white. */
.ct-story {
  color-scheme: dark;
  background: var(--ct-night);
  color: var(--on-night);
  padding-bottom: var(--ct-space);
}

.ct-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.ct-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: none;
}

.ct-byline-who { display: flex; flex-direction: column; line-height: 1.25; }
.ct-byline-name { font-weight: 700; font-size: 0.9375rem; }
.ct-byline-role { font-size: 0.875rem; color: rgba(255, 255, 255, 0.82); }
.ct-byline-credit { margin-left: auto; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.82); text-align: right; }

/* ---------- The story and the timeline strip ---------- */

.ct-col { max-width: calc(760px + 2 * var(--ct-gutter)); }

.ct-story-head { padding-top: 32px; }

.ct-story .ct-meta { color: var(--ct-on-night-2); }

.ct-story-lead {
  margin-top: 14px;
  font-size: 1.1875rem;
  line-height: 1.6;
}

@media (min-width: 992px) {
  .ct-story-head {
    max-width: var(--ct-max);
    padding-top: 56px;
    padding-left: calc(var(--ct-gutter) + 40px);
  }
  .ct-story-head > * { max-width: 760px; }
  .ct-story-lead { font-size: 1.3125rem; }
}

.ct-strip { margin-top: 48px; }

.ct-strip-bar {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Fixed width, so the line does not jump when the digits change */
.ct-clock {
  flex: none;
  width: 2.6em;
  font-size: clamp(3rem, 2rem + 4.4vw, 6rem);
  line-height: 0.9;
  color: var(--salmon);
}

.ct-track {
  position: relative;
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(244, 241, 236, 0.18);
  overflow: hidden;
}

.ct-track-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--salmon);
  border-radius: inherit;
  transition: width 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ct-strip-buttons { display: none; gap: 8px; }

.ct-round {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--on-night);
  border-radius: 50%;
  background: transparent;
  color: var(--on-night);
  cursor: pointer;
  transition: background-color 160ms ease-out, color 160ms ease-out;
}

.ct-round:hover { background: var(--on-night); color: var(--ink); }
.ct-round:disabled { opacity: 0.3; cursor: default; background: transparent; color: var(--on-night); }

@media (min-width: 768px) {
  .ct-strip-buttons { display: inline-flex; }
}

.ct-strip-list {
  list-style: none;
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding: 0 var(--ct-gutter) 8px;
  padding-inline: max(var(--ct-gutter), calc((100% - var(--ct-max)) / 2 + var(--ct-gutter)));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--ct-gutter), calc((100% - var(--ct-max)) / 2 + var(--ct-gutter)));
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.ct-strip-list::-webkit-scrollbar { display: none; }

.ct-frame {
  flex: 0 0 auto;
  width: min(72vw, 340px);
  scroll-snap-align: start;
}

@media (min-width: 992px) {
  .ct-strip-list { gap: 20px; }
}

.ct-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--ct-r);
  background: var(--ct-night-2);
  transition: opacity 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* The photo the clock shows is lit. The others are dimmed, like the room around the counter. */
.ct-strip.is-live .ct-frame { cursor: pointer; }
.ct-strip.is-live .ct-frame:not(.is-active) img { opacity: 0.42; }
.ct-strip.is-live .ct-frame:not(.is-active):hover img { opacity: 0.75; }

.ct-frame-cap {
  margin-top: 12px;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--ct-on-night-2);
  transition: color 320ms ease-out;
}

.ct-frame.is-active .ct-frame-cap,
.ct-strip:not(.is-live) .ct-frame-cap { color: var(--on-night); }

.ct-frame-cap time {
  color: var(--salmon);
  font-weight: 750;
  margin-right: 4px;
}

.ct-credit {
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--ct-on-night-2);
}

/* ---------- The finished table ---------- */

.ct-payoff {
  margin-top: 64px;
  padding-inline: 0;
}

.ct-payoff img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.ct-payoff-cap {
  margin-top: 12px;
  padding-inline: var(--ct-gutter);
  font-size: 0.9375rem;
  color: var(--on-night);
}

.ct-payoff-cap time { color: var(--salmon); font-weight: 750; margin-right: 4px; }

@media (min-width: 768px) {
  .ct-payoff { padding-inline: var(--ct-gutter); }
  .ct-payoff img { aspect-ratio: 2 / 1; border-radius: var(--ct-r); }
  .ct-payoff-cap { padding-inline: 0; }
}

.ct-payoff-text {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}

.ct-pull {
  font-size: clamp(2rem, 1.2rem + 3.4vw, 4.5rem);
  line-height: 0.98;
  color: var(--salmon);
  text-wrap: balance;
}

.ct-story .ct-payoff-text .ct-body { color: var(--ct-on-night-2); }

@media (min-width: 992px) {
  .ct-payoff { margin-top: 112px; }
  .ct-payoff-text {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: end;
    gap: 40px;
    margin-top: 56px;
  }
}

/* ---------- Request a quote ---------- */

#tilbud { padding-top: var(--ct-space); scroll-margin-top: 8px; }

.ct-panel {
  color-scheme: dark;
  background: var(--ct-night);
  color: var(--on-night);
  border-radius: var(--ct-r);
  padding: 28px 20px 32px;
}

@media (min-width: 992px) {
  .ct-panel { padding: 56px; }
}

.ct-panel-head { display: grid; gap: 14px; }

.ct-panel-lead { font-size: 1.125rem; line-height: 1.5; max-width: 46ch; }
.ct-panel-call { margin-top: 10px; color: var(--ct-on-night-2); }
.ct-panel-call a { color: var(--on-night); font-weight: 700; }

@media (min-width: 992px) {
  .ct-panel-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; }
}

.ct-form-alert {
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: var(--ct-r-sm);
  background: rgba(255, 113, 29, 0.16);
  color: #ffc9a8;
  font-weight: 600;
}

.ct-form {
  display: grid;
  gap: 22px 24px;
  margin-top: 32px;
}

@media (min-width: 768px) {
  .ct-form { grid-template-columns: 1fr 1fr; }
  .ct-field--full { grid-column: 1 / -1; }
}

.ct-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }

.ct-field > label,
.ct-field legend {
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--on-night);
}

.ct-field legend { float: left; width: 100%; margin-bottom: 8px; padding: 0; }

.ct-optional { font-weight: 450; color: var(--ct-on-night-2); }

.ct-form input[type="text"],
.ct-form input[type="email"],
.ct-form input[type="tel"],
.ct-form input[type="number"],
.ct-form input[type="date"],
.ct-form input[type="time"],
.ct-form select,
.ct-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1.5px solid #7d756d;
  border-radius: var(--ct-r-sm);
  background: var(--ct-night-2);
  color: var(--on-night);
  font-size: 1.0625rem;
  color-scheme: dark;
  transition: border-color 160ms ease-out;
}

.ct-form textarea { min-height: 120px; resize: vertical; line-height: 1.5; }

.ct-form input:hover,
.ct-form select:hover,
.ct-form textarea:hover { border-color: #9b938a; }

.ct-form input:focus-visible,
.ct-form select:focus-visible,
.ct-form textarea:focus-visible {
  outline: none;
  border-color: var(--salmon);
  box-shadow: 0 0 0 3px rgba(255, 113, 29, 0.35);
}

.ct-form input:disabled { opacity: 0.45; }

.ct-form input[aria-invalid="true"],
.ct-form select[aria-invalid="true"],
.ct-form textarea[aria-invalid="true"] { border-color: var(--salmon); }

/* Select in the contact form: its own arrow, since the browser arrow does not follow the colours */
.ct-form select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23f4f1ec' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  cursor: pointer;
}

/* Error text under the contact form fields. Bootstrap shows it only when the field has .is-invalid. */
.ct-form .invalid-feedback { margin: 0; font-size: 0.875rem; font-weight: 650; color: #ffb48a; }

.ct-hint { font-size: 0.875rem; line-height: 1.45; color: var(--ct-on-night-2); }

.ct-error { font-size: 0.875rem; font-weight: 650; color: #ffb48a; }

.ct-choice { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px 24px; }

.ct-radio,
.ct-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 1.0625rem;
  cursor: pointer;
}

.ct-check { font-size: 0.9375rem; min-height: 40px; color: var(--ct-on-night-2); }

.ct-radio input,
.ct-check input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--salmon);
  flex: none;
}

.ct-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 6px; }

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

/* ---------- Good to know ---------- */

.ct-faq { padding-top: var(--ct-space); padding-bottom: var(--ct-space); }

.ct-faq-list {
  margin-top: 24px;
  border-top: 1px solid var(--ct-line);
  max-width: 860px;
}

.ct-faq details { border-bottom: 1px solid var(--ct-line); scroll-margin-top: 16px; }

.ct-faq summary {
  position: relative;
  list-style: none;
  padding: 20px 48px 20px 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
}

.ct-faq summary::-webkit-details-marker { display: none; }

.ct-faq summary::before,
.ct-faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 16px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ct-faq summary::after { transform: rotate(90deg); }
.ct-faq details[open] summary::after { transform: rotate(0deg); }

.ct-faq details p { padding-bottom: 22px; }

/* ---------- Floating button on mobile ---------- */

.ct-float {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 20;
  transform: translate(-50%, 140%);
  visibility: hidden;
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 320ms;
  padding: 0.1em 32px 0;
}

.ct-float.is-visible {
  transform: translate(-50%, 0);
  visibility: visible;
  transition-delay: 0s;
}

@media (min-width: 992px) {
  .ct-float { display: none; }
}

/* ---------- Thank-you page ---------- */

.ct-thanks { padding-top: 56px; padding-bottom: var(--ct-space); max-width: calc(760px + 2 * var(--ct-gutter)); }
.ct-thanks > * + * { margin-top: 16px; }
.ct-thanks .ct-body { font-size: 1.125rem; }

.ct-thanks > .ct-thanks-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

@media (min-width: 576px) {
  .ct-thanks > .ct-thanks-actions { flex-direction: row; flex-wrap: wrap; gap: 12px 16px; }
}

/* ---------- Privacy page ---------- */

.ct-doc { padding-top: 40px; padding-bottom: var(--ct-space); }
.ct-doc-head > * + * { margin-top: 16px; }
.ct-doc-lead { max-width: 40ch; font-size: 1.25rem; line-height: 1.5; text-wrap: pretty; }

/* A hairline above each part, and on PC the heading beside the text */
.ct-doc-part { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--ct-line); }
.ct-doc-part h2 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.ct-doc-part .ct-body { margin-top: 12px; }
.ct-doc-part .ct-body > * + * { margin-top: 14px; }
.ct-doc-part ul { padding-left: 1.25em; }
.ct-doc-part li + li { margin-top: 8px; }

@media (min-width: 992px) {
  .ct-doc-part { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; }
  .ct-doc-part .ct-body { margin-top: 0; }
}

/* ---------- Contact page: the form surface from the catering page ---------- */

.ct-contact { padding-top: 32px; }

@media (min-width: 992px) {
  .ct-contact { padding-top: 56px; }
}

/* ---------- Info page ---------- */

/* The restaurants are a list with hairlines, like the kitchens on the catering page */
.ct-info-head { padding-top: 40px; }
.ct-info-head .ct-h1 { font-size: min(calc((100vw - 2 * var(--ct-gutter)) * 0.16), 5rem); }

.ct-info-places {
  display: grid;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.ct-info-places > li { padding: 28px 0 32px; border-top: 1px solid var(--ct-line); }
.ct-info-places > li > * + * { margin-top: 8px; }
.ct-info-places .ct-place-name { font-size: 1.5rem; line-height: 1.05; }
.ct-info-address { font-size: 1.0625rem; line-height: 1.5; }

.ct-info-places > li > .ct-info-label {
  margin-top: 24px;
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--ink-2);
}

.ct-info-hours { margin: 0; }
.ct-info-hours > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--ct-line); }
.ct-info-hours dt { font-weight: 400; }
.ct-info-hours dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ct-info-hours dd.is-closed { font-weight: 400; color: var(--ink-2); }

.ct-info-parking { max-width: 60ch; font-size: 1rem; line-height: 1.55; }
.ct-info-places > li > .ct-link { display: inline-block; margin-top: 18px; padding: 6px 0; }

.ct-info-map { margin-top: 40px; }
.ct-info-map #map-canvas { height: 420px; margin: 0; overflow: hidden; border-radius: var(--ct-r); }

@media (min-width: 992px) {
  .ct-info-places { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ct-line); }
  .ct-info-places > li { padding: 32px 32px 8px; border-top: 0; }
  .ct-info-places > li + li { border-left: 1px solid var(--ct-line); }
  .ct-info-places > li:first-child { padding-left: 0; }
  .ct-info-places > li:last-child { padding-right: 0; }
  .ct-info-map { margin-top: 64px; }
  .ct-info-map #map-canvas { height: 560px; }
}

/* ---------- 404 page ---------- */
.ct-notfound {
  display: grid;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: var(--ct-space);
}

.ct-notfound .ct-h1 { font-size: min(calc((100vw - 2 * var(--ct-gutter)) * 0.118), 5rem); }
.ct-notfound-body > * + * { margin-top: 18px; }
.ct-notfound .ct-body { max-width: 46ch; font-size: 1.125rem; line-height: 1.55; }

.ct-notfound-body > .ct-notfound-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.ct-notfound-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--ct-r);
}

.ct-notfound-photo figcaption { margin-top: 10px; font-size: 0.8125rem; color: var(--ink-2); }

@media (min-width: 576px) {
  .ct-notfound-body > .ct-notfound-actions { flex-direction: row; flex-wrap: wrap; gap: 12px 16px; }
}

@media (min-width: 768px) {
  .ct-notfound { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 56px; padding-top: 72px; }
  .ct-notfound-photo img { aspect-ratio: 4 / 5; }
}

.ct-mail-preview {
  margin-top: 40px;
  padding: 20px;
  border: 1px dashed var(--salmon);
  border-radius: var(--ct-r-sm);
  background: #fff8f2;
  font-size: 0.9375rem;
}

@media (prefers-reduced-motion: reduce) {
  .ct-track-fill,
  .ct-frame img,
  .ct-frame-cap,
  .ct-float,
  .ct-faq summary::before,
  .ct-faq summary::after { transition: none; }
  .ct-strip-list { scroll-behavior: auto; }
}

.ct-choice .ct-error { flex-basis: 100%; }

/* The form in two groups: the event, and contact details */
.ct-group { min-width: 0; margin: 0; padding: 0; border: 0; }

.ct-group + .ct-group {
  padding-top: 28px;
  border-top: 1px solid rgba(244, 241, 236, 0.18);
}

.ct-group-title {
  float: left;
  width: 100%;
  margin-bottom: 18px;
  padding: 0;
  font-family: var(--display-font);
  font-weight: var(--display-weight);
  font-synthesis: none;
  font-size: 1.25rem;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--on-night);
}

.ct-group-grid { clear: both; display: grid; gap: 22px 24px; }

@media (min-width: 768px) {
  .ct-group-grid { grid-template-columns: 1fr 1fr; }
}

.ct-form [hidden] { display: none; }
.ct-form ::placeholder { color: var(--ct-on-night-2); opacity: 1; }
