:root {
  color-scheme: light;
  --ink: #171614;
  --ink-soft: #4f4942;
  --paper: #fbf7ef;
  --paper-deep: #efe4d1;
  --surface: #fffdf8;
  --green: #395f52;
  --green-dark: #18382f;
  --burgundy: #8b3445;
  --gold: #c4904a;
  --line: rgba(23, 22, 20, 0.14);
  --shadow: 0 22px 60px rgba(24, 19, 14, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fffdf8;
  background: linear-gradient(180deg, rgba(14, 17, 15, 0.72), rgba(14, 17, 15, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 253, 248, 0.7);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: clamp(12px, 2.4vw, 30px);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
  opacity: 0.9;
}

.nav-links a:hover,
.nav-links a:focus {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  padding: 120px clamp(18px, 5vw, 72px) 56px;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media {
  background-image: url("assets/hero-publishing-desk.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.01);
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(15, 18, 16, 0.86) 0%, rgba(15, 18, 16, 0.68) 34%, rgba(15, 18, 16, 0.22) 72%),
    linear-gradient(0deg, rgba(15, 18, 16, 0.38), rgba(15, 18, 16, 0.08));
}

.hero-content {
  width: min(760px, 100%);
  color: #fffdf8;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--burgundy);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.band-dark .eyebrow {
  color: #f0b969;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(3rem, 8vw, 6.4rem);
  font-weight: 650;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 3.4vw, 3.5rem);
  font-weight: 650;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.hero-lead {
  width: min(650px, 100%);
  margin-bottom: 28px;
  color: rgba(255, 253, 248, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  background: var(--gold);
  color: #18130e;
}

.button-secondary {
  border-color: rgba(255, 253, 248, 0.52);
  color: #fffdf8;
  background: rgba(255, 253, 248, 0.08);
}

.intro {
  padding: 42px clamp(18px, 5vw, 72px);
  background: var(--green);
  color: #fffdf8;
}

.intro p {
  width: min(1120px, 100%);
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.1vw, 2.1rem);
  line-height: 1.18;
}

.section {
  padding: clamp(64px, 9vw, 118px) clamp(18px, 5vw, 72px);
}

.band-light {
  background: var(--surface);
}

.section-heading {
  width: min(920px, 100%);
  margin-bottom: clamp(34px, 5vw, 58px);
}

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

.format-card {
  min-height: 270px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 10px 30px rgba(24, 19, 14, 0.08);
}

.format-icon {
  display: inline-block;
  margin-bottom: 58px;
  color: var(--burgundy);
  font-weight: 800;
}

.format-card p,
.copy-stack p,
.process p,
.contact p,
.production-item p,
.directory-panel p {
  color: var(--ink-soft);
}

.productions {
  background: var(--paper);
}

.production-list {
  display: grid;
  gap: 14px;
}

.production-item {
  display: grid;
  grid-template-columns: minmax(210px, 0.7fr) minmax(260px, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(24, 19, 14, 0.08);
}

.production-item h3 {
  margin-bottom: 0;
}

.production-item p {
  margin-bottom: 0;
}

.production-type,
.production-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.production-type {
  margin-bottom: 10px;
  color: var(--burgundy);
  background: rgba(139, 52, 69, 0.1);
}

.production-status {
  justify-self: end;
  color: var(--green-dark);
  background: rgba(57, 95, 82, 0.14);
  white-space: nowrap;
}

.author-directory {
  background: var(--surface);
}

.directory-panel {
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: var(--shadow);
}

.directory-panel > p {
  width: min(760px, 100%);
  margin-bottom: 28px;
  font-size: 1.06rem;
}

.directory-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.directory-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
}

.directory-row span {
  padding: 16px;
  background: var(--surface);
}

.directory-head span {
  background: var(--green-dark);
  color: #fffdf8;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: clamp(32px, 7vw, 88px);
  align-items: start;
  background: var(--paper-deep);
}

.copy-stack {
  font-size: 1.08rem;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 14px;
  height: 2px;
  background: var(--burgundy);
}

.band-dark {
  background: var(--green-dark);
  color: #fffdf8;
}

.band-dark .section-heading {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 248, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.16);
}

.process div {
  min-height: 230px;
  padding: 28px;
  background: rgba(255, 253, 248, 0.06);
}

.process strong {
  display: block;
  margin-bottom: 46px;
  color: #f0b969;
  font-size: 0.92rem;
}

.process p {
  color: rgba(255, 253, 248, 0.74);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 7vw, 86px);
  align-items: start;
  background: var(--surface);
}

.contact p {
  width: min(620px, 100%);
  margin-top: 24px;
  font-size: 1.08rem;
}

.contact-box {
  display: grid;
  gap: 7px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  font-style: normal;
}

.contact-box strong {
  margin-bottom: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.contact-box a {
  color: var(--green);
  font-weight: 800;
  text-underline-offset: 4px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 72px);
  background: #171614;
  color: rgba(255, 253, 248, 0.78);
  font-size: 0.94rem;
}

.site-footer a {
  color: #fffdf8;
  font-weight: 700;
  text-underline-offset: 4px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.legal-page {
  background: var(--paper);
}

.legal-header {
  display: flex;
  justify-content: space-between;
  padding: 24px clamp(18px, 5vw, 72px);
  background: var(--green-dark);
  color: #fffdf8;
}

.legal-brand {
  color: #fffdf8;
}

.legal-main {
  padding: clamp(36px, 7vw, 82px) clamp(18px, 5vw, 72px);
}

.legal-content {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-content h1 {
  margin-bottom: 34px;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.legal-content h2 {
  margin-bottom: 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.35rem;
  line-height: 1.25;
}

.legal-content section + section {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.legal-content p {
  color: var(--ink-soft);
}

.legal-content address {
  margin-bottom: 14px;
  font-style: normal;
}

.legal-content a {
  color: var(--green);
  font-weight: 700;
  text-underline-offset: 4px;
}

.cookie-banner {
  position: fixed;
  z-index: 40;
  left: clamp(14px, 3vw, 28px);
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(920px, calc(100% - 28px));
  margin: 0 auto;
  padding: 16px 18px;
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: 8px;
  background: rgba(24, 56, 47, 0.96);
  color: #fffdf8;
  box-shadow: 0 18px 55px rgba(24, 19, 14, 0.28);
}

.cookie-banner p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.cookie-button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 10px 16px;
  border: 0;
  border-radius: 4px;
  background: var(--gold);
  color: #18130e;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.cookie-button:hover,
.cookie-button:focus {
  background: #d7a45f;
}

@media (max-width: 820px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 88vh;
    padding-top: 104px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(15, 18, 16, 0.88), rgba(15, 18, 16, 0.48)),
      linear-gradient(0deg, rgba(15, 18, 16, 0.45), rgba(15, 18, 16, 0.12));
  }

  .format-grid,
  .process,
  .production-item,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  .production-status {
    justify-self: start;
  }

  .directory-row {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .format-card,
  .process div {
    min-height: auto;
  }

  .format-icon,
  .process strong {
    margin-bottom: 28px;
  }
}

@media (max-width: 520px) {
  .hero-actions,
  .site-footer {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
