/* Photinos Design — style.css */

@font-face {
  font-family: 'Victor Mono';
  src: url('fonts/victor-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Victor Mono';
  src: url('fonts/victor-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Victor Mono';
  src: url('fonts/victor-mono-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('fonts/source-serif-4-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

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

/* ── Tokens ── */
:root {
  --bg:       #0f0f0f;
  --surface:  #171717;
  --border:   #2a2a2a;
  --text:     #e8e6e0;
  --muted:    #888480;
  --faint:    #444240;

  --mono:   'Victor Mono', monospace;
  --serif:  'Source Serif 4', serif;
  --radius: 6px;
}

[data-theme="light"] {
  --bg:       #f8f7f4;
  --surface:  #ffffff;
  --border:   #e0ddd6;
  --text:     #1a1917;
  --muted:    #7a7772;
  --faint:    #ccc9c2;
}

/* ── Base ── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s, color 0.2s;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }
a { color: inherit; }

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 0.5px solid var(--border);
  transition: background 0.2s;
}
.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 28px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); }

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 17px;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
  line-height: 1;
}
.theme-toggle:hover { color: var(--text); }

/* ── Container ── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Section label ── */
.section-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::after {
  content: '';
  display: block;
  height: 0.5px;
  width: 32px;
  background: var(--border);
}

/* ── Button ── */
.btn {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 9px 18px;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.85; }

/* ── Hero ── */
.hero {
  padding: 64px 0 56px;
  border-bottom: 0.5px solid var(--border);
}
.hero-title {
  font-family: var(--mono);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 18px;
}
.hero-sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 6px;
}
.hero-sub2 {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 32px;
}

/* ── Services section (homepage) ── */
.services-section {
  padding: 48px 0;
  border-bottom: 0.5px solid var(--border);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.service-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  display: block;
  transition: border-color 0.15s;
}
.service-card:hover { border-color: var(--muted); }
.service-title {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.service-tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
  display: block;
  margin-bottom: 12px;
}
.service-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}
.service-link {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
}
.service-card:hover .service-link { color: var(--muted); }

/* ── Page header ── */
.page-header {
  padding: 52px 0 40px;
  border-bottom: 0.5px solid var(--border);
}
.page-header h1 {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* ── Service list (services page) ── */
.service-list { padding: 0 0 8px; }
.service-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 0.5px solid var(--border);
  align-items: start;
}
.service-row-title {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}
.service-row-tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
}
.service-row-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}
.service-row-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--faint);
}

/* ── Page CTA (services page) ── */
.page-cta {
  padding: 36px 0;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  align-items: center;
}
.page-cta .container {
  display: flex;
  align-items: center;
  gap: 20px;
}
.page-cta-text {
  font-size: 14px;
  color: var(--muted);
}

/* ── Placeholder (portfolio / products pages) ── */
.placeholder-body {
  padding: 72px 0;
}
.placeholder-title {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 12px;
}
.placeholder-desc {
  font-size: 14px;
  color: var(--muted);
  max-width: 400px;
  line-height: 1.75;
  margin-bottom: 28px;
}

/* ── Contact page ── */
.contact-body {
  padding: 48px 0;
}
.contact-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 0.5px solid var(--border);
}
.contact-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.contact-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.contact-value {
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}
a.contact-value:hover { color: var(--muted); }

/* ── Footer ── */
footer {
  border-top: 0.5px solid var(--border);
  padding: 20px 0;
  margin-top: auto;
}
.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 28px;
}
.footer-copy {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero-title { font-size: 26px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 12px; }
  .page-cta .container { flex-direction: column; align-items: flex-start; }
}

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

/* ── Logo ── */
.nav-logo {
  display: flex;
  align-items: center;
}
.logo {
  height: 28px;
  width: auto;
  display: block;
}
.logo-dark  { display: block; }
.logo-light { display: none; }

[data-theme="light"] .logo-dark  { display: none; }
[data-theme="light"] .logo-light { display: block; }

.contact-note {
  font-size: 12px;
  color: var(--faint);
  margin-top: 4px;
}

/* ── Mobile nav ── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 20px;
  padding: 4px;
  line-height: 1;
  transition: color 0.15s;
}
.hamburger:hover { color: var(--text); }

.mobile-menu {
  display: none;
  border-top: 0.5px solid var(--border);
  background: var(--bg);
}
.mobile-menu.open { display: block; }
.mobile-links {
  list-style: none;
  padding: 12px 0;
}
.mobile-links li { border-bottom: 0.5px solid var(--border); }
.mobile-links li:last-child { border-bottom: none; }
.mobile-links a {
  display: block;
  padding: 14px 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.mobile-links a:hover,
.mobile-links a[aria-current="page"] { color: var(--text); }

@media (max-width: 640px) {
  .nav-inner {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: 0;
  }
  .hamburger {
    display: flex;
    justify-self: start;
  }
  .nav-right { display: none; }
  .nav-logo {
    justify-self: center;
  }
  .theme-toggle {
    justify-self: end;
    display: flex;
  }
}

/* ── Inline SVG icons ── */
.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  vertical-align: middle;
  flex-shrink: 0;
  display: block;
}
