/* =============================================
   Future Story — stylesheet
   Fonts, colours and design tokens from the Future Story brand pack.
   ============================================= */


/* =============================================
   BRAND TOKENS
   To change a colour, font or spacing — edit here.
   ============================================= */
:root {
  /* Colours */
  --fs-ink:            #14110E;
  --fs-ink-80:         rgba(20,17,14,0.80);
  --fs-ink-60:         rgba(20,17,14,0.60);
  --fs-ink-30:         rgba(20,17,14,0.30);
  --fs-bone:           #F2EDE3;       /* warm cream — main light background */
  --fs-bone-bright:    #FAF6EC;       /* slightly lighter cream */
  --fs-beige:          #E0D7C5;
  --fs-aub-deep:       #25132A;       /* deep aubergine — hero, footer */
  --fs-aub:            #3A1F3D;       /* aubergine — contact section */
  --fs-pink:           #D4A89E;       /* dusty pink — accent on dark */
  --fs-pink-darker:    #8E5A4F;       /* deeper dusty rose — accent on light */
  --fs-pink-deep:      #B68479;
  --fs-hairline:       rgba(20,17,14,0.14);
  --fs-hairline-light: rgba(242,237,227,0.18);

  /* Fonts */
  --fs-font-display: 'Instrument Serif', Georgia, serif;   /* headings */
  --fs-font-reading: 'Newsreader', Georgia, serif;         /* body / taglines */
  --fs-font-sans:    'DM Sans', system-ui, sans-serif;     /* nav, buttons, labels */
  --fs-font-mono:    'JetBrains Mono', ui-monospace, monospace; /* eyebrow labels */

  /* Brand: sharp edges — no border-radius anywhere */
  --fs-radius: 0;

  /* Motion */
  --fs-ease:     cubic-bezier(.2, .7, .3, 1);
  --fs-dur-fast: 140ms;
  --fs-dur-med:  240ms;

  /* Layout */
  --nav-height: 68px;
  --max-width:  1200px;
  --gutter:     clamp(20px, 4vw, 48px);
}


/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--fs-font-sans);
  font-size: 16px;
  background: var(--fs-bone);
  color: var(--fs-ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--fs-pink); color: var(--fs-aub-deep); }


/* =============================================
   LAYOUT
   ============================================= */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section       { padding: 96px 0; }
.section--tight { padding: 64px 0; }


/* =============================================
   WORDMARK (CSS — no image file needed)
   The corner bracket is drawn with a CSS ::before pseudo-element.
   .wordmark--on-dark switches to light colours for dark backgrounds.
   ============================================= */
.wordmark {
  font-family: var(--fs-font-sans);
  font-weight: 500;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--fs-aub);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.32em;
  white-space: nowrap;
  --wm-bracket: var(--fs-pink-darker);
}
.wordmark__future {
  position: relative;
  display: inline-block;
  color: var(--fs-aub);
}
.wordmark__future::before {
  content: '';
  position: absolute;
  left: -0.32em;
  top: -0.18em;
  width: 0.32em;
  height: 0.32em;
  border-left: 0.06em solid var(--wm-bracket);
  border-top:  0.06em solid var(--wm-bracket);
}
.wordmark__story { color: var(--fs-aub); }

.wordmark--on-dark { --wm-bracket: var(--fs-pink); color: var(--fs-bone); }
.wordmark--on-dark .wordmark__future { color: var(--fs-bone); }
.wordmark--on-dark .wordmark__story  { color: var(--fs-pink); }


/* =============================================
   EYEBROW LABELS
   Small mono uppercase labels above headings.
   ============================================= */
.eyebrow {
  font-family: var(--fs-font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fs-pink-darker);
}
.eyebrow--light {
  color: var(--fs-pink);
}


/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  font-family: var(--fs-font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background    var(--fs-dur-fast) var(--fs-ease),
    color         var(--fs-dur-fast) var(--fs-ease),
    border-color  var(--fs-dur-fast) var(--fs-ease);
}
.btn--dark {
  background: var(--fs-aub-deep);
  color: var(--fs-bone);
  border-color: var(--fs-aub-deep);
}
.btn--dark:hover { background: var(--fs-aub); border-color: var(--fs-aub); }

.btn--ghost {
  background: transparent;
  color: var(--fs-bone);
  border-color: rgba(242,237,227,0.35);
}
.btn--ghost:hover { border-color: rgba(242,237,227,0.75); }

