/* ===========================================================
   Atelier Oliveira - demo leather-goods atelier site, editorial/minimal
=========================================================== */

:root {
  --paper: #f5f3ee;
  --paper-deep: #eae6db;
  --white: #ffffff;

  --ink: #1c1a17;
  --ink-soft: #6b6459;
  --ink-faint: #a39c8c;

  --line: #dcd6c8;
  --line-dark: rgba(255, 255, 255, 0.18);

  --clay: #a9754f;
  --clay-dark: #8a5f3f;

  --font-display: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* Photo color grade - softer contrast with a cool, silvery cast.
     Tweak these to adjust every photo on the site at once:
     --photo-grade   contrast / saturation / brightness of the photo
     --photo-tint    the silver-blue hue laid over it
     --photo-tint-strength  how strongly that hue shows (0 = off) */
  --photo-grade: contrast(0.96) saturate(1) brightness(1.01);
  --photo-tint: #8fa3b5;
  --photo-tint-strength: 0.08;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}
em {
  font-style: normal;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.section {
  padding: 88px 0;
}
@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 18px;
}
.eyebrow--light {
  color: rgba(255, 255, 255, 0.78);
}
.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section__head {
  max-width: 640px;
  margin-bottom: 40px;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 16px;
  max-width: 620px;
}
.section.center .section__title,
.center .section__title {
  margin-left: auto;
  margin-right: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.text-link {
  position: relative;
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 5px;
  border-bottom: 1px solid var(--ink);
  transition:
    opacity 0.3s ease,
    border-color 0.3s ease;
}
.text-link:hover {
  opacity: 0.6;
}
.text-link--light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}
.text-link--light:hover {
  opacity: 0.75;
}

.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  transition:
    background 0.3s ease,
    transform 0.3s var(--ease);
}
.btn-solid:hover {
  background: var(--clay-dark);
  transform: translateY(-1px);
}

/* ---------- Demo banner ---------- */
.demo-banner {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  font-size: 0.8rem;
  padding: 10px 18px;
  position: relative;
  z-index: 950;
}
.demo-banner a {
  text-decoration: underline;
  font-weight: 500;
}

/* ===========================================================
   NAV
=========================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(245, 243, 238, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px 32px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav__links--left {
  justify-content: flex-start;
}
.nav__links--right {
  justify-content: flex-end;
}

.nav__link {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}
.nav__link:hover,
.nav__link.is-current {
  color: var(--ink);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: center;
  color: var(--ink);
  white-space: nowrap;
}
.nav__logo-icon {
  height: 30px;
  width: auto;
}
.nav__logo-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  z-index: 2;
}
.nav__toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition:
    transform 0.3s var(--ease),
    opacity 0.3s ease;
}
.nav__toggle.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav__toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav__toggle.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav__mobile {
  display: none;
}

@media (max-width: 760px) {
  .nav__inner {
    display: flex;
    justify-content: space-between;
  }
  .nav__toggle {
    display: flex;
    order: 2;
  }
  .nav__logo {
    order: 1;
    font-size: 1.1rem;
  }
  .nav__links--left,
  .nav__links--right {
    display: none;
  }

  .nav__mobile {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(80vw, 320px);
    background: var(--paper);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    gap: 26px;
    /* Closed: clipped to nothing at the right edge. Clipping (rather than
       translating it off-screen) keeps the panel inside the viewport, so
       phones don't widen the page to fit it and render everything zoomed out. */
    clip-path: inset(0 0 0 100%);
    visibility: hidden;
    transition:
      clip-path 0.5s var(--ease),
      visibility 0s linear 0.5s;
    z-index: 1;
  }
  .nav__mobile.is-open {
    clip-path: inset(0);
    visibility: visible;
    transition:
      clip-path 0.5s var(--ease),
      visibility 0s;
  }
  .nav__mobile-link {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--ink);
  }
}

/* ===========================================================
   HERO
=========================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url(../assets/hero.jpg);
  background-size: cover;
  background-position: center 42%;
}
/* Soft, low-contrast grade on every photo */
.hero__bg,
.atelier__photo img,
.studio__visual img,
.journal__visual img,
.article__photo img {
  filter: var(--photo-grade);
}
/* Silvery cast: shifts the hue toward cool grey-blue while keeping
   each photo's own light and shade (blend mode "color") */
.atelier__photo,
.studio__visual,
.journal__visual,
.article__photo {
  position: relative;
}
.hero__bg::after,
.atelier__photo::after,
.studio__visual::after,
.journal__visual::after,
.article__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--photo-tint);
  mix-blend-mode: color;
  opacity: var(--photo-tint-strength);
  pointer-events: none;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(20, 17, 14, 0.72) 0%,
    rgba(20, 17, 14, 0.15) 46%,
    rgba(20, 17, 14, 0.1) 100%
  );
}
.hero__eyebrow {
  position: absolute;
  z-index: 2;
  top: 40px;
  left: 32px;
  /* match the "View the Atelier" link */
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  font-weight: inherit;
}
.hero__inner {
  position: relative;
  z-index: 2;
  margin-left: auto;
  padding: 0 32px 72px;
  max-width: 720px;
  text-align: right;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 200;
  letter-spacing: -0.02em;
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 1.06;
  color: var(--white);
  margin-bottom: 28px;
}

/* ===========================================================
   STATEMENT
=========================================================== */
.statement {
  padding: 64px 0;
}
.statement__text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  line-height: 1.5;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  color: var(--ink);
}

/* ===========================================================
   ATELIER GRID
=========================================================== */
.atelier {
  background: var(--paper-deep);
}
/* Mosaic: one large photo, four tiles, one wide closing photo.
   Captions sit on the photos over a soft dark fade. */
