/* Seven Cranes Cafe - shared styles. Colors, fonts and sizes follow the
   original Fourthwall theme (see README for provenance). */

@font-face {
  font-family: Satoshi;
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/satoshi-400.woff2') format('woff2');
}
@font-face {
  font-family: Satoshi;
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/satoshi-700.woff2') format('woff2');
}
@font-face {
  font-family: Oswald;
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/oswald-400.woff2') format('woff2');
}

:root {
  --color-primary: #013593;
  --color-on-primary: #fff;
  --color-background: #f5f3f5;
  --color-on-background: #000;
  --color-muted: rgba(0, 0, 0, 0.6);
  --color-subtle: rgba(0, 0, 0, 0.5);
  --color-line: rgba(0, 0, 0, 0.12);
  --color-surface: #fff;
  --color-tile: #dddbdf;
  --font-base: Satoshi, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-heading: Oswald, 'Arial Narrow', sans-serif;
  --radius: 16px;
  --radius-pill: 100px;
  --tap: 44px;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-background);
  color: var(--color-on-background);
  font-family: var(--font-base);
  font-size: 1rem;
  line-height: 1.5;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 2rem;
}

p {
  margin: 0;
}

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

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

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-weight: 700;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.wrapper {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}

.wrapper--narrow {
  max-width: 933px;
}

@media (min-width: 640px) {
  .wrapper {
    padding: 0 32px;
  }
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 200ms;
}

.button--primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-width: 0;
}

.button--secondary {
  background: transparent;
  color: var(--color-on-background);
  border-color: currentColor;
}

.button--primary:hover {
  opacity: 0.8;
}

.button--secondary:hover {
  opacity: 0.6;
}

.button--small {
  min-height: 40px;
  padding: 0 12px;
}

.button--large {
  min-height: 56px;
  padding: 0 20px;
}

.button svg {
  flex: none;
}

/* Header */

.header {
  position: relative;
  z-index: 10;
  padding: 20px 0 8px;
  font-size: 0.875rem;
}

.header__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: 'left logo right';
  align-items: center;
}

.header__left {
  grid-area: left;
  justify-self: start;
}

.header__right {
  grid-area: right;
  justify-self: end;
}

.header__logo {
  grid-area: logo;
  display: block;
  line-height: 0;
}

.header__logo img {
  width: 215px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  margin: 0 -13px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-on-background);
  cursor: pointer;
}

.icon-button:hover {
  color: var(--color-muted);
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.header__nav {
  display: none;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 8px;
  text-decoration: none;
}

.nav-list a:hover {
  color: var(--color-muted);
}

.nav-list a[aria-current='page'] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.header__desktop-only {
  display: none;
}

@media (min-width: 640px) {
  .header {
    padding-top: 24px;
  }

  .header__logo img {
    width: 285px;
  }

  .header__nav {
    display: block;
    margin-top: 8px;
  }

  .header__mobile-only {
    display: none;
  }

  .header__desktop-only {
    display: inline-flex;
  }
}

/* Mobile menu drawer */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 20;
  visibility: hidden;
  pointer-events: none;
}

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(245, 243, 245, 0.85);
  opacity: 0;
  transition: opacity 225ms ease-out;
}

.drawer__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(300px, 85vw);
  padding: 16px 24px 32px;
  overflow-y: auto;
  background: var(--color-background);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
  transform: translateX(-100%);
  transition: transform 225ms ease-out;
}

.drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.drawer.is-open .drawer__backdrop {
  opacity: 1;
}

.drawer.is-open .drawer__panel {
  transform: none;
}

.drawer__close {
  margin: 0 0 16px -13px;
}

.drawer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.drawer__list a {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-size: 1.25rem;
  text-decoration: none;
}

.drawer__social {
  margin-top: 16px;
  margin-left: -13px;
  color: var(--color-primary);
}

@media (prefers-reduced-motion: reduce) {
  .drawer__panel,
  .drawer__backdrop {
    transition: none;
  }
}

/* Footer */

.footer {
  padding: 40px 0 32px;
  font-size: 0.875rem;
  text-align: center;
}

.footer__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer__social {
  order: -1;
}

.footer__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-size: 1rem;
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--color-muted);
}

.footer__copy {
  margin-top: 12px;
  color: var(--color-subtle);
  font-size: 0.75rem;
}