.btn--ghost-ink {
  background: transparent;
  color: var(--fs-aub-deep);
  border-color: var(--fs-hairline);
}
.btn--ghost-ink:hover {
  background: rgba(20,17,14,0.04);
  border-color: var(--fs-aub-deep);
}


/* =============================================
   NAV
   ============================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-height);
  background: var(--fs-aub-deep);
  border-bottom: 1px solid var(--fs-hairline-light);
  z-index: 100;
  display: flex;
  align-items: center;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav__links a {
  font-family: var(--fs-font-sans);
  font-size: 13px;
  color: rgba(242,237,227,0.65);
  text-decoration: none;
  transition: color var(--fs-dur-fast) var(--fs-ease);
}
.nav__links a:hover { color: var(--fs-bone); }

/* Hamburger button — hidden on desktop */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 2px;
  flex-shrink: 0;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fs-bone);
  transition: transform var(--fs-dur-med) var(--fs-ease), opacity var(--fs-dur-fast) var(--fs-ease);
}
/* Animate to × when open */
.nav--open .nav__hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--open .nav__hamburger span:nth-child(2) { opacity: 0; }
.nav--open .nav__hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* =============================================
   HERO — full-width banner with text overlay
   ============================================= */
.hero {
  padding-top: var(--nav-height);
  background: var(--fs-aub-deep);
}

/* Cinematic image strip — narrower than 16:9 */
.hero__banner {
  position: relative;
  width: 100%;
  height: clamp(280px, 38vw, 520px);
  overflow: hidden;
}
.hero__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
/* Gradient darkens the bottom so headline is readable */
.hero__banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 35%,
    rgba(37,19,42,0.5) 70%,
    rgba(37,19,42,1) 100%
  );
}

/* Photo credit — bottom-right of hero image */
.hero__credit {
  position: absolute;
  bottom: 12px;
  right: var(--gutter);
  z-index: 1;
  font-family: var(--fs-font-sans);
  font-size: 11px;
  color: rgba(242,237,227,0.45);
  letter-spacing: 0.02em;
}
.hero__credit a {
  color: inherit;
  text-decoration: none;
}
.hero__credit a:hover {
  color: rgba(242,237,227,0.75);
  text-decoration: underline;
}

/* Headline sits over the bottom of the image */
.hero__title {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 40px;
}
.hero__eyebrow {
  display: inline-block;
  background: var(--fs-pink);
  color: var(--fs-aub-deep);
  padding: 4px 10px;
  margin-bottom: 16px;
}

.hero__headline {
  font-family: var(--fs-font-sans);
  font-weight: 500;
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--fs-bone);
  text-wrap: balance;
}
.hero__headline em {
  font-style: italic;
  color: var(--fs-pink);
}

/* Lede sits in the dark section below the image — continues the hero zone */
.hero__body {
  background: var(--fs-aub-deep);
  padding: 48px 0 56px;
}
.hero__lede {
  font-family: var(--fs-font-reading);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.5;
  color: rgba(242,237,227,0.78);
  max-width: 58ch;
  margin-bottom: 0;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}


/* =============================================
   SERVICES
   ============================================= */
#services { background: var(--fs-bone); }

.services__split {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 80px;
  align-items: start;
}
.services__header { padding-top: 4px; }
.services__header h2 {
  font-family: var(--fs-font-sans);
  font-weight: 500;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-top: 16px;
  margin-bottom: 0;
  text-wrap: balance;
}

