/* nickroditis.com · v10 · 4 Dec 2026 */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

:root {
  --paper: #FBFAF7;
  --paper-soft: #F3F1EC;
  --ink: #1B2128;
  --muted: #59616B;
  --line: #E2DED5;
  --accent: #1F4E79;
  --accent-deep: #173B5C;
  --band: #14202E;
  --band-text: #E9EDF2;
  --band-muted: #B7C2CF;

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1120px;
  --narrow: 720px;
  --gutter: clamp(20px, 5vw, 40px);
  --space: clamp(72px, 11vw, 128px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 76px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(17px, 0.6vw + 14.5px, 18.5px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: lining-nums;
}
h1, h2, .hero__vision, .band__mission, .quote p, .timeline__year, .brand { font-variant-numeric: lining-nums proportional-nums; }

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p, figcaption, li { text-wrap: pretty; }

a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: var(--narrow); }
.wrap.narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius);
}
.skip:focus { top: 12px; }

/* Labels and headings */

.label {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.label--light { color: var(--band-muted); }

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(3.1rem, 9vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 5.2vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin-bottom: 26px;
}
h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 4px;
}

/* Buttons and links */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px;
  background: var(--accent); color: #fff;
  font: 600 16px/1 var(--sans); letter-spacing: 0.01em;
  text-decoration: none; border: 0; border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}
.btn:hover { background: var(--accent-deep); }
.btn:active { transform: translateY(1px); }
.btn--light { background: #fff; color: var(--band); }
.btn--light:hover { background: var(--band-text); }
.btn--full { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }

.link {
  font-weight: 600; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link:hover { color: var(--accent-deep); }
.link--small { font-size: 15px; }

/* Top bar */

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 250, 247, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand {
  font-family: var(--serif); font-weight: 600; font-size: 1.45rem;
  color: var(--ink); text-decoration: none; letter-spacing: 0.01em;
}
.nav { display: none; gap: 28px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.topbar__cta {
  margin-left: auto;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600;
  background: #fff;
}
.topbar__cta:hover { border-color: var(--ink); }
@media (min-width: 960px) {
  .nav { display: flex; }
  .topbar__cta { margin-left: 8px; }
  .brand + .topbar__cta { margin-left: auto; } /* pages with no section links */
}

/* Hero */

.hero { padding: 28px 0 var(--space); }
.hero__grid { display: grid; gap: 36px; }
.hero__photo { order: -1; }
.hero__photo img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 35%;
  border-radius: var(--radius);
  max-height: 58vh;
}
.hero__vision {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.4rem, 3.4vw, 1.85rem); line-height: 1.35;
  color: var(--ink); max-width: 30ch; margin-bottom: 0;
}
.hero__proof {
  margin: 22px 0 0; font-size: 13.5px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--muted); font-variant-numeric: lining-nums;
}
.hero__proof span { white-space: nowrap; }

@media (min-width: 900px) {
  .hero { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(64px, 7vw, 96px); }
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: clamp(40px, 6vw, 88px); }
  .hero__photo { order: 0; }
  .hero__photo img { aspect-ratio: 4 / 5; object-position: 50% 30%; max-height: none; }
}

/* Sections */

.section { padding: var(--space) 0; }
.hero + .section { padding-top: clamp(24px, 4vw, 48px); }
.section--soft { background: var(--paper-soft); }
.intro { font-size: 1.08em; color: var(--ink); margin-bottom: 40px; }

/* Story */

.story__head .intro { margin-bottom: 40px; }
@media (min-width: 900px) {
  .story { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
  .story__head { position: sticky; top: 96px; }
  .story__head .intro { margin-bottom: 0; }
}

/* Timeline */

.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li {
  display: grid; grid-template-columns: 64px 1fr; gap: 18px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.timeline__year {
  font-family: var(--serif); font-weight: 600; font-size: 1.45rem; line-height: 1.2;
  color: var(--accent);
}
.timeline p { margin: 0; color: var(--ink); }
@media (min-width: 700px) {
  .timeline li { grid-template-columns: 96px 1fr; gap: 28px; }
}

/* Recognition */

.proof { display: grid; gap: 40px; margin-top: 12px; }
.proof__photo img { width: 100%; border-radius: var(--radius); }
.proof__photo figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); line-height: 1.5; }
.proof__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.proof__list li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.proof__list p { margin: 0 0 6px; color: var(--muted); }
.proof__list p:last-child { margin-bottom: 0; }
.proof__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
@media (min-width: 900px) {
  .proof { grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
}

/* Better Life Tribe band */

.band { background: var(--band); color: var(--band-text); padding: var(--space) 0; text-align: center; }
.band h2 { color: #fff; }
.band__mission {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.3rem, 3vw, 1.65rem); line-height: 1.45;
  color: var(--band-text); margin: 0 auto 36px; max-width: 34ch;
}

/* Beyond business */

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 12px; margin: 8px 0 48px; }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); }
.gallery figcaption { margin-top: 8px; font-size: 14px; line-height: 1.4; color: var(--muted); }
@media (min-width: 600px) { .gallery { gap: 28px 20px; } .gallery figcaption { font-size: 15px; } }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 32px 28px; } }
.tile--wide { grid-column: span 2; }
.tile--wide img { aspect-ratio: 2 / 1; }
/* the wide tile is exactly as tall as one square tile, so the row lines up */
@supports (height: 1cqw) {
  .gallery { container-type: inline-size; }
  .tile--wide img { aspect-ratio: auto; height: calc((100cqw - 12px) / 2); }
  @media (min-width: 600px) { .tile--wide img { height: calc((100cqw - 20px) / 2); } }
  @media (min-width: 900px) { .tile--wide img { height: calc((100cqw - 56px) / 3); } }
}

