/* Shared styles for every page: fonts, colours, film grain, the header and the footer. */

@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-300-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #101010;
  --ink: #ddd8d2;
  --ink-dim: #807a76;
  --rule: #1e1e1e;
  --pink: #F1668B;
  --serif: "Cormorant Garamond", Georgia, serif;
  --body: "Jost", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* film grain over everything */
body::after {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .04;
  pointer-events: none;
  z-index: 9000;
}
a { color: inherit; }

/* small lowercase labels, used all over */
.label {
  font-family: var(--body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: lowercase;
  color: var(--pink);
}

/* ————— header ————— */
.menu {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px var(--gutter);
  background: linear-gradient(to bottom, rgba(16,16,16,.96) 0%, rgba(16,16,16,.85) 55%, transparent 100%);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: lowercase;
}
.menu nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 28px); }
.menu a { color: var(--ink); text-decoration: none; transition: color .2s; }
.menu a:hover, .menu a:focus-visible, .menu a[aria-current] { color: var(--pink); }
.menu .home { color: var(--pink); }
.icons { display: inline-flex; align-items: center; gap: 16px; }
.menu .icons { padding-left: clamp(16px, 3vw, 24px); border-left: 1px solid rgba(255,255,255,.15); }
.icons a { display: block; color: var(--ink-dim); transition: color .2s; }
.icons a:hover, .icons a:focus-visible { color: var(--pink); }
.icons svg { display: block; width: 16px; height: 16px; fill: currentColor; }

/* ————— outlined pink button ————— */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid rgba(241,102,139,.55);
  color: var(--pink);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: lowercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover, .btn:focus-visible { background: var(--pink); border-color: var(--pink); color: #fff; outline: none; }

/* ————— a section label with a line running off to the right ————— */
.rule-label { display: flex; align-items: center; gap: 16px; margin: 0 0 clamp(40px, 6vw, 64px); }
.rule-label::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

/* ————— footer ————— */
footer {
  width: min(calc(1140px - 2 * var(--gutter)), calc(100% - 2 * var(--gutter)));
  margin: clamp(80px, 12vw, 140px) auto 0;
  padding: 28px 0 40px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 28px;
  border-top: 1px solid var(--rule);
  color: var(--ink-dim);
  font-size: 13px;
  letter-spacing: .08em;
}
footer .reach { display: inline-flex; align-items: center; gap: 22px; }
footer a { text-decoration: none; color: var(--pink); }
footer a:hover, footer a:focus-visible { text-decoration: underline; }

@media (max-width: 560px) {
  .menu .icons { display: none; }
}