/* Ruled service list */
.service-list { list-style: none; }
.service-item {
  padding: 28px 0;
  border-top: 1px solid var(--fs-hairline);
}
.service-item:last-child { border-bottom: 1px solid var(--fs-hairline); }
.service-item h3 {
  font-family: var(--fs-font-sans);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.service-item p {
  font-family: var(--fs-font-reading);
  font-size: 18px;
  line-height: 1.65;
  color: rgba(20,17,14,0.65);
}


/* =============================================
   SECTION LINK — "More about me ↗" style
   ============================================= */
.section-link {
  display: inline-block;
  font-family: var(--fs-font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--fs-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--fs-pink-darker);
  transition: text-decoration-thickness var(--fs-dur-fast) var(--fs-ease);
}
.section-link:hover { text-decoration-thickness: 2px; }
.section-link--light { color: var(--fs-bone); text-decoration-color: var(--fs-pink); }
.section-link--light:hover { text-decoration-thickness: 2px; }


/* =============================================
   ABOUT TEASER — homepage summary block
   ============================================= */
.about-teaser { background: var(--fs-bone-bright); }

.about-teaser__split {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 80px;
  align-items: start;
}
.about-teaser__heading { padding-top: 4px; }
.about-teaser__heading h2 {
  font-family: var(--fs-font-sans);
  font-weight: 500;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 16px 0 0;
  text-wrap: balance;
}
.about-teaser__body p {
  font-family: var(--fs-font-reading);
  font-size: 19px;
  line-height: 1.7;
  color: rgba(20,17,14,0.75);
  margin-bottom: 20px;
}
.about-teaser__body .section-link { margin-top: 8px; }


/* =============================================
   WORK TEASER — homepage summary block
   ============================================= */
.work-teaser { background: var(--fs-bone-bright); color: var(--fs-ink); }

.work-teaser__split {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 80px;
  align-items: start;
}

.work-teaser__headline {
  font-family: var(--fs-font-sans);
  font-weight: 500;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-top: 16px;
  margin-bottom: 24px;
  text-wrap: balance;
}

.work-teaser__image {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
}
.work-teaser__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.work-teaser__text { padding-top: 4px; }
.work-teaser__text p:not(.eyebrow) {
  font-family: var(--fs-font-reading);
  font-size: 19px;
  line-height: 1.7;
  color: rgba(20,17,14,0.72);
  margin-top: 16px;
  margin-bottom: 28px;
}


/* =============================================
   PAGE HEADER — inner pages (about.html, work.html)
   ============================================= */
.page-header {
  background: var(--fs-aub-deep);
  color: var(--fs-bone);
  padding: 80px 0 64px;
  padding-top: calc(var(--nav-height) + 72px);
}
.page-header__eyebrow { margin-bottom: 16px; }
.page-header h1 {
  font-family: var(--fs-font-sans);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--fs-bone);
  margin-bottom: 24px;
  text-wrap: balance;
}
.page-header h1 em { font-style: italic; color: var(--fs-pink); }
.page-header__lede {
  font-family: var(--fs-font-reading);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(242,237,227,0.75);
  max-width: 52ch;
}


/* =============================================
   ABOUT PAGE — full bio layout
   ============================================= */
.about-page { background: var(--fs-bone); }

.about-page__grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 80px;
  align-items: start;
}

/* Portrait photo — tall crop */
.about-page__portrait-col {
  position: sticky;
  top: calc(var(--nav-height) + 32px);
  align-self: start;
}
.about-page__portrait {
  width: 100%;
}
.about-page__portrait img {
  width: 100%;
  height: auto;
  display: block;
}

/* Photo credit — below portrait */
.photo-credit {
  font-family: var(--fs-font-sans);
  font-size: 12px;
  color: var(--fs-ink-60);
  margin-top: 10px;
  line-height: 1.4;
}
.photo-credit a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.photo-credit a:hover {
  color: var(--fs-ink);
}

.about-page__bio { padding-top: 8px; }
.about-page__bio h2 {
  font-family: var(--fs-font-sans);
  font-weight: 500;
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}
.about-page__bio p {
  font-family: var(--fs-font-reading);
  font-size: 19px;
  line-height: 1.75;
  color: rgba(20,17,14,0.75);
  max-width: 56ch;
  margin-bottom: 20px;
}
.about-page__bio p:last-of-type { margin-bottom: 32px; }


/* =============================================
   WORK PAGE — photo + description items
   ============================================= */
.work-page { background: var(--fs-bone); }

.work-intro {
  max-width: 640px;
  margin-bottom: 72px;
}
.work-intro p {
  font-family: var(--fs-font-reading);
  font-size: 19px;
  line-height: 1.7;
  color: rgba(20,17,14,0.7);
  margin-top: 20px;
  max-width: 56ch;
}

/* Grid of work items */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px 48px;
}

