/* Font Faces */
@font-face {
  font-family: "domaine";
  src: url("/fonts/domaine-display-black-italic.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "untitled";
  src: url("/fonts/untitled-serif-regular.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "untitled";
  font-style: italic;
  src: url("/fonts/untitled-serif-regular-italic.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "soehne";
  font-weight: normal;
  src: url("/fonts/soehne-buch.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "soehne";
  font-weight: 500;
  src: url("/fonts/soehne-kraftig.woff2") format("woff2");
  font-display: swap;
}

/* CSS Reset and Base */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "soehne", system-ui, -apple-system, sans-serif;
  font-size: 20px;
  line-height: 32px;
  -webkit-font-smoothing: antialiased;
  background-color: #e8e8e2;
  color: #1b1b18;
  transition: background-color 0.15s ease, color 0.15s ease;
}

html.dark body {
  background-color: #000;
  color: #e8e8e2;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* Skip Link */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  background: #1b1b18;
  color: #e8e8e2;
  text-decoration: none;
  font-size: 14px;
  z-index: 100;
}

.skip-link:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: 8px 16px;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

html.dark .skip-link {
  background: #e8e8e2;
  color: #1b1b18;
}

/* Typography */
a {
  color: inherit;
  text-decoration: underline;
  transition: color 0.15s ease;
}

a:hover {
  color: #ff6200;
}

nav a {
  text-decoration: none;
}

p strong {
  font-weight: 500;
}

.font-medium {
  font-weight: 500;
}

.font-display {
  font-family: "domaine", serif;
}

.font-serif {
  font-family: "untitled", serif;
}

.font-sans {
  font-family: "soehne", system-ui, sans-serif;
}

/* Text Sizes */
.text-xs {
  font-size: 12px;
  line-height: 16px;
}

.text-sm {
  font-size: 16px;
  line-height: 16px;
}

.text-base {
  font-size: 20px;
  line-height: 32px;
}

.text-lg {
  font-size: 24px;
  line-height: 32px;
}

.text-xl {
  font-size: 32px;
  line-height: 64px;
}

/* Layout */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.max-w-7xl {
  max-width: 80rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.pt-1 {
  padding-top: 0.25rem;
}

.pt-2 {
  padding-top: 0.5rem;
}

.pb-2\.5 {
  padding-bottom: 0.625rem;
}

.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.pl-4 {
  padding-left: 1rem;
}

/* Margins */
.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-9 {
  margin-bottom: 2.25rem;
}

.mb-20 {
  margin-bottom: 5rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mt-20 {
  margin-top: 5rem;
}

/* Spacing */
.space-y-7 > * + * {
  margin-top: 1.75rem;
}

.space-y-8 > * + * {
  margin-top: 2rem;
}

.space-x-2 > * + * {
  margin-left: 0.5rem;
}

.space-x-12 > * + * {
  margin-left: 3rem;
}

.gap-3 {
  gap: 0.75rem;
}

/* Flexbox */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

/* Grid */
.grid {
  display: grid;
}

.grid-cols-12 {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.col-span-11 {
  grid-column: span 11 / span 11;
}

.col-span-12 {
  grid-column: span 12 / span 12;
}

/* Sizing */
.w-full {
  width: 100%;
}

.w-6 {
  width: 1.5rem;
}

.w-11 {
  width: 2.75rem;
}

.w-14 {
  width: 3.5rem;
}

.h-6 {
  height: 1.5rem;
}

.h-auto {
  height: auto;
}

.h-36 {
  height: 9rem;
}

.min-h-screen {
  min-height: 100vh;
}

.min-h-0 {
  min-height: 0;
}

/* Positioning */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.bottom-16 {
  bottom: 4rem;
}

.-right-5 {
  right: -1.25rem;
}

/* Z-index */
.z-0 {
  z-index: 0;
}

.z-10 {
  z-index: 10;
}

/* Display */
.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.inline {
  display: inline;
}

.hidden {
  display: none;
}

/* Background */
.bg-cover {
  background-size: cover;
}

.bg-center {
  background-position: center;
}

.bg-black {
  background-color: #000;
}

/* Colors */
.text-white {
  color: #fff;
}

.text-brand-gray-dark {
  color: #1b1b18;
}

.text-brand-gray {
  color: #e8e8e2;
}

.text-brand-orange {
  color: #ff6200;
}

html.dark .dark\:text-brand-gray {
  color: #e8e8e2;
}

/* Theme toggle buttons in dark mode */
html.dark #theme-toggle,
html.dark #theme-toggle-mobile {
  color: #e8e8e2;
}

html.dark #theme-toggle:hover,
html.dark #theme-toggle-mobile:hover {
  color: #ff6200;
}

html.dark .dark\:text-brand-orange {
  color: #ff6200;
}

html.dark .dark\:bg-black {
  background-color: #000;
}

html.dark .dark\:border-white {
  border-color: #fff;
}

html.dark .dark\:hover\:text-brand-orange:hover {
  color: #ff6200;
}

.hover\:text-brand-orange:hover {
  color: #ff6200;
}

/* Border */
.border {
  border-width: 1px;
  border-style: solid;
}

.border-black {
  border-color: #000;
}

/* Lists */
.list-disc {
  list-style-type: disc;
  padding-left: 1.25rem;
}

/* Overflow */
.overflow-hidden {
  overflow: hidden;
}

/* Opacity */
.opacity-0 {
  opacity: 0;
}

.opacity-100 {
  opacity: 1;
}

/* Transitions */
.transition {
  transition-property: color, background-color, border-color, opacity, transform;
  transition-timing-function: ease;
  transition-duration: 150ms;
}

.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: ease;
  transition-duration: 150ms;
}

.duration-500 {
  transition-duration: 500ms;
}

/* Transforms */
.-rotate-90 {
  transform: rotate(-90deg);
}

.rotate-90 {
  transform: rotate(90deg);
}

/* Text */
.uppercase {
  text-transform: uppercase;
}

.tracking-wide {
  letter-spacing: 0.025em;
}

.whitespace-nowrap {
  white-space: nowrap;
}

.no-underline {
  text-decoration: none;
}

.underline {
  text-decoration: underline;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Fill */
.fill-current {
  fill: currentColor;
}

/* Antialiased */
.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid #ff6200;
  outline-offset: 2px;
}

/* Responsive - md (768px+) */
@media (min-width: 768px) {
  .md\:flex {
    display: flex;
  }

  .md\:block {
    display: block;
  }

  .md\:hidden {
    display: none;
  }

  .md\:inline {
    display: inline;
  }

  .md\:items-center {
    align-items: center;
  }

  .md\:justify-center {
    justify-content: center;
  }

  .md\:justify-between {
    justify-content: space-between;
  }

  .md\:h-48 {
    height: 12rem;
  }

  .md\:h-96 {
    height: 24rem;
  }

  .md\:w-14 {
    width: 3.5rem;
  }

  .md\:w-4\/12 {
    width: 33.333333%;
  }

  .md\:w-8\/12 {
    width: 66.666667%;
  }

  .md\:px-12 {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .md\:pt-0 {
    padding-top: 0;
  }

  .md\:pl-0 {
    padding-left: 0;
  }

  .md\:mb-0 {
    margin-bottom: 0;
  }

  .md\:mb-24 {
    margin-bottom: 6rem;
  }

  .md\:mt-24 {
    margin-top: 6rem;
  }

  .md\:col-span-4 {
    grid-column: span 4 / span 4;
  }

  .md\:col-span-5 {
    grid-column: span 5 / span 5;
  }

  .md\:col-span-7 {
    grid-column: span 7 / span 7;
  }

  .md\:col-span-10 {
    grid-column: span 10 / span 10;
  }

  .md\:rotate-0 {
    transform: rotate(0deg);
  }

  .md\:bottom-auto {
    bottom: auto;
  }

  .md\:top-3 {
    top: 0.75rem;
  }

  .md\:right-7 {
    right: 1.75rem;
  }
}

/* Responsive - lg (1024px+) */
@media (min-width: 1024px) {
  .lg\:col-span-7 {
    grid-column: span 7 / span 7;
  }

  .lg\:mb-48 {
    margin-bottom: 12rem;
  }

  .lg\:mt-48 {
    margin-top: 12rem;
  }
}
