/* WALLED IN — walledin.co.uk */

@font-face {
  font-family: 'Anton';
  src: url('/fonts/anton-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-latin-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --saffron: #F4C430;
  --stigma: #C73E1D;
  --chalk: #F5F1E8;
  --ink: #1C1B1A;
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--chalk);
  color: var(--ink);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, .head__mark, .foot__mark {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

a:focus-visible { outline: 3px solid var(--stigma); outline-offset: 3px; }

/* ticker */
.ticker {
  background: var(--ink);
  color: var(--chalk);
  overflow: hidden;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 0;
}
.ticker__track {
  display: inline-flex;
  white-space: nowrap;
  animation: tick 30s linear infinite;
}
@keyframes tick {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
}

/* header */
.head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 8px;
}
.head__mark {
  font-size: 1.6rem;
  color: var(--ink);
  text-decoration: none;
}
.head__nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  margin-left: 22px;
  border-bottom: 2px solid transparent;
}
.head__nav a:hover { border-bottom-color: var(--saffron); }

/* hero */
.hero { padding: 9vh 20px 11vh; position: relative; }
.hero__maze {
  position: absolute;
  width: 620px;
  height: 620px;
  right: -140px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
  z-index: -1;
}
@media (max-width: 900px) {
  .hero__maze { width: 420px; height: 420px; right: -200px; opacity: 0.35; }
}
.hero__line {
  font-size: clamp(3.4rem, 12.5vw, 9.5rem);
  line-height: 0.95;
  display: grid;
}
.hero__hollow {
  color: transparent;
  -webkit-text-stroke: 3px var(--ink);
  text-stroke: 3px var(--ink);
}
.hero__dot { color: var(--stigma); -webkit-text-stroke: 0; }
.hero__sub {
  margin: 26px 0 34px;
  font-size: 1.25rem;
  max-width: 34ch;
}

/* buttons */
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--chalk);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 15px 30px;
  border: 2px solid var(--ink);
}
.btn:hover { background: var(--saffron); color: var(--ink); }
.btn--saffron { background: var(--saffron); color: var(--ink); }
.btn--saffron:hover { background: var(--ink); color: var(--chalk); }

/* battlement strip */
.crenel {
  height: 18px;
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 30px, transparent 30px 52px) top / 100% 10px no-repeat,
    linear-gradient(var(--ink), var(--ink)) bottom / 100% 8px no-repeat;
}

/* sections */
section { scroll-margin-top: 24px; }
.tees, .why, .list { padding: 72px 0; }

.tag {
  display: inline-block;
  background: var(--saffron);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  margin-bottom: 14px;
}

h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 14px; }

.lede { max-width: 52ch; margin-bottom: 38px; }

.grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .grid { grid-template-columns: 1fr; } }

.card__media {
  position: relative;
  border: 1.5px solid var(--ink);
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card__media img {
  width: 100%;
  height: auto;
  display: block;
}
.card__alt {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.card:hover .card__media {
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 var(--ink);
}
.card:hover .card__alt { opacity: 1; }
.card h3 { font-size: 1.3rem; margin-top: 14px; }
.card p {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
}

.tees__more { margin-top: 34px; font-weight: 600; }

/* town facts — saffron band */
.town { background: var(--saffron); padding: 44px 0; }
.town__facts {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  font-weight: 600;
  line-height: 1.45;
}
.town__facts span {
  display: block;
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 8px;
}
@media (max-width: 760px) { .town__facts { grid-template-columns: 1fr; gap: 22px; } }

/* why — inverted panel */
.why { background: var(--ink); color: var(--chalk); }
.why h2 { color: var(--saffron); }
.why p { max-width: 52ch; }
.why p + p { margin-top: 16px; }
.why__row { display: flex; align-items: center; gap: 56px; }
.why__crest { width: 150px; flex: none; }
@media (max-width: 700px) { .why__crest { display: none; } }

/* list */
.list p { max-width: 52ch; margin-bottom: 30px; }

/* footer */
.foot {
  background: var(--ink);
  color: var(--chalk);
  padding: 56px 0 40px;
  border-top: 10px solid var(--saffron);
}
.foot__mark { font-size: 2rem; }
.foot__label {
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--saffron);
  margin: 6px 0 18px;
}
.foot__places {
  margin-top: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--saffron);
  opacity: 0.85;
}
.foot__small { margin-top: 10px; font-size: 0.8125rem; opacity: 0.6; }

/* 404 */
.lost { padding: 16vh 20px; text-align: center; }
.lost h1 { font-size: clamp(2.6rem, 9vw, 6rem); line-height: 1; }
.lost p { margin: 22px 0 34px; }
