/* styles.css — shared base for index, about, contact */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;0,9..144,900;1,9..144,500&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg: #f6f1e7;
  --surface: rgba(255, 253, 248, 0.93);
  --surface-strong: #fffdf7;
  --border: rgba(42, 32, 24, 0.12);
  --border-strong: rgba(42, 32, 24, 0.22);
  --text: #2a2018;
  --text-soft: #5c5043;
  --text-muted: #8a7b6b;
  --accent: #9c6b2c;
  --accent-strong: #7c5320;
  --gold: #b4884a;
  --ember: #b9532f;
  --ink: #241a12;
  --shadow-md: 0 14px 34px rgba(34, 24, 16, 0.13);
  --shadow-sm: 0 8px 20px rgba(34, 24, 16, 0.09);
  --radius-lg: 14px;
  --radius-md: 10px;
  --font-display: "Fraunces", "Iowan Old Style", "Charter", Georgia, serif;
  --font-body: "Inter", "Avenir Next", "SF Pro Text", "Segoe UI", Tahoma, Geneva, sans-serif;
}

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--text);
  background:
    linear-gradient(180deg, #fbf8f0 0%, #f6f1e7 48%, #ece2cf 100%),
    linear-gradient(90deg, rgba(180, 136, 74, 0.06), rgba(36, 26, 18, 0.03));
  background-attachment: fixed;
  line-height: 1.55;
}

a {
  text-decoration: none;
  color: var(--accent);
}

a:hover {
  color: var(--accent-strong);
}

/****************************
 * HEADER
 ****************************/
header {
  width: min(1120px, calc(100% - 36px));
  margin: 18px auto 0;
  background: rgba(255, 252, 246, 0.9);
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

header h1 {
  font-family: var(--font-display);
  color: var(--accent);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.site-brand a {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.015em;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.62rem;
  background: radial-gradient(120% 120% at 30% 22%, #38291b 0%, var(--ink) 60%, #160f09 100%);
  box-shadow: 0 10px 20px rgba(32, 22, 14, 0.22), inset 0 1px 0 rgba(255, 244, 226, 0.12);
  flex: 0 0 auto;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 0.42rem;
  border: 1px solid rgba(180, 136, 74, 0.62);
  pointer-events: none;
}

.brand-initials {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  background: linear-gradient(160deg, #e7c98b 0%, var(--gold) 46%, #8f6a37 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

header nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  gap: 0.5rem 1.5rem;
  margin-top: 0;
}

header nav a {
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s ease;
}

header nav a:hover {
  color: var(--accent);
}

header nav a[aria-current="page"] {
  color: var(--accent);
}

/****************************
 * FOOTER
 ****************************/
footer {
  background: var(--surface);
  padding: 1rem;
  text-align: center;
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/****************************
 * BASIC MAIN CONTENT
 ****************************/
main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

h1,
h2 {
  font-family: var(--font-display);
  margin-bottom: 1rem;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.015em;
}

h3 {
  font-family: var(--font-display);
  color: var(--text);
}

p {
  color: var(--text-soft);
}

@media (max-width: 720px) {
  header {
    align-items: flex-start;
    flex-direction: column;
  }
}
