/* ==========================================================================
   Cerulean.Design
   Minimal, confident restraint. Let the color speak.
   ========================================================================== */

:root {
  /* Cerulean - the true blue */
  --cerulean: #007BA7;
  --cerulean-light: #4da3c2;
  --cerulean-dark: #005a7a;
  
  /* Neutrals */
  --white: #fefefe;
  --off-white: #f8f9fa;
  --black: #1a1a1a;
  --gray: #6b7280;
  
  /* Typography */
  --font-family: 'Fraunces', georgia, serif;
  --font-size-base: clamp(1rem, 2.5vw, 1.125rem);
  --font-size-h1: clamp(2.5rem, 8vw, 5rem);
  --font-size-tagline: clamp(1.25rem, 3vw, 1.75rem);
  --font-size-small: 0.875rem;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  
  /* Animation */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.6s;
}

/* Reset */

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

/* Base */

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--black);
  background-color: var(--off-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle grain texture overlay */

.grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Main content */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--space-lg) var(--space-md);
  position: relative;
  z-index: 1;
}

/* Hero */

.hero {
  text-align: center;
  max-width: 40rem;
  animation: fadeIn var(--duration) var(--ease-out) both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: var(--font-size-h1);
  font-weight: 500;
  font-style: italic;
  color: var(--cerulean);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--space-sm);
  animation: fadeIn var(--duration) var(--ease-out) 0.1s both;
}

.tagline {
  font-size: var(--font-size-tagline);
  font-weight: 300;
  color: var(--black);
  margin-bottom: var(--space-xs);
  animation: fadeIn var(--duration) var(--ease-out) 0.2s both;
}

.services {
  font-size: var(--font-size-base);
  color: var(--gray);
  margin-bottom: var(--space-md);
  animation: fadeIn var(--duration) var(--ease-out) 0.3s both;
}

/* Actions */

.actions {
  animation: fadeIn var(--duration) var(--ease-out) 0.4s both;
}

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-family);
  font-size: var(--font-size-small);
  font-weight: 500;
  text-decoration: none;
  color: var(--white);
  background-color: var(--cerulean);
  border-radius: 2px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: var(--cerulean-dark);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* Contact section */

.contact {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  animation: fadeIn var(--duration) var(--ease-out) 0.5s both;
}

.contact p {
  margin-bottom: var(--space-sm);
  color: var(--gray);
}

.contact a {
  color: var(--cerulean);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.contact a:hover {
  border-bottom-color: var(--cerulean);
}

/* Footer */

footer {
  text-align: center;
  padding: var(--space-md);
  font-size: var(--font-size-small);
  color: var(--gray);
  position: relative;
  z-index: 1;
}

/* Selection */

::selection {
  background-color: var(--cerulean);
  color: var(--white);
}
