:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --text: #2c2520;
  --muted: #6e6259;
  --accent: #c87d28;
  --accent-dark: #9c5d16;
  --border: #e8dfd3;
  --shadow: 0 6px 24px rgba(44, 37, 32, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px #f3dec2;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: 0.2s;
}

nav a:hover, nav a.active {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}

main {
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  padding: 36px 20px 60px;
  flex: 1;
}

.hero {
  background: linear-gradient(135deg, #2c2520 0%, #46382e 100%);
  color: #fff;
  padding: 48px 40px;
  border-radius: 16px;
  margin-bottom: 36px;
  box-shadow: var(--shadow);
}

.hero-badge {
  display: inline-block;
  background: rgba(200, 125, 40, 0.25);
  border: 1px solid var(--accent);
  color: #f6c98e;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-size: 2.2rem;
  line-height: 1.25;
  margin-bottom: 14px;
}

.hero p {
  color: #dfd5ca;
  max-width: 680px;
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover { background: var(--accent-dark); }

h2 { font-size: 1.65rem; margin-bottom: 16px; }
h3 { font-size: 1.2rem; margin-bottom: 10px; }
p { margin-bottom: 16px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin: 24px 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.card-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.theseus-profile {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #f4ece1;
  border-left: 4px solid var(--accent);
  padding: 24px;
  border-radius: 0 12px 12px 0;
  margin: 28px 0;
}

.theseus-profile img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.quote-box {
  background: #f4ece1;
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  margin: 28px 0;
}

ul.styled-list { margin: 12px 0 20px 20px; }
ul.styled-list li { margin-bottom: 8px; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 20px 0;
}

th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th { background: #f4ece1; font-weight: 700; }

form { display: grid; gap: 14px; max-width: 540px; }

input, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
}

footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 24px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .hero { padding: 32px 22px; }
  .hero h1 { font-size: 1.7rem; }
  .theseus-profile { flex-direction: column; text-align: center; }
  .theseus-profile img { width: 100%; max-width: 260px; height: auto; }
}