.work-item__photo {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--fs-beige); /* shows while image loads */
}
.work-item__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Placeholder shown when no photo is added yet */
.work-item__photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}
.work-item__photo--empty::after {
  content: 'Add photo here';
  font-family: var(--fs-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(20,17,14,0.3);
}

.work-item__label {
  font-family: var(--fs-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(20,17,14,0.4);
  margin-bottom: 8px;
}
.work-item h3 {
  font-family: var(--fs-font-sans);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 10px;
}
.work-item p {
  font-family: var(--fs-font-reading);
  font-size: 18px;
  line-height: 1.65;
  color: rgba(20,17,14,0.65);
  max-width: 48ch;
}


/* =============================================
   CONTACT STRIP — reusable on inner pages
   ============================================= */
.contact-strip {
  background: var(--fs-aub);
  color: var(--fs-bone);
  padding: 80px 0;
}
.contact-strip__inner { max-width: 560px; }
.contact-strip h2 {
  font-family: var(--fs-font-sans);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--fs-bone);
  margin: 16px 0 20px;
}
.contact-strip p:not(.eyebrow) {
  font-family: var(--fs-font-reading);
  font-size: 19px;
  line-height: 1.6;
  color: rgba(242,237,227,0.68);
  margin-bottom: 32px;
}


/* =============================================
   ABOUT (old — now used only for legacy refs)
   ============================================= */
#about { background: var(--fs-bone-bright); }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about__photo {
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
}
.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.about__content { padding-top: 8px; }
.about__content h2 {
  font-family: var(--fs-font-sans);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 20px 0 24px;
  text-wrap: balance;
}
.about__content p {
  font-family: var(--fs-font-reading);
  font-size: 18px;
  line-height: 1.7;
  color: rgba(20,17,14,0.75);
  margin-bottom: 16px;
  max-width: 54ch;
}
.about__content p:last-of-type { margin-bottom: 32px; }

.about__link {
  font-family: var(--fs-font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--fs-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--fs-pink-darker);
  transition: text-decoration-thickness var(--fs-dur-fast) var(--fs-ease);
}
.about__link:hover { text-decoration-thickness: 2px; }


/* =============================================
   CONTACT
   ============================================= */
#contact {
  background: var(--fs-aub);
  color: var(--fs-bone);
}
.contact__inner {
  max-width: 640px;
}
#contact h2 {
  font-family: var(--fs-font-sans);
  font-weight: 500;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--fs-bone);
  margin: 16px 0 24px;
}
#contact h2 em {
  font-style: italic;
  color: var(--fs-pink);
}
#contact p:not(.eyebrow) {
  font-family: var(--fs-font-reading);
  font-weight: 300;
  font-style: normal;
  font-size: clamp(18px, 1.4vw, 20px);
  line-height: 1.55;
  color: rgba(242,237,227,0.68);
  margin-bottom: 40px;
  max-width: 46ch;
}
.contact__email {
  font-family: var(--fs-font-sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--fs-bone);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: var(--fs-pink);
  transition:
    text-decoration-thickness var(--fs-dur-fast) var(--fs-ease),
    color var(--fs-dur-fast) var(--fs-ease);
}
.contact__email:hover {
  color: var(--fs-pink);
  text-decoration-thickness: 2px;
}


/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--fs-aub-deep);
  color: rgba(242,237,227,0.5);
  padding: 40px 0 32px;
  border-top: 1px solid var(--fs-hairline-light);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.footer__links a {
  font-size: 13px;
  color: rgba(242,237,227,0.5);
  transition: color var(--fs-dur-fast) var(--fs-ease);
}
.footer__links a:hover { color: var(--fs-bone); }
.footer__copy {
  font-family: var(--fs-font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  width: 100%;
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--fs-hairline-light);
}
.footer__photo-credit {
  font-family: var(--fs-font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  width: 100%;
  text-align: center;
  margin-top: 6px;
}
.footer__photo-credit a {
  color: var(--fs-pink);
  text-decoration: none;
}
.footer__photo-credit a:hover { text-decoration: underline; }


/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 860px) {
  .hero__banner { height: clamp(220px, 50vw, 380px); }
  .hero__body { padding: 36px 0 44px; }
  .about-teaser__split { grid-template-columns: 1fr; gap: 28px; }
  .services__split { grid-template-columns: 1fr; gap: 28px; }
  .work-teaser__split { grid-template-columns: 1fr; gap: 16px; }
  .work-teaser__headline { margin-bottom: 0; }
  .about-page__grid { grid-template-columns: 1fr; gap: 40px; }
  .about-page__portrait-col { position: static; }
  .work-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .service-item { grid-template-columns: 1fr; gap: 8px; }

  /* Mobile nav */
  .nav__hamburger { display: flex; }
  .nav__links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--fs-aub-deep);
    flex-direction: column;
    padding: 8px 0 16px;
    border-bottom: 1px solid var(--fs-hairline-light);
    z-index: 99;
  }
  .nav--open .nav__links { display: flex; }
  .nav__links li { border-bottom: 1px solid var(--fs-hairline-light); }
  .nav__links a {
    display: block;
    padding: 16px var(--gutter);
    font-size: 16px;
    color: var(--fs-bone);
  }
}
