:root {
  --bg-color: #FDFCF8;
  --text-main: #2C2C2C;
  --text-muted: #666666;
  --accent: #4A4A4A;
  --border: #E5E5E5;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 900px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-color);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  margin-top: 0;
  color: var(--text-main);
}

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

/* Layout */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 80vh;
}

/* Navigation */
.site-header {
  padding: 40px 0;
  background: transparent;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.nav a {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  transition: color 0.3s ease;
  position: relative;
}

.nav a:hover {
  color: var(--text-main);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-main);
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

/* Sections */
.section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.hero {
  text-align: center;
  padding: 120px 0 160px;
  border-top: none;
}

.hero h1 {
  font-size: 64px;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.subtitle {
  font-family: var(--font-body);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.intro {
  font-size: 20px;
  max-width: 600px;
  margin: 0 auto 48px;
  color: var(--accent);
  font-family: var(--font-heading);
  font-style: italic;
}

/* Buttons */
.button {
  display: inline-block;
  padding: 14px 32px;
  background: var(--text-main);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.5px;
  border: 1px solid var(--text-main);
  transition: all 0.3s ease;
  cursor: pointer;
}

.button:hover {
  background: transparent;
  color: var(--text-main);
}

/* Work Grid */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 36px;
  margin-bottom: 12px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

.work-item {
  position: relative;
  overflow: hidden;
  background: #f0f0f0;
  aspect-ratio: 1;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
  opacity: 0.95;
}

.work-item:hover img {
  transform: scale(1.05);
  opacity: 1;
}

/* About */
.about-section {
  text-align: center;
}

.about-content {
  max-width: 640px;
  margin: 0 auto;
}

.about-content p {
  font-size: 18px;
  margin-bottom: 24px;
  color: var(--accent);
}

/* Contact Form */
.form {
  max-width: 500px;
  margin: 40px auto 0;
  display: grid;
  gap: 24px;
}

.form label {
  display: grid;
  text-align: left;
  gap: 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.form input,
.form textarea {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--text-main);
  transition: border-color 0.3s ease;
  border-radius: 0;
  /* Remove default iOS border radius */
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-bottom-color: var(--text-main);
}

.form textarea {
  resize: vertical;
}

.form-status {
  text-align: center;
  min-height: 24px;
  font-size: 14px;
}

.submit-btn {
  width: 100%;
  margin-top: 16px;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 48px;
  }

  .nav {
    gap: 20px;
  }

  .page {
    padding: 0 20px;
  }
}

/* Writing Page Styles */
.writing-list {
  display: grid;
  gap: 48px;
  max-width: 700px;
  margin: 0 auto;
}

.story {
  border-bottom: 1px solid var(--border);
  padding-bottom: 48px;
}

.story:last-child {
  border-bottom: none;
}

.story h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.story-meta {
  font-family: var(--font-body);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: block;
}

.story p {
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 24px;
}

/* Story Detail Page */
.story-full {
  max-width: 680px;
  margin: 40px auto;
}

.story-full h1 {
  font-size: 48px;
  margin-bottom: 16px;
  text-align: center;
}

.story-full .story-meta {
  text-align: center;
  margin-bottom: 48px;
}

.story-full p {
  font-size: 19px;
  line-height: 1.8;
  margin-bottom: 24px;
  color: var(--text-main);
  font-family: var(--font-heading);
  /* Serif for reading */
}