/* =============================================
   André Gábor – Personal Site
   Self-hosted Instrument Serif (GDPR-safe)
   ============================================= */

/* --- Fonts --- */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/InstrumentSerif-Italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/InstrumentSerif-Italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/InstrumentSerif-Regular-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/InstrumentSerif-Regular-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
  --bg:        #fff7eb;
  --text:      #796444;
  --border:    #d0b68e;
  --grid-size: 48px;
}

html {
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* --- Grid background (CSS-only, no external calls) --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(
      to right,
      var(--border) 0,
      var(--border) 1px,
      transparent 1px,
      transparent var(--grid-size)
    ),
    repeating-linear-gradient(
      to bottom,
      var(--border) 0,
      var(--border) 1px,
      transparent 1px,
      transparent var(--grid-size)
    );
  opacity: 0.18;
}

/* --- Layout wrapper --- */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 24px 80px;
  min-height: 100vh;
}

/* Content column – max 560px wide, centred */
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 560px;
}

/* --- Typography scale --- */
.t-title  { font-size: clamp(40px, 6vw, 72px); }
.t-h2     { font-size: clamp(24px, 3.5vw, 42px); }
.t-body   { font-size: clamp(18px, 2.8vw, 36px); }
.t-small  { font-size: clamp(16px, 2vw, 28px); }

.text-center { text-align: center; }

/* --- Pill box (title / footer) --- */
.pill {
  border: 2px dashed var(--border);
  border-radius: 97px;
  background: var(--bg);
  padding: 28px 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* --- Arrow divider --- */
.arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  color: var(--border);
  font-style: normal;
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.arrow::after {
  content: '↓';
  color: var(--border);
  font-family: serif;
  font-style: normal;
  font-size: 28px;
}

/* --- Section blocks --- */
.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: center;
}

.section-title {
  line-height: 1.2;
}

.section-body {
  line-height: 1.5;
}

/* --- Links --- */
a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-skip-ink: none;
  font-style: italic;
  font-family: 'Instrument Serif', serif;
}

a:hover {
  opacity: 0.7;
}

/* Plain (no underline) */
a.plain {
  text-decoration: none;
}

/* --- Nav links row (Design • Illustration • Painting) --- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.sep {
  color: var(--border);
  font-style: normal;
  font-size: 1em;
}

/* --- Back to home bar --- */
.back-bar {
  align-self: flex-start;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.back-bar .arrow-left {
  color: var(--border);
  font-style: normal;
  font-size: 1em;
}

/* --- Horizontal rule --- */
.divider {
  width: 260px;
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}

/* --- Image grid (3 columns) --- */
.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}

.image-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

/* --- Footer --- */
.footer-wrapper {
  padding-top: 48px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-pill {
  border: 2px dashed var(--border);
  border-radius: 97px;
  background: var(--bg);
  padding: 16px 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(14px, 1.6vw, 26px);
  white-space: nowrap;
}

.footer-pill span,
.footer-pill a {
  white-space: nowrap;
  font-size: inherit;
}

/* --- Language switcher --- */
.lang-switcher {
  display: flex;
  gap: 0;
}

/* --- Bullet list (branding companies) --- */
.bullet-list {
  list-style: none;
  text-align: center;
}

.bullet-list li::before {
  content: '· ';
}

/* =============================================
   RESPONSIVE – mobile (≤ 600px)
   ============================================= */
@media (max-width: 600px) {
  .page {
    padding: 48px 20px 60px;
  }

  .pill {
    padding: 20px 28px;
  }

  .image-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .nav-links {
    gap: 8px;
  }

  .footer-pill {
    white-space: normal;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    border-radius: 40px;
    padding: 12px 20px;
    gap: 6px 10px;
  }

  .footer-pill span,
  .footer-pill a {
    white-space: nowrap;
  }

  .back-bar {
    align-self: center;
  }
}

/* Extra small (≤ 380px) */
@media (max-width: 380px) {
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
