/*
 * Codebrew Oy – site styles. Plain CSS, no build step.
 * Colors use oklch; change the tokens below to restyle the whole site.
 */

:root {
  --background: oklch(0.17 0.05 278);
  --foreground: oklch(0.97 0.005 90);
  --primary: oklch(0.8 0.09 80);
  --primary-foreground: oklch(0.16 0.008 260);
  --muted-foreground: oklch(0.68 0.012 85);
  --border: oklch(1 0 0 / 9%);
  /* Neutral, warm-neutral dark used to veil the greyscale hero photo — must not carry a blue tint. */
  --hero-scrim: oklch(0.15 0.006 75);

  --font-display: "Archivo", "Geist", ui-sans-serif, sans-serif;
  --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */

*,
::before,
::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}

h1,
h2 {
  font-size: inherit;
  font-weight: inherit;
}

a {
  color: inherit;
  text-decoration: inherit;
}

/* Page */

.codebrew-page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  overflow: hidden;
}

.site-header,
.site-footer {
  position: relative;
  z-index: 10;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  padding-inline: 1.5rem;
}

.site-header {
  padding-block: 1.5rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-tagline {
  margin-top: 0.375rem;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.contact-link {
  font-size: 0.75rem;
  line-height: calc(1 / 0.75);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--foreground) 90%, transparent);
}

.contact-link-line {
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 0.5rem;
  background-color: var(--primary);
  transition: width var(--transition);
}

/* Hero */

.codebrew-frame {
  position: relative;
  z-index: 10;
  display: grid;
  flex: 1;
  min-height: 0;
  align-items: end;
  gap: 2rem;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-inline: 12px;
  padding: 80px 12px 24px;
}

.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  background-image: linear-gradient(
    to top in oklab,
    color-mix(in oklab, var(--hero-scrim) 85%, transparent),
    color-mix(in oklab, var(--hero-scrim) 25%, transparent),
    transparent
  );
}

.hero-main,
.hero-aside {
  position: relative;
  min-width: 0;
}

.eyebrow {
  margin-bottom: 1.5rem;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--foreground) 75%, transparent);
}

.codebrew-headline {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.02;
  font-weight: 600;
  text-transform: uppercase;
}

.accent {
  color: var(--primary);
}

.price {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  line-height: calc(1 / 0.75);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--foreground) 75%, transparent);
}

.lead {
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.625;
  color: color-mix(in oklab, var(--foreground) 85%, transparent);
}

.cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary);
  font-size: 0.75rem;
  line-height: calc(1 / 0.75);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: color var(--transition);
}

/* Footer */

.site-footer {
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-block: 1.25rem;
  font-size: 0.75rem;
  line-height: calc(1 / 0.75);
  color: var(--muted-foreground);
}

.site-footer a {
  color: color-mix(in oklab, var(--foreground) 80%, transparent);
  transition: color var(--transition);
}

.footer-location {
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* 404 page */

.not-found {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding-inline: 1rem;
}

.not-found-content {
  max-width: 28rem;
  text-align: center;
}

.not-found h1 {
  font-size: 4.5rem;
  line-height: 1;
  font-weight: 700;
}

.not-found h2 {
  margin-top: 1rem;
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 600;
}

.not-found p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: calc(1.25 / 0.875);
  color: var(--muted-foreground);
}

.not-found-actions {
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.875rem;
  line-height: calc(1.25 / 0.875);
  font-weight: 500;
  transition: background-color var(--transition);
}

/* Hover effects only on devices that can hover */

@media (hover: hover) {
  .contact-link:hover .contact-link-line {
    width: 50%;
  }

  .cta:hover,
  .site-footer a:hover {
    color: var(--primary);
  }

  .button:hover {
    background-color: color-mix(in oklab, var(--primary) 90%, transparent);
  }
}

/*
 * Responsive sizing. The headline uses a fixed size per breakpoint and the
 * header/footer never shrink, so desktop headlines don't wrap and the contact
 * details don't get clipped.
 */

@media (min-width: 640px) {
  .mobile-only {
    display: none;
  }

  .codebrew-headline {
    font-size: 3rem;
  }
}

@media (min-width: 768px) {
  .codebrew-page {
    height: 100dvh;
    min-height: 560px;
  }

  .site-header,
  .site-footer {
    padding-inline: 3rem;
  }

  .brand {
    font-size: 1.5rem;
    line-height: calc(2 / 1.5);
  }

  .codebrew-frame {
    margin-inline: 24px;
    padding: 32px 24px;
  }

  .eyebrow {
    font-size: 0.75rem;
    line-height: calc(1 / 0.75);
  }

  .codebrew-headline {
    font-size: 3.25rem;
  }

  .lead {
    font-size: 1.125rem;
  }

  .cta {
    font-size: 0.875rem;
    line-height: calc(1.25 / 0.875);
  }
}

@media (min-width: 1024px) {
  .site-header,
  .site-footer {
    padding-inline: 4rem;
  }

  .codebrew-frame {
    grid-template-columns: 1.8fr 1fr;
    gap: 3rem;
    padding: 40px;
  }

  .codebrew-headline {
    font-size: 3rem;
  }

  .hero-aside {
    padding-left: 1rem;
  }

  .cta {
    margin-top: 2.5rem;
  }
}

@media (min-width: 1280px) {
  .codebrew-headline {
    font-size: 4rem;
  }
}

@media (min-width: 1536px) {
  .codebrew-headline {
    font-size: 5rem;
  }
}

/* Short desktop windows: keep the headline from crowding the frame. */
@media (min-width: 768px) and (max-height: 650px) {
  .codebrew-headline {
    font-size: 3rem;
  }
}
