/* ============================================================
   irlek.com — Shared Stylesheet
   Version: 2.0 (pure HTML, no WordPress)
   Fonts: Playfair Display + DM Sans (self-hosted via /fonts/)
   ============================================================ */

/* ── Font faces ── */
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/PlayfairDisplay-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/PlayfairDisplay-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/PlayfairDisplay-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

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

/* ── Design tokens ── */
:root {
  --cream:        #F7F3EE;
  --ink:          #1C1814;
  --warm-mid:     #7A6A58;
  --accent:       #C4622D;
  --accent-lt:    #F5EBE4;
  --card-bg:      #FFFFFF;
  --surface:      #EDE8E1;
  --border:       #E2D9CF;
  --tasks-color:  #7A6A58;
  --focus-color:  #C4622D;
  --decide-color: #4A6080;
  --reflect-color:#5E7A6A;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Base ── */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Navigation ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(247, 243, 238, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--warm-mid);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--ink); }

.nav-cta {
  background: var(--accent);
  color: white !important;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
  background: #a8501f !important;
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.25s;
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 57px; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 2rem;
    gap: 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }
  .nav-links .nav-cta {
    display: inline-block;
    margin-top: 0.25rem;
    color: white !important;
  }
}

/* ── Footer ── */
.site-footer {
  padding: 2.5rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--cream);
}

.site-footer p {
  font-size: 0.8rem;
  color: var(--warm-mid);
  line-height: 1.8;
}

.site-footer a {
  color: var(--warm-mid);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer a:hover { color: var(--ink); }

/* ── Shared utilities ── */
.section-divider {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 1rem;
  opacity: 0.45;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
}

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Subpages (privacy, terms, contact, articles) ── */
.subpage-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 8rem 2rem 6rem;
}

.subpage-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--warm-mid);
  text-decoration: none;
  margin-bottom: 3rem;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.subpage-back:hover { opacity: 1; }

.subpage-wrap h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.subpage-date {
  font-size: 0.78rem;
  color: var(--warm-mid);
  letter-spacing: 0.08em;
  margin-bottom: 3rem;
  opacity: 0.6;
}

.subpage-intro {
  background: var(--surface);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 3rem;
  font-size: 0.95rem;
  color: var(--warm-mid);
  line-height: 1.7;
}

.subpage-wrap h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
  color: var(--ink);
}

.subpage-wrap p {
  font-size: 0.93rem;
  color: var(--warm-mid);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.subpage-wrap ul {
  margin: 0.5rem 0 0.75rem 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.subpage-wrap ul li {
  font-size: 0.93rem;
  color: var(--warm-mid);
  line-height: 1.7;
  display: flex;
  gap: 0.6rem;
}

.subpage-wrap ul li::before {
  content: '—';
  color: var(--accent);
  opacity: 0.5;
  flex-shrink: 0;
}

.subpage-wrap a { color: var(--accent); text-decoration: underline; }

.subpage-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.subpage-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.subpage-footer a {
  font-size: 0.82rem;
  color: var(--warm-mid);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.subpage-footer a:hover { opacity: 1; }

/* ── Store badge ── */
.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--ink);
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  transition: opacity 0.2s, transform 0.15s;
  font-size: 0.85rem;
}

.app-store-badge:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.app-store-badge svg {
  width: 20px;
  height: 20px;
  fill: white;
  flex-shrink: 0;
}

.app-store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.app-store-badge-sub {
  font-size: 0.68rem;
  opacity: 0.7;
  letter-spacing: 0.04em;
}

.app-store-badge-main {
  font-size: 1rem;
  font-weight: 500;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
