/* ─── Font ─────────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Vain';
  src: url('../fonts/Vain-Regular.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ─── Tokens ────────────────────────────────────────────────────────────── */
:root {
  --bg:            #F2F2E1;
  --color:         #000000;
  --color-muted:   #555555;
  --color-line:    #000000;

  --font-display:  'Vain', Georgia, serif;

  --size-xs:   0.625rem;   /* 10px */
  --size-sm:   0.75rem;    /* 12px */
  --size-base: 1rem;       /* 16px */
  --size-md:   1.25rem;    /* 20px */
  --size-lg:   2rem;       /* 32px */
  --size-xl:   3rem;     /* 48px */
  --size-hero: clamp(3rem, 8vw, 8rem);

  --pad-x:  2rem;
  --pad-y:  1.5rem;
  --header-h: 3rem;
  --max-w:  1440px;
}

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

/* Bold → discretionary ligatures; weight inherit because Vain has one weight */
strong {
  font-weight: inherit;
  font-feature-settings: 'dlig' 1;
}

html {
  background: var(--bg);
  color: var(--color);
  font-family: var(--font-display);
  line-height: 1.2;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
body { min-height: 100vh; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:not(.btn-order):hover { color: var(--hover-color); }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
ul, ol { list-style: none; }

/* ─── Utilities ────────────────────────────────────────────────────────── */
.site-rule {
  border: 0;
  border-top: 1px solid var(--color-line);

}

.mobile-rule{
  display: none;
}

/* ─── Header / Navigation ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 var(--pad-x);
  border-bottom: 1px solid var(--color-line);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: var(--size-base);
  
  text-transform: uppercase;
}

.nav-link {
  padding-left: 0.15em;
}
.nav-link:hover,
.nav-link.is-current {color: var(--menu-color); }


/* ─── Footer ───────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 6rem;
  text-transform: uppercase;
  
}

.site-footer:not(.site-footer--home) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


.footer-intro {
  position: relative;
  text-align: center;
}

.footer-intro-illustration {
  position: absolute;
  top: 0;
  right: 0;
  width: 25vw;
  padding-right: 2rem;
  margin-top: -6vw;
  height: auto;
  pointer-events: none;
}

.footer-intro-text {
  font-size: 3.5vw;
  line-height: 1;
  padding-top: 1.5rem;
  padding-right: 4rem;
  padding-left: 4rem;
}

.footer-intro-text code{
  opacity: 0;
 
}

.footer-intro-text p { margin: 0; }

/* Pushes DETOUR wordmark to the bottom of the flex container */
.footer-spacer {
  flex: 1;
}

/* Full-bleed DETOUR wordmark */
.footer-wordmark {
  display: block;
  font-family: var(--font-display);
  font-size: 24vw;
  line-height: 0.82;
  white-space: nowrap;
  overflow: hidden;
  padding: 1rem;
}

/* Bottom row: monogram + 3 text columns */
.footer-bottom {
  display: grid;
  grid-template-columns: 4rem 1fr 1fr 1fr;
  gap: 2rem;
  padding: 1rem var(--pad-x) var(--pad-y);
  align-items: start;
}

.footer-monogram { width: 100%; }
.footer-monogram img { width: 100%; height: auto; }

.footer-col {
  font-size: var(--size-base);

}


/* Homepage compact footer: DETOUR left + 3 cols to its right */
.footer-home-row {
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr;
  gap: 2rem;
  padding: var(--pad-y) var(--pad-x);
  border-top: 1px solid var(--color-line);
  align-items: start;
}

.footer-wordmark--home {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 6rem);
  line-height: 1;
  white-space: nowrap;

}

/* ─── Publication shared rules ────────────────────────────────────────── */
/* Used by both catalogue.css and publication.css templates */
.pub-rule {
  border: 0;
  border-top: 1px solid var(--color-line);
  margin: 0.5rem 0;
}

.pub-section-label {
  font-size: var(--size-base);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ─── Order Button ─────────────────────────────────────────────────────── */
.btn-order {
  display: inline-block;
  font-size: var(--size-sm);
  text-transform: uppercase;
  border: 1px solid var(--color);
  padding: 0.25rem 0.75rem;
}
.btn-order:hover {
  background: var(--color);
  color: var(--bg);


}

/* ─── 12-col grid helper ───────────────────────────────────────────────── */
/*
  Breakpoints:
    default      — all sizes (mobile-last fallback)
    col-m-*      — medium screens only  (max-width: 1024px)
    col-s-*      — small screens only   (max-width: 768px)

  Usage: <div class="col-6 col-m-8 col-s-12">
*/
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}
.col-1  { grid-column: span 1; }
.col-2  { grid-column: span 2; }
.col-3  { grid-column: span 3; }
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
.col-9  { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

/* ─── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .col-m-1  { grid-column: span 1; }
  .col-m-2  { grid-column: span 2; }
  .col-m-3  { grid-column: span 3; }
  .col-m-4  { grid-column: span 4; }
  .col-m-5  { grid-column: span 5; }
  .col-m-6  { grid-column: span 6; }
  .col-m-7  { grid-column: span 7; }
  .col-m-8  { grid-column: span 8; }
  .col-m-9  { grid-column: span 9; }
  .col-m-10 { grid-column: span 10; }
  .col-m-11 { grid-column: span 11; }
  .col-m-12 { grid-column: span 12; }
}

