@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('/fonts/Atkinson-Hyperlegible-Regular-102a.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('/fonts/Atkinson-Hyperlegible-Bold-102a.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('/fonts/Atkinson-Hyperlegible-Italic-102a.woff2') format('woff2');
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('/fonts/Atkinson-Hyperlegible-BoldItalic-102a.woff2') format('woff2');
  font-weight: bold;
  font-style: italic;
}

@font-face {
  font-family: 'Manchego';
  src: url('/fonts/Manchego.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --color-bg: #6B5D56;
  --color-text: #F5F1E8;
  --color-text-muted: #E8B84D;
  --color-border: #4A3F39;
  --color-link: #F5F1E8;
  --color-accent: #E07856;
  --color-green: #7A9B6E;
  --color-green-dark: #4A6B47;
  --color-yellow: #E8B84D;
}

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

body {
  font-family: 'Atkinson Hyperlegible', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Manchego', serif;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.75rem, 3vw, 2.375rem); }
h4 { font-size: clamp(1.625rem, 2.5vw, 2rem); }
h5 { font-size: clamp(1.5rem, 2vw, 1.75rem); }
h6 { font-size: clamp(1.375rem, 1.5vw, 1.5rem); }

header {
  margin-bottom: 3rem;
  text-align: center;
}

header h1 {
  font-family: 'Manchego', serif;
  font-size: 4rem;
  margin-bottom: 0.5rem;
  margin: 0 auto;
  display: flex;
  align-content: center;
  justify-content: center;
}

header h1 a {
  text-decoration: none;
  color: var(--color-bg);
  display: inline-block;
  background: var(--color-accent);
  border: 1rem solid var(--color-accent);
  border-radius: 50%;
  padding: 3rem 2rem 2rem 2rem;
  width: 20rem;
  height: 20rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
}

header p {
  color: var(--color-text-muted);
  font-family: 'Manchego', serif;
  font-size: 3rem;
  line-height: 1;
  margin-top: 2rem;
}

nav {
  margin: 0 auto;
  padding: 1rem 0;
  display: flex;
  align-items: space-around;
  justify-content: space-around;
  background: var(--color-green);
}

nav a {
  text-decoration: none;
  font-family: 'Manchego', serif;
  font-size: 2rem;
  color: var(--color-text);
}

nav a:hover {
  text-decoration: underline;
}

nav a.active {
  color: var(--color-yellow);
  text-decoration: underline;
}



main {
  margin-bottom: 3rem;
  margin-top: 3rem;
}

footer {
  margin-top: 4rem;
  padding-top: 2rem;
  color: var(--color-text-muted);
  font-size: 2rem;
  text-align: center;
  font-family: "Manchego";
}

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

footer a:hover {
  text-decoration: underline;
}

.voids-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.void-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.void-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.void-card h2 a {
  text-decoration: none;
  color: var(--color-text);
}

.void-card h2 a:hover {
  text-decoration: underline;
}

.void-meta {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--color-border);
  border-radius: 3px;
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--color-text);
}

.tag:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

.void h2:first-of-type {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.void-content {
  margin-top: 2rem;
  line-height: 1.8;
}

.void-content p {
  margin-bottom: 1rem;
}

.void-content h3,
.void-content h4,
.void-content h5,
.void-content h6 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.void-content ul,
.void-content ol {
  margin: 1rem 0 1rem 0.75rem;
  padding-left: 0.25rem;
}

.void-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.void-content ul li {
  list-style-type: none;
  position: relative;
  padding-left: 1.5rem;
}

.void-content ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 1.5rem;
  line-height: 1;
}

.void-content ol {
  counter-reset: list-counter;
}

.void-content ol li {
  counter-increment: list-counter;
  position: relative;
  padding-left: 2rem;
}

.void-content ol li::before {
  content: counter(list-counter) ".";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
}

.void-content img {
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
}

.void-images {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  margin: 2rem 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) var(--color-border);
}

.void-images::-webkit-scrollbar {
  height: 8px;
}

.void-images::-webkit-scrollbar-track {
  background: var(--color-border);
}

.void-images::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 4px;
}

.void-images img {
  flex: 0 0 100%;
  width: 100%;
  max-width: 800px;
  height: auto;
  scroll-snap-align: center;
  object-fit: contain;
}

@media (min-width: 768px) {
  .void-images img {
    flex: 0 0 80%;
  }
}

/* Plain horizontal zig-zag line */
.zig-zag-line {
  --a: 90deg;
  --s: 50px;
  --b: 1rem;

  background: var(--color-green);
  height: calc(var(--b) + var(--s)/(2*tan(var(--a)/2)));
  width: 100%;
  --_g:var(--s) repeat-x conic-gradient(from calc(var(--a)/-2) at bottom,
    #0000,#000 1deg calc(var(--a) - 1deg),#0000 var(--a));
  mask: 50% calc(-1*var(--b))/var(--_g) exclude,50%/var(--_g);
}

/* Horizontal nav zig-zags (mobile) */
.zig-zag-top {
  background: var(--color-green);
  height: 30px;
  width: 100%;
  mask: repeating-conic-gradient(from -45deg at 50% 0px, #0000 0, #000 1deg 89deg, #0000 90deg 180deg) 50% 0px/60px;
}

.zig-zag-bottom {
  background: var(--color-green);
  height: 30px;
  width: 100%;
  mask: repeating-conic-gradient(from 135deg at 50% 30px, #0000 0, #000 1deg 89deg, #0000 90deg 180deg) 50% -30px/60px;
}

/* Mobile header - default */
.header-landscape {
  display: none;
}

/* Landscape mode on phones only */
@media screen and (orientation: landscape) and (max-width: 896px) {
  .header-mobile {
    display: none;
  }

  .header-landscape {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    justify-content: space-around;
  }

  .header-landscape header {
    margin-bottom: 0;
  }

  .header-landscape header h1 {
    margin: 0;
  }

  .header-landscape header h1 a {
    width: 20rem;
    height: 20rem;
    padding: 2rem 1rem 1rem 1rem;
    font-size: 4.5rem;
  }

  .nav-container-landscape {
    display: flex;
    align-items: center;
  }

  .nav-container-landscape .zig-zag-left {
    width: 30px;
    height: 15rem;
    mask: repeating-conic-gradient(from 225deg at 0px 50%, #0000 0, #000 1deg 89deg, #0000 90deg 180deg) 30px 50%/100% 60px;
  }

  .nav-container-landscape .zig-zag-right {
    width: 30px;
    height: 15rem;
    mask: repeating-conic-gradient(from 45deg at 30px 50%, #0000 0, #000 1deg 89deg, #0000 90deg 180deg) -30px 50%/100% 60px;
  }

  .header-landscape nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1rem;
    margin: 0;
    background: var(--color-green);
    text-align: center;
  }

  .header-landscape nav a {
    font-size: 2.5rem;
    margin: 0;
  }
}
