:root {
  --coral: #e26d61;
  --coral-deep: #c1554a;
  --green: #45cb6f;
  --green-deep: #2cae55;
  --teal: #5ba2b6;
  --ink: #6a6a6a;
  --muted: #938c8c;
  --paper: #f6f5f3;
  --white: #fff;
  --line: #e3dfda;
  --footer: #2e2c2c;
  --footer-text: #d6d6d6;
  --max: 960px;
  --font: Helvetica, Arial, sans-serif;
  --display: "League Gothic", "Arial Narrow", Impact, sans-serif;
}

@font-face {
  font-family: "League Gothic";
  src: url("../fonts/league-gothic.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f4f4f4 url("../images/gui/body.bg.png");
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
}

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

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  color: var(--coral);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-150%);
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: transparent;
}

.header-bar {
  height: 106px;
  background: url("../images/gui/header.live.bg.png") left bottom repeat-x;
}

.header-row,
.nav-row,
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-row {
  height: 106px;
}

.logo img {
  display: block;
  width: 270px;
  height: 75px;
  margin: 12px 0 0 10px;
}

.nav-bar {
  background: url("../images/gui/dash.png") left bottom repeat-x;
}

.nav-row {
  min-height: 48px;
}

.follow {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  color: #938c8c;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 14px;
}

.follow span {
  margin-right: 8px;
}

.follow a {
  display: block;
  width: 26px;
  height: 25px;
  overflow: hidden;
  background-image: url("../images/gui/menu.follow.bg.png");
  background-repeat: no-repeat;
  text-indent: -999px;
}

.follow a.twitter {
  background-position: 0 0;
}

.follow a.facebook {
  background-position: -26px 0;
}

.nav {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
}

.nav a {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 0.04em;
  color: #4d4d4d;
  line-height: 1;
}

.nav a[aria-current="page"] {
  color: #dd6c64;
}

.hero {
  position: relative;
  margin: 16px 0 8px;
  aspect-ratio: 940 / 460;
  overflow: hidden;
  border-radius: 5px;
  background: #ddd;
  box-shadow: 0 0 7px rgba(10, 10, 10, 0.2);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.hero img.is-active {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .hero img {
    transition: opacity 0.4s ease;
  }
}

.hero-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  pointer-events: none;
}

.hero-controls button {
  pointer-events: auto;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: url("../images/gui/ns.arrows.white.png") left top no-repeat;
  color: transparent;
  font-size: 0;
  cursor: pointer;
}

.hero-controls button[data-dir="next"] {
  background-position: right top;
}

.lede {
  margin: 28px 0;
  text-align: center;
  color: #aaa;
  font-size: 20px;
  font-weight: normal;
}

.section {
  padding: 16px 0 28px;
  background: url("../images/gui/dot.png") left top repeat-x;
}

.section h2,
.page-title,
.prose h1,
.event-head h1 {
  margin: 18px 0 12px;
  color: var(--coral);
  font-family: var(--display);
  font-size: 34px;
  font-weight: normal;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.figure {
  margin: 0 0 16px;
}

.figure img {
  display: block;
  width: 100%;
}

.steps,
.split {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.steps p,
.split p {
  margin: 0;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 8px 0 36px;
}

.actions h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 28px;
  font-weight: normal;
  letter-spacing: 0.03em;
}

.button {
  display: inline-block;
  height: 28px;
  margin-top: 12px;
  padding: 0 14px;
  border: 1px solid var(--coral-deep);
  border-radius: 2px;
  background: #e26d61 url("../images/gui/content.button.bg.png") 50% 50% repeat-x;
  color: #e9e9e9;
  font-weight: 700;
  font-size: 13px;
  line-height: 28px;
  text-align: center;
  text-shadow: 1px 1px 1px #c1554a;
}

.button:hover {
  background: #f04531;
  color: #fff;
}

.button.green {
  background-color: var(--green);
  border-color: var(--green-deep);
  text-shadow: 1px 1px 1px #2cae55;
}

.button.green:hover {
  background: #2cba59;
  color: #fff;
}

.center-link {
  margin: 8px 0 28px;
  text-align: right;
}

.events {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 16px;
  margin: 8px 0 20px;
}

.event-card {
  padding: 8px 8px 14px;
  border-radius: 4px;
  background: url("../images/gui/white.50.png") repeat;
  box-shadow: 0 0 7px rgba(10, 10, 10, 0.2);
  text-align: center;
}

.event-card img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border: 1px solid #e6e6e6;
}

.event-card h2 {
  margin: 8px 0 0;
  color: #6a6a6a;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

.event-head {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  align-items: center;
  margin: 25px 0 24px;
  padding: 15px;
  border-radius: 4px;
  background: url("../images/gui/white.50.png") repeat;
  box-shadow: 0 0 7px rgba(10, 10, 10, 0.2);
}

.event-head img {
  width: 140px;
  height: 140px;
  object-fit: contain;
}

.event-head h1 {
  margin-bottom: 6px;
}

.hash,
.meta {
  margin: 0;
}

.hash {
  color: var(--coral);
  font-weight: 700;
}

.empty {
  margin: 12px 0 32px;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 18px;
}

.prints {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin: 0 0 40px;
}

.prints img {
  display: block;
  width: 100%;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 40px;
  padding-bottom: 40px;
}

form {
  display: grid;
  gap: 12px;
  max-width: 520px;
}

label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  letter-spacing: 0.04em;
}

input,
textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #aeaeae;
  border-radius: 3px;
  background: #f2f2f2 url("../images/gui/shadow.png") top repeat-x;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.hint,
.form-status {
  margin: 0;
  font-size: 13px;
}

.follow-block ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.follow-block li + li {
  margin-top: 8px;
}

.login-box {
  max-width: 420px;
  margin: 12px 0 48px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
}

.prose {
  max-width: 42rem;
  padding-bottom: 40px;
}

.prose h2 {
  margin: 22px 0 8px;
  color: var(--coral);
  font-family: var(--display);
  font-size: 26px;
  font-weight: normal;
  letter-spacing: 0.03em;
}

.prose p,
.prose li {
  margin: 0 0 10px;
}

.prose ul,
.prose ol {
  margin: 0 0 12px;
  padding-left: 1.2rem;
}

.site-footer {
  min-height: 160px;
  background: url("../images/gui/footer.live.bg.png") top repeat-x;
  color: var(--footer-text);
}

.footer-row {
  align-items: flex-start;
  padding: 22px 0 28px;
}

.footer-nav {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a,
.site-footer p {
  color: var(--footer-text);
  font-size: 13px;
}

.footer-nav a {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.04em;
}

.site-footer p {
  margin: 10px 0 0;
  line-height: 1.4;
}

@media (max-width: 800px) {
  .steps,
  .split,
  .actions,
  .contact-layout,
  .events {
    grid-template-columns: 1fr 1fr;
  }

  .nav a {
    font-size: 22px;
  }
}

@media (max-width: 640px) {
  .header-bar,
  .header-row {
    height: auto;
    min-height: 88px;
  }

  .logo img {
    width: 210px;
    height: auto;
    margin: 14px 0;
  }

  .nav-row,
  .footer-row,
  .event-head {
    display: block;
  }

  .follow {
    margin-top: 4px;
  }

  .steps,
  .split,
  .actions,
  .contact-layout,
  .events {
    grid-template-columns: 1fr;
  }

  .center-link,
  .lede {
    text-align: left;
  }

  .hero {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