.atelier__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 8px;
}
.atelier__item {
  position: relative;
  overflow: hidden;
  background: var(--paper-deep);
}
.atelier__item:first-child {
  grid-row: span 2;
}
.atelier__item:first-child .atelier__photo {
  aspect-ratio: auto;
  height: 100%;
}
.atelier__item:last-child {
  grid-column: 1 / -1;
}
.atelier__item:last-child .atelier__photo {
  aspect-ratio: 3 / 1;
}
.atelier__photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.atelier__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.atelier__item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(0deg, rgba(28, 24, 20, 0.62) 0%, rgba(28, 24, 20, 0) 45%);
  pointer-events: none;
}
.atelier__item figcaption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--white);
}
.atelier__step {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  opacity: 0.8;
}
.atelier__item:first-child figcaption,
.atelier__item:last-child figcaption {
  font-size: 1.25rem;
  font-weight: 300;
}
.atelier__item:first-child .atelier__step,
.atelier__item:last-child .atelier__step {
  font-size: 0.68rem;
  font-weight: 400;
}
@media (max-width: 760px) {
  .atelier__grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .atelier__item:first-child {
    grid-row: auto;
    grid-column: 1 / -1;
  }
  .atelier__item:first-child .atelier__photo {
    aspect-ratio: 4 / 3;
  }
  .atelier__item:last-child .atelier__photo {
    aspect-ratio: 2 / 1;
  }
  .atelier__item figcaption {
    left: 12px;
    right: 12px;
    bottom: 10px;
    font-size: 0.72rem;
  }
  .atelier__item:first-child figcaption,
  .atelier__item:last-child figcaption {
    font-size: 0.95rem;
  }
}

/* ===========================================================
   THE ATELIER / ABOUT
=========================================================== */
.studio__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 860px) {
  .studio__grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}
.studio__visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 60%; /* keep the worktable, leather rolls and windows in frame */
}
.studio__content p {
  color: var(--ink-soft);
  margin-bottom: 20px;
  max-width: 480px;
}
.studio__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink);
  line-height: 1.5;
  padding-left: 20px;
  border-left: 2px solid var(--clay);
  margin: 28px 0 32px;
}

/* ===========================================================
   JOURNAL
=========================================================== */
.journal {
  background: var(--paper-deep);
}
.journal__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 860px) {
  .journal__grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}
.journal__visual img {
  width: 100%;
}
.journal__content p {
  color: var(--ink-soft);
  margin-bottom: 24px;
  max-width: 440px;
}

/* ===========================================================
   CONTACT
=========================================================== */
.contact__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
}
@media (max-width: 860px) {
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}
.contact__grid h2 {
  margin-top: 10px;
}
.contact__grid > div:first-child p {
  color: var(--ink-soft);
  max-width: 440px;
  margin: 20px 0 24px;
}
.contact__email {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--clay-dark);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.contact__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
}
.contact__meta h3 {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.contact__meta p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}
.contact__meta a {
  border-bottom: 1px solid var(--line);
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}
.contact__meta a:hover {
  color: var(--clay-dark);
  border-color: var(--clay-dark);
}

/* ===========================================================
   FOOTER
=========================================================== */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 44px 0 0;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
}
.footer .nav__logo-text {
  color: var(--white);
}
.footer .nav__logo-icon {
  filter: brightness(0) invert(1);
}
.footer__links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.footer__links a {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 243, 238, 0.7);
  transition: color 0.25s ease;
}
.footer__links a:hover {
  color: var(--white);
}
.footer__credits {
  border-top: 1px solid var(--line-dark);
  padding: 14px 32px 16px;
}
.footer__credits p {
  font-size: 0.72rem;
  color: rgba(245, 243, 238, 0.5);
  line-height: 1.6;
}
.footer__credits a {
  text-decoration: underline;
}

/* ===========================================================
   JOURNAL ENTRY (journal.html)
=========================================================== */
.article__head {
  max-width: 820px;
  padding-top: 64px;
  padding-bottom: 40px;
  text-align: center;
}
.article__back {
  display: inline-block;
  margin-bottom: 40px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}
.article__back:hover {
  color: var(--ink);
}
.article__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.article__meta {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

.article__figure--lead {
  max-width: 1060px;
  margin-bottom: 56px;
}
.article__figure--lead .article__photo {
  aspect-ratio: 16 / 9;
}
.article__photo {
  overflow: hidden;
  background: var(--paper-deep);
}
.article__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article__body {
  max-width: 720px;
  padding-bottom: 88px;
}
.article__body p {
  color: var(--ink-soft);
  line-height: 1.85;
  margin-bottom: 24px;
}
.article__body .article__lead {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 32px;
}
.article__subhead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 48px 0 16px;
}
.article__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink);
  padding-left: 22px;
  border-left: 2px solid var(--clay);
  margin: 40px 0;
}
.article__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 48px -80px;
}
.article__pair .article__photo {
  aspect-ratio: 4 / 5;
}
.article__pair figcaption {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--ink-faint);
}
.article__body .article__signoff {
  margin-top: 40px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}


@media (max-width: 900px) {
  .article__pair {
    margin: 40px 0;
  }
}
@media (max-width: 560px) {
  .article__head {
    padding-top: 40px;
    padding-bottom: 28px;
  }
  .article__back {
    margin-bottom: 28px;
  }
  .article__figure--lead {
    margin-bottom: 36px;
  }
  .article__figure--lead .article__photo {
    aspect-ratio: 4 / 3;
  }
  .article__pair {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .article__body {
    padding-bottom: 56px;
  }
}