/* Swipe sets (carousel.js): swipe on a phone, arrows on a computer; never moves on its own */
.carousel { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--paper-soft); }
.carousel:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.carousel__track {
  display: flex; margin: 0; padding: 0; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.carousel__slide img { border-radius: 0; }
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.88); color: var(--ink);
  font: 400 28px/1 var(--serif); cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  display: none;
}
.carousel__btn--prev { left: 10px; }
.carousel__btn--next { right: 10px; }
.carousel__btn:hover { background: #fff; }
.carousel__btn[disabled] { opacity: 0; pointer-events: none; }
@media (hover: hover) { .carousel__btn { display: block; } }
.carousel__dots {
  position: absolute; left: 0; right: 0; bottom: 8px; z-index: 2;
  display: flex; justify-content: center; gap: 5px; pointer-events: none;
}
.carousel__dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); box-shadow: 0 0 2px rgba(0, 0, 0, 0.45); }
.carousel__dot.is-active { background: #fff; }

.loves { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.loves li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.loves p { margin: 0; color: var(--muted); }
@media (min-width: 700px) {
  .loves li { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: baseline; }
  .loves h3 { margin: 0; }
}

/* What drives me */

.drives { text-align: center; }
.drives .narrow, .drives.section .wrap { margin-left: auto; margin-right: auto; }
.drives__line { max-width: 20ch; margin: 0 auto 44px; }
.quote { margin: 0 auto; max-width: 30ch; }
.quote p {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.35rem, 3vw, 1.7rem); line-height: 1.4; color: var(--accent);
  margin-bottom: 12px;
}
.quote footer { font-size: 15px; color: var(--muted); }

/* Contact */

.contact { display: grid; gap: 40px; }
.contact__intro p:last-child { color: var(--muted); margin: 0; }
.avatar {
  width: 120px; height: 120px; object-fit: cover; border-radius: 50%;
  margin-bottom: 26px;
}
/* on phones and tablets: the photo, the label and the heading centred; the sentence and the form stay left (Nick, 4 Dec) */
@media (max-width: 899px) {
  .contact__intro { text-align: center; }
  .contact__intro .avatar { margin-left: auto; margin-right: auto; }
  .contact__intro p:last-child { text-align: left; }
}
@media (min-width: 900px) {
  .contact { grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
}

.form { display: grid; gap: 18px; }
.field label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink);
  background: #fff; border: 1px solid #CFCAC0; border-radius: var(--radius);
  padding: 13px 14px; min-height: 50px;
  transition: border-color .18s ease;
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-color: #A9A397; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline-offset: 1px; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #A1392E; }
.field__error { display: block; margin-top: 6px; font-size: 14px; color: #A1392E; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__status { min-height: 1.5em; margin: 0; font-size: 16px; }
.form__status.is-ok { color: #1E6B43; font-weight: 600; }
.form__status.is-error { color: #A1392E; }
.form.is-sent .field, .form.is-sent .btn { display: none; }
.form.is-sent .form__status {
  padding: 22px; background: var(--paper-soft); border-radius: var(--radius);
  font-size: 17px; color: var(--ink); font-weight: 500;
}

/* Story page (My Million Dollar Day) */

.article { padding: clamp(32px, 6vw, 72px) 0 var(--space); }
.article__title { font-size: clamp(2.6rem, 8vw, 4.2rem); margin-bottom: 18px; }
.article__lead {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.3rem, 3vw, 1.6rem); line-height: 1.4; color: var(--ink); margin-bottom: 36px;
}
.article h2 { font-size: clamp(1.8rem, 4.4vw, 2.4rem); margin: 48px 0 14px; }
.article__photo { margin: 28px 0 32px; }
.article__photo img { width: 100%; border-radius: var(--radius); background: var(--paper-soft); }
.article__photo figcaption { margin-top: 10px; font-size: 15px; color: var(--muted); }
.article__photo--narrow { max-width: 360px; }
.article__pair { display: grid; gap: 0 20px; }
@media (min-width: 600px) {
  .article__pair { grid-template-columns: 1fr 1fr; }
  .article__pair img { aspect-ratio: 4 / 3; object-fit: cover; }
}
.article__back { margin-top: 48px; }

/* Photos that enlarge on the story page (zoom.js) */

.zoom { display: block; cursor: zoom-in; border-radius: var(--radius); }
.is-zoomed, .is-zoomed body { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 60px 4vw 24px; background: rgba(12, 17, 24, 0.94); cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; text-align: center; }
.lightbox__img { display: block; margin: 0 auto; max-width: 92vw; max-height: 80vh; border-radius: var(--radius); }
.lightbox__caption { margin-top: 12px; font-size: 15px; color: var(--band-text); }
.lightbox__close {
  position: absolute; top: 10px; right: 12px; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14);
  color: #fff; font: 400 30px/1 var(--sans); cursor: pointer;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.26); }
.lightbox__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox:not([hidden]) { animation: lightbox-in 0.18s ease-out; }
  @keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }
}

/* Footer */

.footer { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; color: var(--muted); }
.footer p { margin: 0; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