@media (min-width: 1024px) {
  .footer {
    text-align: left;
  }

  .footer__grid {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .footer__social {
    order: 0;
    margin-right: -13px;
  }

  .footer__links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 28px;
  }

  .footer__copy {
    margin-top: 0;
  }
}

/* Shared page sections */

.page-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 0;
  text-align: center;
}

.page-hero__inner > * + * {
  margin-top: 24px;
}

.page-hero h1 {
  font-size: 1.5rem;
}

@media (min-width: 640px) {
  .page-hero {
    min-height: 420px;
    padding: 100px 0;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .page-hero__inner > * + * {
    margin-top: 32px;
  }
}

.page-title {
  padding: 48px 0 32px;
  text-align: center;
}

@media (min-width: 640px) {
  .page-title {
    padding-top: 64px;
  }

  .page-title h1 {
    font-size: 2.5rem;
  }
}

/* Home */

.home-collage {
  max-width: 1120px;
  margin: 24px auto 0;
}

.home-collage img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.home-intro .button {
  width: 100%;
}

@media (min-width: 640px) {
  .home-collage {
    margin-top: 32px;
    padding: 0 32px;
  }

  .home-intro .button {
    width: auto;
  }
}

.serving {
  padding: 36px 0;
}

.serving__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    'left right'
    'text text';
  gap: 16px;
}

.serving__photo {
  width: 100%;
  aspect-ratio: 626 / 937;
  object-fit: cover;
}

.serving__photo--left {
  grid-area: left;
}

.serving__photo--right {
  grid-area: right;
}

.serving__text {
  grid-area: text;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
  font-size: 1.25rem;
  line-height: 1.3;
}

.serving__group {
  margin: 0;
  width: 100%;
  max-width: 300px;
}

.serving__script {
  width: 150px;
  margin-bottom: 4px;
}

.serving__lines {
  margin: 0;
  padding: 0;
  list-style: none;
}

.serving__lines--places {
  padding-left: 64px;
  font-size: 1.5rem;
}

.serving__lines--events li:nth-child(2) {
  padding-left: 64px;
}

.serving__lines--events li:nth-child(3) {
  padding-left: 120px;
}

@media (min-width: 900px) {
  .serving {
    padding: 48px 0;
  }

  .serving__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas: 'left text right';
    gap: 0;
    align-items: stretch;
  }

  .serving__text {
    justify-content: space-around;
    align-items: stretch;
    padding: 4% 0 2% 1.5%;
    font-size: clamp(1.25rem, 2.2vw, 2.1rem);
  }

  .serving__group {
    max-width: none;
  }

  .serving__script {
    width: 48%;
  }

  .serving__lines--places {
    padding-left: 21%;
    font-size: clamp(1.5rem, 2.8vw, 2.6rem);
  }

  .serving__lines--places li:nth-child(2) {
    padding-left: 6%;
  }

  .serving__lines--events li:nth-child(1) {
    padding-left: 4%;
  }

  .serving__lines--events li:nth-child(2) {
    padding-left: 23%;
  }

  .serving__lines--events li:nth-child(3) {
    padding-left: 38%;
  }
}

.instagram {
  padding: 36px 0;
}

.instagram__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
  text-align: center;
}

.instagram__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.instagram__grid a {
  display: block;
}

.instagram__grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

