@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4/SourceSerif4-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4/SourceSerif4-Semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("/fonts/inter/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("/fonts/inter/Inter-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f7f4ef;
  --paper-2: #efeae2;
  --ink: #1c1917;
  --ink-secondary: #3f3a36;
  --ink-muted: #5c564e;
  --rule: #8f867c;
  --accent: #9a3412;
  --accent-deep: #7c2d12;
  --on-accent: #fffcf8;
  --warn-bg: #f8f1dc;
  --warn-ink: #6b4a0a;
  --warn-border: #8a6416;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
}

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

html {
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", "Palatino Linotype", Palatino, serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.55;
}

.skip {
  position: absolute;
  left: var(--space-2);
  top: var(--space-2);
  transform: translateY(-150%);
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", sans-serif;
  font-weight: 600;
  padding: var(--space-2) var(--space-3);
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(100% - var(--space-8), 38rem);
  margin-inline: auto;
}

header.wrap {
  padding-top: var(--space-8);
}

.mark {
  display: block;
  width: 8.5rem;
  height: auto;
}

.home header .mark {
  width: min(100%, 18rem);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
  margin-top: var(--space-6);
}

nav a,
.action,
footer a {
  font-family: Inter, "Segoe UI", sans-serif;
}

a,
a:visited,
footer a,
footer a:visited {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover,
a:focus-visible,
footer a:hover,
footer a:focus-visible {
  color: var(--accent);
}

nav a {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
}

nav a[aria-current="page"] {
  color: var(--accent-deep);
}

nav a[aria-current="page"]:hover,
nav a[aria-current="page"]:focus-visible {
  color: var(--accent);
}

main {
  padding-block: var(--space-8) var(--space-12);
}

h1,
h2 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0 0 var(--space-4);
  font-size: clamp(2.15rem, 7vw, 3.15rem);
  line-height: 1.12;
}

h2 {
  margin: 0 0 var(--space-4);
  font-size: 1.6rem;
  line-height: 1.2;
}

p,
li {
  margin: 0 0 var(--space-4);
}

.lead {
  color: var(--ink-secondary);
  font-size: 1.25rem;
  line-height: 1.45;
}

.action,
.action:visited {
  display: inline-block;
  margin-top: var(--space-2);
  color: var(--accent-deep);
  font-weight: 600;
}

.action:hover,
.action:focus-visible {
  color: var(--accent);
}

.volume {
  margin-top: var(--space-2);
  padding-left: var(--space-5);
  border-left: 3px solid var(--accent);
}

ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.25rem;
}

.price {
  font-family: Inter, "Segoe UI", sans-serif;
  font-weight: 600;
}

.offers {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.offer {
  margin: 0;
}

.offer-name,
.offer-state {
  font-family: Inter, "Segoe UI", sans-serif;
}

.offer-name {
  font-weight: 600;
}

.offer-state {
  color: var(--ink-secondary);
}

figure {
  margin: 0 0 var(--space-6);
}

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

figcaption {
  margin-top: var(--space-2);
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--ink-muted);
}

.legal-source h2,
.legal-extra h2 {
  margin-top: var(--space-8);
}

.legal-source code {
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 0.95em;
  background: var(--paper-2);
  padding: 0 0.2em;
}

.table-scroll {
  overflow-x: auto;
  margin-bottom: var(--space-4);
}

.legal-source table {
  width: 100%;
  border-collapse: collapse;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.4;
}

.legal-source th,
.legal-source td {
  border-bottom: 1px solid var(--rule);
  padding: var(--space-2) var(--space-2) var(--space-2) 0;
  text-align: left;
  vertical-align: top;
}

.legal-source th {
  font-weight: 600;
}

.legal-extra {
  margin: var(--space-6) 0;
  padding: var(--space-4);
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
}

.legal-extra h2 {
  margin-top: 0;
  color: var(--warn-ink);
}

.legal-extra p:last-child {
  margin-bottom: 0;
}

.note {
  color: var(--ink-secondary);
}

footer.wrap {
  padding-bottom: var(--space-12);
  border-top: 1px solid var(--rule);
  padding-top: var(--space-6);
}

.mark-foot {
  width: 7rem;
  margin-bottom: var(--space-4);
}

.legal-note {
  color: var(--ink-secondary);
  font-size: 1rem;
  line-height: 1.45;
}

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

@media (prefers-reduced-motion: no-preference) {
  .home h1 {
    animation: rise 0.55s ease-out both;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

footer.wrap {
  font-size: 0.875rem;
  line-height: 1.4;
}

footer .foot-line {
  margin: 0 0 var(--space-1);
  font-family: Inter, "Segoe UI", sans-serif;
}

footer .foot-links {
  gap: var(--space-1) var(--space-4);
  margin-top: var(--space-2);
}

footer .foot-links a {
  font-size: 0.875rem;
  font-weight: 400;
}

footer .legal-note {
  margin-top: var(--space-2);
  font-size: 0.8125rem;
}

@media (max-width: 480px) {
  footer.wrap {
    width: min(100% - var(--space-4), 38rem);
  }

  footer .foot-line:first-of-type {
    font-size: 0.75rem;
    line-height: 1.35;
  }
}
