/* ============================================
   CUFFED — BASE STYLES
   ============================================ */

:root {
  /* Colors */
  --bg: #FAF8F6;
  --text: #1C1C1C;
  --accent: #C27D8A;
  --subtle: #E6E1DC;
  --white: #FFFFFF;
  
  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  
  /* Layout */
  --max-width: 640px;
  --max-width-wide: 900px;
  --border-radius: 3px;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  padding: var(--space-md);
  min-height: 100vh;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

h3 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.125rem;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--accent);
}

p {
  margin-bottom: var(--space-md);
  max-width: 60ch;
}

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

a:hover {
  border-bottom-color: var(--accent);
}

/* ============================================
   FORMS & INPUTS
   ============================================ */

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
  color: var(--text);
  opacity: 0.7;
}

input[type="text"],
input[type="email"],
input[type="file"] {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 1px solid var(--subtle);
  border-radius: var(--border-radius);
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: var(--space-md);
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(194, 125, 138, 0.1);
}

input[type="file"] {
  padding: var(--space-sm);
  cursor: pointer;
}

/* ============================================
   BUTTONS
   ============================================ */

button,
.button {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--bg);
  border: 1px solid var(--subtle);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
  text-align: center;
}

button:hover,
.button:hover {
  background: var(--white);
  border-color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

button:active,
.button:active {
  transform: translateY(1px);
}

button[type="submit"] {
  margin-top: var(--space-sm);
}

/* ============================================
   LAYOUT CONTAINERS
   ============================================ */

body > h1,
body > p,
body > form,
body > section,
body > a,
body > ul {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

section {
  margin-bottom: var(--space-xl);
}

form {
  background: var(--white);
  padding: var(--space-lg);
  border-radius: var(--border-radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-bottom: var(--space-lg);
}

/* ============================================
   NAVIGATION & LINKS
   ============================================ */

nav,
.nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--subtle);
}

nav a,
.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
}

/* ============================================
   IMAGES
   ============================================ */

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

/* ============================================
   UTILITIES
   ============================================ */

.center {
  text-align: center;
}

.muted {
  opacity: 0.6;
}

/* ============================================
   BACK NAVIGATION
   ============================================ */

.back-nav {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 10;
}

.back-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  border: none;
  transition: transform 0.2s ease;
}

.back-link:hover {
  transform: translateX(-2px);
  border: none;
}

@media (min-width: 768px) {
  .back-nav {
    top: var(--space-xl);
    left: var(--space-xl);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (min-width: 768px) {
  body {
    padding: var(--space-xl);
  }
  
  h1 {
    font-size: 3.5rem;
  }
  
  h2 {
    font-size: 2.5rem;
  }
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  text-align: center;
  padding: var(--space-lg) var(--space-md) var(--space-md);
  margin-top: var(--space-xl);
  border-top: 1px solid var(--subtle);
}

.site-footer p {
  font-size: 0.8125rem;
  opacity: 0.6;
  margin: 0;
  max-width: 100%;
}

.site-footer a {
  color: var(--accent);
  border-bottom: none;
}

.site-footer a:hover {
  opacity: 0.7;
  border-bottom: none;
}