.instagram__cta {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.instagram__cta--desktop {
  display: none;
}

@media (min-width: 640px) {
  .instagram {
    padding: 48px 0;
  }

  .instagram__header {
    flex-direction: row;
    justify-content: space-between;
    min-height: 52px;
    text-align: left;
  }

  .instagram__cta--desktop {
    display: inline-flex;
  }

  .instagram__cta--mobile {
    display: none;
  }
}

@media (min-width: 900px) {
  .instagram__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* Inquire */

.inquire {
  display: flex;
  align-items: center;
  min-height: 340px;
  padding: 56px 0 72px;
  text-align: center;
}

.inquire h1 {
  font-size: 1.5rem;
}

.inquire__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
}

.inquire__art {
  width: 220px;
}

.inquire__row .button {
  width: 100%;
  max-width: 360px;
}

@media (min-width: 640px) {
  .inquire {
    min-height: 480px;
    padding: 100px 0 48px;
  }

  .inquire h1 {
    font-size: 2rem;
  }

  .inquire__row {
    flex-direction: row;
    justify-content: center;
    gap: 32px;
    margin-top: 16px;
  }

  .inquire__art {
    width: 240px;
  }

  .inquire__row .button {
    width: auto;
    margin-bottom: 72px;
  }
}

/* Rich text pages (contact, legal, about, FAQ) */

.rich-text {
  padding: 48px 0 64px;
}

.rich-text h1 {
  margin-bottom: 24px;
  text-align: center;
}

.prose {
  font-size: 1rem;
}

.prose > * + * {
  margin-top: 16px;
}

.prose h2 {
  margin-top: 32px;
  font-size: 1.75rem;
}

.prose h3 {
  margin-top: 24px;
  font-size: 1.25rem;
}

.prose ul,
.prose ol {
  padding-left: 1.1em;
}

.prose li + li {
  margin-top: 4px;
}

.prose--center {
  text-align: center;
}

.notice {
  margin: 0 auto 32px;
  padding: 12px 16px;
  border: 2px dashed var(--color-primary);
  border-radius: var(--radius);
  color: var(--color-primary);
  font-weight: 700;
  text-align: center;
}

.faq-list {
  margin: 0;
  padding: 0;
}

.faq-list dt {
  margin-top: 28px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  text-transform: uppercase;
}

.faq-list dd {
  margin: 8px 0 0;
}

/* Merch */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0 0 48px;
  list-style: none;
}

@media (min-width: 640px) {
  .product-grid {
    gap: 32px;
  }
}

@media (min-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.product-tile {
  text-align: center;
}

.product-tile__link {
  display: block;
  text-decoration: none;
}

.product-tile__image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-tile);
  aspect-ratio: 3 / 4;
}

.product-tile__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: opacity 300ms, transform 300ms;
}

.product-tile__image img + img {
  opacity: 0;
}

@media (hover: hover) {
  .product-tile__link:hover .product-tile__image img {
    transform: scale(1.04);
  }

  .product-tile__link:hover .product-tile__image img + img {
    opacity: 1;
  }

  .product-tile__link:hover .product-tile__image img:first-child:not(:only-child) {
    opacity: 0;
  }
}

.product-tile__name {
  margin-top: 24px;
  font-family: var(--font-base);
  font-size: 1rem;
  text-transform: none;
}

.product-tile__price {
  margin-top: 2px;
}

.swatches {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
}

.swatch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  cursor: pointer;
}

.swatch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.swatch__color {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 0 3px var(--color-background), 0 0 0 5px transparent;
}

.swatch input:checked + .swatch__color {
  box-shadow: 0 0 0 3px var(--color-background), 0 0 0 5px var(--color-primary);
}

.swatch input:focus-visible + .swatch__color {
  outline: 2px solid var(--color-primary);
  outline-offset: 7px;
}

.merch-note {
  padding-bottom: 48px;
  color: var(--color-muted);
  font-size: 0.875rem;
  text-align: center;
}

.product-tile__buy {
  width: 100%;
  max-width: 220px;
  margin-top: 8px;
}

/* Inquire: packages and event requirements */

.packages {
  padding: 24px 0 48px;
  text-align: center;
}

.packages__intro {
  max-width: 640px;
  margin: 16px auto 0;
}

.packages__grid {
  display: grid;
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

@media (min-width: 900px) {
  .packages__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

.package-card {
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  border-radius: var(--radius);
  background: var(--color-surface);
}

.package-card h3 {
  font-size: 1.5rem;
}

.package-card__from {
  margin-top: 4px;
  color: var(--color-primary);
  font-weight: 700;
}

.package-card__includes {
  flex: 1 0 auto;
  margin: 16px 0 0;
  padding-left: 1.1em;
  font-size: 0.9375rem;
}

.package-card__includes li + li {
  margin-top: 4px;
}

.packages__note {
  max-width: 720px;
  margin: 24px auto 0;
  color: var(--color-muted);
  font-size: 0.9375rem;
}

.packages__cta {
  margin-top: 24px;
}

.requirements {
  padding: 24px 0 64px;
}

.requirements h2 {
  text-align: center;
}

.requirements__list {
  display: grid;
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .requirements__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.requirements__list li {
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--color-surface);
}

.requirements__list strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 400;
  text-transform: uppercase;
}
