@font-face {
  font-family: "IM Fell English SC";
  src: url("fonts/im-fell-english-sc.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IM Fell French Canon";
  src: url("fonts/im-fell-french-canon-italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #e2d5b9;
  --paper-hot: #efe4c8;
  --ink: #2b2118;
  --sepia: #6b4e2e;
  --madder: #b5574b;
  --tap: 56px;
}

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

html {
  background: #cfc1a3;
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IM Fell French Canon", "Times New Roman", serif;
  font-style: italic;
  line-height: 1.5;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, #efe4c8 0%, transparent 70%),
    #cfc1a3;
}

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

a {
  color: inherit;
}

.wrap {
  width: min(100%, 440px);
  margin: 0 auto;
  padding: 20px 14px 40px;
}

.plate {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: 36px 20px 24px;
  border: 2px solid var(--ink);
  box-shadow:
    inset 0 0 0 3px var(--paper),
    inset 0 0 0 5px var(--ink),
    0 10px 40px rgba(43, 33, 24, 0.12);
}

.orn {
  position: absolute;
  width: 72px;
  height: 72px;
  pointer-events: none;
  user-select: none;
  mix-blend-mode: multiply;
  z-index: 0;
}

.hero,
.eps-head,
.eps,
.foot {
  position: relative;
  z-index: 1;
}

.orn-tl { top: 6px; left: 6px; }
.orn-tr { top: 6px; right: 6px; }
.orn-bl { bottom: 6px; left: 6px; }
.orn-br { bottom: 6px; right: 6px; }

.hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.logo {
  width: 88px;
  height: 88px;
  object-fit: cover;
  background: var(--paper);
}

.wordmark {
  width: min(100%, 420px);
  height: auto;
}

.tagline {
  margin: 4px 0 0;
  max-width: 36ch;
  font-size: clamp(1rem, 0.94rem + 0.4vw, 1.25rem);
  line-height: 1.4;
  color: var(--sepia);
}

.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--tap);
  padding: 12px 16px;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-family: "IM Fell English SC", "Times New Roman", serif;
  font-style: normal;
  font-size: clamp(1.12rem, 1.05rem + 0.35vw, 1.4rem);
  letter-spacing: 0.06em;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper-hot);
}

.btn:hover,
.btn:focus-visible {
  background: var(--madder);
  border-color: var(--madder);
  color: #f7eed6;
  outline: none;
}

.btn:active {
  transform: scale(0.985);
}

.eps-head {
  margin: 28px 0 12px;
  font-family: "IM Fell English SC", "Times New Roman", serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.25rem, 1.15rem + 0.5vw, 1.8rem);
  letter-spacing: 0.08em;
  color: var(--ink);
}

.eps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

.tile {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #2b2118;
  text-decoration: none;
  color: var(--paper-hot);
  box-shadow: 0 0 0 1px rgba(43, 33, 24, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.tile .badge,
.tile .cap {
  position: absolute;
  left: 0;
  right: 0;
  font-family: "IM Fell English SC", "Times New Roman", serif;
  font-style: normal;
  letter-spacing: 0.04em;
  line-height: 1.15;
  z-index: 1;
}

.tile .badge {
  top: 0;
  padding: 7px 10px 8px;
  background: rgba(43, 33, 24, 0.86);
  color: var(--paper-hot);
  font-size: clamp(0.8rem, 0.74rem + 0.25vw, 1rem);
  text-align: center;
}

.tile .cap {
  bottom: 0;
  padding: 28px 10px 8px;
  background: linear-gradient(to top, rgba(43, 33, 24, 0.92) 0%, rgba(43, 33, 24, 0.55) 55%, transparent 100%);
  font-size: clamp(0.95rem, 0.88rem + 0.35vw, 1.2rem);
}

a.tile:hover,
a.tile:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 0 2px var(--madder);
  outline: none;
}

.tile.soon {
  cursor: default;
}

.foot {
  margin-top: 28px;
  padding-bottom: 8px;
  text-align: center;
  color: var(--sepia);
  font-size: clamp(0.82rem, 0.78rem + 0.15vw, 0.95rem);
}

.foot p {
  margin: 0 0 4px;
}

/* Tablet / small desktop */
@media (min-width: 880px) {
  .wrap {
    width: min(100%, 1120px);
    padding: 40px 32px 64px;
  }

  .plate {
    padding: 48px 48px 36px;
  }

  .orn {
    width: 100px;
    height: 100px;
  }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 380px);
    gap: 36px 48px;
    align-items: center;
  }

  .brand {
    align-items: flex-start;
    text-align: left;
  }

  .logo {
    width: 96px;
    height: 96px;
  }

  .wordmark {
    width: min(100%, 560px);
  }

  .tagline {
    max-width: 40ch;
  }

  .eps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .eps-head {
    margin-top: 40px;
  }
}

/* Wide desktop: 1440 and 1920 */
@media (min-width: 1440px) {
  .wrap {
    width: min(100%, 1520px);
    padding: 56px 48px 80px;
  }

  .plate {
    padding: 56px 72px 48px;
  }

  .orn {
    width: 110px;
    height: 110px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 440px);
    gap: 48px 80px;
  }

  .logo {
    width: 112px;
    height: 112px;
  }

  .wordmark {
    width: min(100%, 680px);
  }

  .eps {
    gap: 20px;
  }

  .tile .cap {
    padding: 36px 14px 12px;
  }
}

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

  .btn:active,
  a.tile:hover,
  a.tile:focus-visible {
    transform: none;
  }
}
