/* =============================================
   ART OF STORIES — Main Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* --- Variables --- */
:root {
  --bg:          #0e0e0e;
  --surface:     #161616;
  --surface-2:   #1f1f1f;
  --border:      #2c2c2c;
  --gold:        #c9a96e;
  --gold-light:  #dfc28f;
  --text:        #f0ede8;
  --text-mid:    #a09a91;
  --text-dim:    #5a5550;
  --white:       #ffffff;
  --serif:       'Cormorant Garamond', Georgia, serif;
  --sans:        'DM Sans', system-ui, sans-serif;
  --radius:      4px;
  --max-w:       1200px;
  --transition:  0.25s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--gold-light); }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.2rem; }

p { color: var(--text-mid); }

.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-mid);
  font-weight: 300;
  line-height: 1.8;
}

.label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* --- Layout --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 7rem 0;
}

.section--sm {
  padding: 4rem 0;
}

.section--dark {
  background: var(--surface);
}

.section--darker {
  background: var(--surface-2);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(14, 14, 14, 0.96);
  padding: 1rem 0;
  border-bottom-color: var(--border);
  backdrop-filter: blur(12px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.nav__logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.04em;
}

.nav__logo img {
  height: 36px;
  width: auto;
}

.nav__logo:hover { color: var(--gold); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
  transition: color var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text);
}

.nav__cta {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold) !important;
  border: 1px solid var(--gold);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition) !important;
}

.nav__cta:hover {
  background: var(--gold);
  color: var(--bg) !important;
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: all var(--transition);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.btn--primary {
  background: var(--gold);
  color: var(--bg);
}

.btn--primary:hover {
  background: var(--gold-light);
  color: var(--bg);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn--outline-gold:hover {
  background: var(--gold);
  color: var(--bg);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0e0e0e 0%, #161410 50%, #0e0e0e 100%);
  z-index: 0;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 50%, rgba(201,169,110,0.06) 0%, transparent 70%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero__label {
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero .lead {
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__rule {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
}

.hero__rule span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero__rule::after {
  content: '';
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--text-dim), transparent);
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: 4rem;
}

.section-header--center {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  margin: 0.5rem 0 1rem;
}

.section-header p {
  max-width: 560px;
}

.section-header--center p {
  margin: 0 auto;
}

.divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem 0;
}

.divider--center {
  margin: 1.5rem auto;
}

/* --- Cards --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  transition: border-color var(--transition), transform var(--transition);
}

.card:hover {
  border-color: rgba(201,169,110,0.35);
  transform: translateY(-2px);
}

.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  color: var(--gold);
}

.card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

/* --- Service Cards --- */
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.service-card:hover {
  border-color: rgba(201,169,110,0.4);
}

.service-card__accent {
  height: 3px;
  background: var(--gold);
}

.service-card__body {
  padding: 2.5rem;
}

.service-card__num {
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--border);
  line-height: 1;
  margin-bottom: 1rem;
  font-weight: 300;
}

.service-card h3 {
  margin-bottom: 1rem;
}

/* --- Writer Cards --- */
.writer-card {
  text-align: center;
  padding: 2rem;
}

.writer-card__avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface-2);
  overflow: hidden;
}

.writer-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.writer-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.writer-card__role {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.writer-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 0.75rem;
}

.tag {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-mid);
}

/* --- Stats --- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border);
  text-align: center;
}

.stat:last-child { border-right: none; }

.stat__num {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat__label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* --- Foreshadow section --- */
.foreshadow {
  position: relative;
  overflow: hidden;
}

.foreshadow::before {
  content: 'FORESHADOW';
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: 12rem;
  font-weight: 300;
  color: rgba(201,169,110,0.03);
  letter-spacing: 0.1em;
  pointer-events: none;
  white-space: nowrap;
}

/* --- Process Steps --- */
.process-steps {
  counter-reset: step;
}

.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.process-step:last-child { border-bottom: none; }

.process-step__num {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--gold);
  padding-top: 0.2rem;
  min-width: 2rem;
}

.process-step h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

/* --- Join page --- */
.benefit-item {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.benefit-item:last-child { border-bottom: none; }

.benefit-item__icon {
  color: var(--gold);
  padding-top: 0.15rem;
}

.benefit-item h4 {
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
}

/* --- Form --- */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 0.5rem;
}

input, textarea, select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 300;
  transition: border-color var(--transition);
  outline: none;
  appearance: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--gold);
}

textarea {
  resize: vertical;
  min-height: 130px;
}

input::placeholder, textarea::placeholder {
  color: var(--text-dim);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* --- Footer --- */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 1rem;
  display: block;
}

.footer__desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.footer__heading {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 1.25rem;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__links a {
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: color var(--transition);
}

.footer__links a:hover { color: var(--gold); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding: 12rem 0 6rem;
  background: linear-gradient(180deg, rgba(201,169,110,0.04) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin: 0.5rem 0 1rem;
}

.page-hero .lead {
  max-width: 600px;
}

/* --- Quote / Pull --- */
.pullquote {
  border-left: 2px solid var(--gold);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}

.pullquote p {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
}

/* --- Highlight box --- */
.highlight-box {
  background: linear-gradient(135deg, rgba(201,169,110,0.08) 0%, rgba(201,169,110,0.04) 100%);
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: var(--radius);
  padding: 3rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero__content { flex-direction: column !important; align-items: flex-start !important; }
  .hero__content > img { height: 120px !important; }
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 99;
  }
  .nav__links.open a { font-size: 1.2rem; }
  .nav__toggle { display: flex; position: relative; z-index: 101; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .section { padding: 4rem 0; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
}
