/* Values from the Cocoa Cream design system's tokens/ (Claude Design project "TcgRebel Design System"). */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/fraunces-latin-500-normal.woff2) format('woff2');
}

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/figtree-latin-400-normal.woff2) format('woff2');
}

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/figtree-latin-500-normal.woff2) format('woff2');
}

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/figtree-latin-600-normal.woff2) format('woff2');
}

:root {
  color-scheme: light dark;

  --page: #F7F1E8;
  --card: #FFFEFB;
  --sunken: #EFE7D8;
  --ink: #2E261B;
  --ink2: #776C56;
  --muted: #6E624D;
  --hair: #E4DBCB;
  --accent: #B4622F;
  --asoft: #EFDCC6;
  --aink: #7A3E18;

  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Figtree', system-ui, -apple-system, sans-serif;

  --text-display: 28px;
  --text-title: 24px;
  --text-lg: 15px;
  --text-sm: 12px;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  --leading-tight: 1.15;
  --leading-body: 1.55;

  --space-2: 4px;
  --space-4: 8px;
  --space-6: 12px;
  --space-8: 16px;
  --space-12: 24px;
  --space-14: 28px;
  --gutter: 18px;

  --radius-pill: 99px;
  --radius-3xl: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #1F1A14;
    --card: #2A241C;
    --sunken: #352E24;
    --ink: #F1E7D6;
    --ink2: #C9BBA2;
    --muted: #A79A82;
    --hair: #3C3427;
    --accent: #D68A50;
    --asoft: #45341F;
    --aink: #F0C79E;
  }
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
  -webkit-text-size-adjust: 100%;
}

.shell {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--space-14) var(--gutter) var(--space-12);
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-6);
}

.language {
  color: var(--ink2);
  font-weight: var(--weight-medium);
}

.wordmark {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: var(--weight-medium);
  font-size: var(--text-display);
  letter-spacing: 0.012em;
  line-height: var(--leading-tight);
}

.contents {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
}

.contents a {
  display: inline-block;
  padding: var(--space-2) var(--space-6);
  border-radius: var(--radius-pill);
  background: var(--sunken);
  color: var(--ink);
  font-weight: var(--weight-medium);
  text-decoration: none;
}

.contents a:hover {
  background: var(--asoft);
  color: var(--aink);
}

main {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.section {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--radius-3xl);
  padding: var(--space-8);
  scroll-margin-top: var(--space-8);
}

@media (min-width: 600px) {
  .section {
    padding: var(--space-12);
  }
}

.section h2 {
  margin: 0 0 var(--space-6);
  font-family: var(--font-serif);
  font-weight: var(--weight-medium);
  font-size: var(--text-title);
  line-height: var(--leading-tight);
}

.section h3 {
  margin: var(--space-8) 0 var(--space-2);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
}

.section p,
.section ul,
.section address {
  margin: 0 0 var(--space-6);
}

.section > :last-child {
  margin-bottom: 0;
}

.section address {
  font-style: normal;
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

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

.placeholder {
  padding: var(--space-6);
  border: 1px dashed var(--accent);
  border-radius: var(--radius-3xl);
  background: var(--asoft);
  color: var(--aink);
}

footer {
  color: var(--muted);
  font-size: var(--text-sm);
}

footer p {
  margin: 0;
}
