/* Vanner Painting */

@font-face {
  font-family: "League Spartan";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("League Spartan"),
       url("LeagueSpartan.woff2") format("woff2"),
       url("LeagueSpartan.woff") format("woff");
}

:root {
  --bg: #000;
  --ink: #fff;
  --ink-2: rgb(226, 226, 226);
  --ink-3: rgb(145, 145, 145);
  --rule: rgba(255, 255, 255, 0.25);
  --display: "League Spartan", arial, helvetica, sans-serif;
  --body: Helvetica, Arial, sans-serif;
  --gutter: 24px;
  --container: 1280px;
  --section: 56px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-3);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.5;
  text-align: center;
}

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

a { color: inherit; }

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

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

section { padding-block: var(--section); }

/* Headings ---------------------------------------------------------------- */

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
}

h2 {
  font-size: 48px;
  line-height: 1.4;
}

h3 {
  font-family: var(--body);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.25;
  color: var(--ink-2);
  margin: 0 0 12px;
}

.section-rule {
  width: 48px;
  height: 0;
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 20px auto 40px;
}

.copy {
  font-size: 18px;
  line-height: 27px;
  font-style: italic;
  font-weight: 700;
  color: var(--ink-3);
  margin: 0 auto;
  max-width: 940px;
}

.copy + .copy { margin-top: 18px; }

/* Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.071em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--ink-2);
  border-radius: 48px;
  padding: 8px 40px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn:hover { background: var(--ink-2); color: #000; }

/* Hero -------------------------------------------------------------------- */

.hero { padding-block: 0 0; }

.hero__cta { padding-block: 24px; }

.hero__crest {
  max-width: 813px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* About ------------------------------------------------------------------- */

.about__image { margin: 0 auto 24px; max-width: 1016px; }
.about__image img { width: 100%; }

.about h2 { font-size: 24px; font-family: var(--body); color: var(--ink-2); margin-bottom: 20px; }

/* Three cards ------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.card img { margin: 0 auto 16px; width: 100%; }

.card .copy { max-width: none; }

/* Gallery ----------------------------------------------------------------- */

.gallery { overflow: hidden; }

.carousel {
  position: relative;
  max-width: var(--container);
  margin-inline: auto;
}

/* fixed height: the shots are mixed portrait and landscape and the page
   below jumps if the stage resizes on every advance */
.carousel__viewport { overflow: hidden; height: 860px; }

.carousel__track {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: transform 0.5s ease;
}

.carousel__slide {
  flex: 0 0 52%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.3;
  transition: opacity 0.4s ease;
}

/* flex, not display:contents (Chrome drops the off-centre slides) */
.carousel__slide picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* fill the stage without cropping */
.carousel__slide img {
  margin: 0 auto;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel__slide.is-current { opacity: 1; }

.carousel__nav {
  position: absolute;
  top: 430px;
  transform: translateY(-50%);
  z-index: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  border: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.15s ease;
}

.carousel__nav:hover { background: rgba(0, 0, 0, 0.8); }

.carousel__nav--prev { left: 8px; }
.carousel__nav--next { right: 8px; }

.thumbs {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 10px;
  list-style: none;
  margin: 20px 0 0;
  padding: 0 0 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.thumbs__item { flex: 0 0 auto; width: 70px; height: 70px; }

.thumbs__btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s ease;
}

.thumbs__btn:hover,
.thumbs__btn[aria-current="true"] { opacity: 1; }

.thumbs__btn picture { display: block; width: 100%; height: 100%; }

.thumbs__btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contact ----------------------------------------------------------------- */

.contact__name { font-size: 24px; color: var(--ink-2); margin: 0 0 16px; font-weight: 400; }

.contact__address { font-style: italic; font-weight: 700; color: var(--ink-3); margin: 0 0 24px; }
.contact__address a { text-decoration: none; }
.contact__address a:hover { text-decoration: underline; }

.contact__hours-heading { font-size: 24px; color: var(--ink-2); font-weight: 400; margin: 32px 0 12px; }

.hours-today {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  color: var(--ink-2);
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.hours-today__label { color: var(--ink-3); }

.hours-today__caret { font-size: 10px; transition: transform 0.2s ease; }
.hours-today[aria-expanded="true"] .hours-today__caret { transform: rotate(180deg); }

.hours-table {
  margin: 16px auto 0;
  border-collapse: collapse;
  color: var(--ink-3);
  font-size: 16px;
}

.hours-table th,
.hours-table td { padding: 4px 12px; font-weight: 400; text-align: left; }
.hours-table th { color: var(--ink-2); }

.contact__after-hours { margin: 24px auto; }

/* Form -------------------------------------------------------------------- */

.form-panel {
  max-width: 560px;
  margin: 32px auto 0;
  text-align: left;
}

.form-panel[hidden] { display: none; }

.form-panel h3 { text-align: center; }

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  padding: 8px 0;
}

.field textarea { min-height: 96px; resize: vertical; }

.field input:focus,
.field textarea:focus { outline: 0; border-bottom-color: var(--ink); }

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.form-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-3);
  text-align: center;
}

/* a display rule beats the [hidden] UA style, so these need it back */
.field[hidden],
.form-actions[hidden],
.form-note[hidden],
.form-status[hidden] { display: none !important; }

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

.form-status {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  color: var(--ink-2);
}

.form-status[data-state="sending"] { color: var(--ink-3); }
.form-status[data-state="error"] { color: var(--ink); }

/* Footer ------------------------------------------------------------------ */

.site-footer {
  padding-block: 32px;
  font-size: 14px;
  color: var(--ink-3);
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .carousel__slide { flex-basis: 56%; }
  .carousel__viewport { height: 640px; }
  .carousel__nav { top: 320px; }
}

@media (max-width: 620px) {
  h2 { font-size: 36px; }
  .cards { grid-template-columns: 1fr; gap: 40px; }
  .card img { max-width: 420px; }
  .carousel__slide { flex-basis: 88%; }
  .carousel__viewport { height: 520px; }
  .carousel__nav { top: 260px; width: 38px; height: 38px; }
  .thumbs__item { width: 56px; height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .carousel__track,
  .carousel__slide,
  .btn { transition: none; }
}

/* Prose pages ------------------------------------------------------------- */

.prose {
  text-align: left;
  padding-block: 48px 64px;
}

.prose .container { max-width: 720px; }

.prose__back {
  font-size: 14px;
  color: var(--ink-3);
  margin: 0 0 32px;
}

.prose__h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}

.prose__updated {
  font-size: 14px;
  color: var(--ink-3);
  margin: 12px 0 32px;
}

/* margin only; the global section padding stacks on top of it otherwise */
.prose__section {
  padding-block: 0;
  margin-top: 32px;
}

.prose__h2 {
  font-family: var(--body);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-2);
  margin: 0 0 12px;
}

.prose__p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-3);
  margin: 0 0 14px;
}

.prose__p:last-child { margin-bottom: 0; }

.prose a { color: var(--ink-2); }

.form-note a { color: var(--ink-2); }
