/* Semper Codex shared stylesheet */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a2332;
  background: #f5f1ea;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 28px;
}

main {
  flex: 1;
  padding: 96px 0 120px;
}

/* Header */
.site-header { border-bottom: 1px solid #ebe5d8; background: #f5f1ea; }

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  padding-bottom: 22px;
  flex-wrap: wrap;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 32px; height: 32px; }
.brand-text {
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 500;
  text-transform: uppercase;
}

.site-nav { display: flex; gap: 28px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; }
.site-nav a { opacity: 0.6; padding-bottom: 3px; transition: opacity 0.2s ease; }
.site-nav a:hover { opacity: 1; }
.site-nav a.active { opacity: 1; border-bottom: 1px solid #1a2332; }

/* Typography */
.eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #7a6f5c;
  margin-bottom: 28px;
}

h1.hero {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
  color: #1a2332;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.25;
  margin: 56px 0 14px;
  color: #1a2332;
}

p { max-width: 56ch; color: #4a5566; font-size: 16px; line-height: 1.65; margin-bottom: 16px; }
p.lead { font-size: 18px; max-width: 60ch; color: #3a4555; }

/* Button */
.button {
  display: inline-block;
  padding: 14px 28px;
  background: #1a2332;
  color: #f5f1ea;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 24px;
  border: 1px solid #1a2332;
  transition: background 0.2s ease, color 0.2s ease;
}

.button:hover { background: transparent; color: #1a2332; }

/* Card */
.card {
  background: #ffffff;
  border: 1px solid #ebe5d8;
  padding: 32px;
  max-width: 460px;
  margin-top: 24px;
}

.card .label {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #7a6f5c;
  margin-bottom: 10px;
}

.card .card-title {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 22px;
  margin-bottom: 8px;
  color: #1a2332;
}

.card .card-desc {
  font-size: 14px;
  color: #7a6f5c;
  margin-bottom: 0;
}

/* Footer */
.site-footer { border-top: 1px solid #ebe5d8; background: #f5f1ea; }
.site-footer .container {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 12px;
  color: #7a6f5c;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer a:hover { color: #1a2332; }

/* Mobile */
@media (max-width: 600px) {
  main { padding: 56px 0 80px; }
  .site-header .container { flex-direction: column; align-items: flex-start; }
  .site-nav { gap: 20px; }
  h1.hero { font-size: 36px; }
  .site-footer .container { flex-direction: column; }
  .button { width: 100%; text-align: center; }
}
