/* =============================================
   Ordinary Friend — Shared Styles
   Used by: index.html, portrait.html, privacy.html
   ============================================= */

:root {
  --warm: #F5F7F4;
  --cream: #EDF1EC;
  --blush: #D4DDD1;
  --terracotta: #4A7C6F;
  --deep: #1A2E35;
  --forest: #2C5F6E;
  --sage: #7B9E87;
  --muted: #6B7C74;
  --accent: #5A9AAD;
  --shadow: rgba(26,46,53,0.06);
  --rose: #C4756E;
  --gold: #B8A04A;
  --lavender: #8B7EAE;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--warm);
  color: var(--deep);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.w { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* --- NAV --- */
nav {
  padding: 20px 0;
  border-bottom: 1px solid var(--blush);
}
nav .inner {
  max-width: 1080px; margin: 0 auto; padding: 0 28px;
  display: flex; justify-content: space-between; align-items: center;
}
nav .logo {
  font-family: 'DM Serif Display', serif;
  font-size: 22px; color: var(--terracotta);
  text-decoration: none;
}
nav .links a {
  font-size: 13px; color: var(--muted); text-decoration: none;
  margin-left: 28px; font-weight: 500; transition: color 0.2s;
}
nav .links a:hover { color: var(--terracotta); }
nav .back-btn {
  color: var(--terracotta); font-weight: 600; font-size: 13px;
  text-decoration: none;
  border: 1.5px solid var(--terracotta); border-radius: 20px;
  padding: 6px 16px;
  transition: background 0.2s, color 0.2s;
}
nav .back-btn:hover { background: var(--terracotta); color: white; }

/* --- SHARED TYPOGRAPHY --- */
.slabel {
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--terracotta); margin-bottom: 14px;
}
.stitle {
  font-family: 'DM Serif Display', serif;
  font-size: 36px; font-weight: 400; line-height: 1.2; margin-bottom: 16px;
}
.sdesc {
  font-size: 16px; color: var(--muted); margin-bottom: 40px;
  max-width: 600px; line-height: 1.7;
}
.center { text-align: center; }
.center .sdesc { margin-left: auto; margin-right: auto; }

/* --- BUTTONS --- */
.btn {
  display: inline-block; padding: 16px 36px; border-radius: 8px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: all 0.2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--terracotta); color: white; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(74,124,111,0.3); }
.btn-ghost { background: transparent; color: var(--terracotta); border: 1.5px solid var(--blush); margin-left: 12px; }
.btn-ghost:hover { background: white; }

/* --- FOOTER --- */
footer {
  padding: 48px 0 0; color: var(--muted); font-size: 13px;
  border-top: 1px solid var(--blush); background: var(--warm);
}
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr 1.2fr;
  gap: 48px; padding-bottom: 36px;
}
.footer-grid .flogo {
  font-family: 'DM Serif Display', serif; font-size: 14px;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 12px;
}
.footer-grid p { font-size: 13px; line-height: 1.6; color: var(--muted); }
.footer-grid .fopen { margin-top: 16px; font-size: 12px; font-weight: 500; color: var(--deep); }
.footer-grid h5 {
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--deep); margin-bottom: 14px;
}
.footer-grid a {
  display: block; font-size: 13px; color: var(--muted);
  text-decoration: none; margin-bottom: 8px; transition: color 0.2s;
}
.footer-grid a:hover { color: var(--terracotta); }
.footer-grid .scw-link {
  color: var(--terracotta); text-decoration: underline;
  display: inline; margin: 0; font-weight: 600;
}
.footer-bar {
  border-top: 1px solid var(--blush); padding: 16px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--muted);
}
.footer-bar a { color: var(--muted); text-decoration: none; margin-left: 16px; }
.footer-bar a:hover { color: var(--terracotta); }

/* --- SHARED MOBILE --- */
@media (max-width: 768px) {
  nav .inner { flex-wrap: wrap; gap: 8px; }
  nav .links { display: flex; align-items: center; gap: 0; }
  nav .links a { margin-left: 12px; font-size: 11px; }
  nav .back-btn { padding: 5px 12px; font-size: 11px; }
  .stitle { font-size: 26px; }
  .sdesc { font-size: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bar { flex-direction: column; gap: 8px; text-align: center; }
  .btn-ghost { margin-left: 0; }
}
