/* ==========================================================================
   Typography & Font Faces
   ========================================================================== */

@font-face {
  font-family: 'TT Ricordi Greto';
  src: url('img/TT Ricordi Greto Trial Variable.ttf') format('truetype-variations'),
       url('img/TT Ricordi Greto Trial Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   CSS Custom Properties (Variables)
   ========================================================================== */

:root {
  --bg-color: #F8F6EF;
  --grid-line-color: rgba(0, 0, 0, 0.055);
  --grid-cell-size: 118px;
  
  --primary-color: #E24355;
  --primary-hover: #d3384a;
  --primary-active: #bc283a;
  
  --text-primary: #111111;
  --text-secondary: #3e3e3e;
  --text-footer: #222222;
  
  --font-serif: 'Besley', Georgia, serif;
  --font-mono: 'Courier Prime', Courier, monospace;
  --font-display: 'TT Ricordi Greto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg-color);
  background-image: 
    linear-gradient(to right, var(--grid-line-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line-color) 1px, transparent 1px);
  background-size: var(--grid-cell-size) var(--grid-cell-size);
  background-position: center center;
  color: var(--text-primary);
  font-family: var(--font-display);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Layout Structure
   ========================================================================== */

.page-container {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 3rem 1.5rem 2.25rem;
}

.content-wrapper {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 600px;
}

/* ==========================================================================
   Brand Header & Logo
   ========================================================================== */

.brand-header {
  margin-bottom: 2.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-link {
  display: inline-block;
  line-height: 0;
  transition: transform 0.2s var(--ease-smooth), opacity 0.2s ease;
}

.logo-link:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

.logo-link:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 4px;
  border-radius: 4px;
}

.brand-logo {
  display: block;
  width: 106px;
  height: auto;
  aspect-ratio: 196 / 33;
}

/* ==========================================================================
   Hero Section & Content
   ========================================================================== */

.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.headline {
  font-family: var(--font-serif);
  font-size: clamp(1.875rem, 3.2vw, 2.25rem);
  font-weight: 600;
  line-height: 1.28;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  margin: 0;
}

.launch-date {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  margin-top: 0.875rem;
}

/* ==========================================================================
   Call To Action Button
   ========================================================================== */

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

.ig-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--primary-color);
  color: #FFFFFF;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  width: 192px;
  height: 42px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(226, 67, 85, 0.15);
  transition: 
    background-color 0.2s ease,
    transform 0.2s var(--ease-smooth),
    box-shadow 0.2s var(--ease-smooth);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.ig-icon {
  width: 15px;
  height: 15px;
  display: block;
  object-fit: contain;
  transition: transform 0.2s var(--ease-smooth);
}

.ig-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(226, 67, 85, 0.25);
}

.ig-btn:hover .ig-icon {
  transform: scale(1.05);
}

.ig-btn:active {
  background-color: var(--primary-active);
  transform: translateY(0.5px);
  box-shadow: 0 1px 4px rgba(226, 67, 85, 0.2);
}

.ig-btn:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
}

/* ==========================================================================
   Page Footer
   ========================================================================== */

.page-footer {
  width: 100%;
  text-align: center;
  padding-top: 1.5rem;
}

.footer-note {
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 400;
  color: var(--text-footer);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-note strong {
  font-weight: 700;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 600px) {
  :root {
    --grid-cell-size: 80px;
  }
  
  .page-container {
    padding: 2.5rem 1.25rem 2rem;
  }
  
  .brand-header {
    margin-bottom: 2rem;
  }
  
  .brand-logo {
    width: 98px;
  }
  
  .cta-wrapper {
    margin-top: 2rem;
  }
}

@media (max-height: 540px) {
  .page-container {
    padding: 1.25rem 1rem 1rem;
  }
  
  .brand-header {
    margin-bottom: 1rem;
  }
  
  .cta-wrapper {
    margin-top: 1.25rem;
  }
  
  .page-footer {
    padding-top: 0.75rem;
  }
}
