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

html {
  font-size: 17px;
  background-color: #F3F3F1;
  color: #111111;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

section[id],
main[id],
div[id],
article[id] {
  scroll-margin-top: 128px;
}

body {
  font-family: "Alcantara Sans", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  background-color: #F3F3F1;
  color: #111111;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #6D1022;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

a:hover {
  color: #6D1022;
}

.skip-link,
.skip-link:hover,
.skip-link:focus {
  color: #FFFFFF;
  background-color: #111111;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #6D1022;
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-family: "Alcantara Serif", Georgia, serif;
  font-style: normal;
  font-weight: 500;
  color: #111111;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 48px;
  line-height: 1.12;
  margin-bottom: 20px;
}

h2 {
  font-size: 34px;
  line-height: 1.18;
  margin-bottom: 18px;
}

h3 {
  font-size: 22px;
  line-height: 1.28;
  margin-bottom: 12px;
}

p {
  font-size: 17px;
  line-height: 1.62;
  color: #2B2B28;
  max-width: 68ch;
}

p + p {
  margin-top: 14px;
}

ul,
ol {
  padding-left: 20px;
}

li {
  font-size: 17px;
  line-height: 1.58;
  color: #2B2B28;
  margin-bottom: 8px;
}

strong {
  font-weight: 600;
  color: #111111;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 999;
  background-color: #111111;
  color: #FFFFFF;
  padding: 12px 18px;
  text-decoration: none;
}

.skip-link:focus {
  left: 16px;
}

/* Top bar & Header */
.topbar {
  background-color: #0B0B0B;
  color: #F3F3F1;
  border-bottom: 1px solid rgba(243, 243, 241, 0.14);
  padding: 10px 0;
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-text {
  font-size: 13px;
  color: #E2E2DC;
  max-width: none;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.topbar-link {
  font-size: 13px;
  color: #FFFFFF;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
}

.topbar-link:hover {
  color: #F3F3F1;
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #F3F3F1;
  border-bottom: 1px solid rgba(17, 17, 17, 0.14);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #111111;
  min-height: 44px;
}

.brand-link:hover {
  color: #111111;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand-name {
  font-family: "Alcantara Serif", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: #111111;
  display: block;
  line-height: 1.35;
}

.brand-sub {
  font-size: 13px;
  color: #3D3D39;
  display: block;
  line-height: 1.45;
}

.nav-toggle {
  display: none;
  background-color: #FFFFFF;
  color: #111111;
  border: 1px solid rgba(17, 17, 17, 0.25);
  min-height: 44px;
  min-width: 44px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-link {
  font-size: 13px;
  font-weight: 600;
  color: #111111;
  text-decoration: none;
  padding: 10px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background-color: #FFFFFF;
  color: #6D1022;
  border-color: rgba(17, 17, 17, 0.14);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  font-family: "Alcantara Sans", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
}

.btn-compact {
  font-size: 13px;
  min-height: 44px;
  padding: 10px 16px;
}

.btn-primary {
  background-color: #6D1022;
  color: #FFFFFF;
  border-color: #6D1022;
}

.btn-primary:hover {
  background-color: #4F0B18;
  color: #FFFFFF;
  border-color: #4F0B18;
}

.btn-secondary {
  background-color: #FFFFFF;
  color: #111111;
  border-color: #111111;
}

.btn-secondary:hover {
  background-color: #111111;
  color: #FFFFFF;
  border-color: #111111;
}

.btn-dark {
  background-color: #161616;
  color: #F3F3F1;
  border-color: rgba(243, 243, 241, 0.38);
}

.btn-dark:hover {
  background-color: #6D1022;
  color: #FFFFFF;
  border-color: #6D1022;
}

/* Sections */
.section {
  padding: 72px 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
}

.section-surface {
  background-color: #FAFAF8;
}

.section-dark {
  background-color: #0B0B0B;
  color: #F3F3F1;
  border-bottom: 1px solid rgba(243, 243, 241, 0.14);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark strong {
  color: #F3F3F1;
}

.section-dark p,
.section-dark li {
  color: #D4D4CE;
}

/* Hero layout */
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: start;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
  margin-bottom: 26px;
}

.credentials-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 14px;
  margin-top: 24px;
}

.credential-box {
  background-color: #FFFFFF;
  border: 1px solid rgba(17, 17, 17, 0.14);
  padding: 20px;
}

.credential-title {
  font-size: 13px;
  font-weight: 700;
  color: #6D1022;
  margin-bottom: 4px;
}

.credential-detail {
  font-size: 13px;
  color: #2B2B28;
}

/* Portrait & Dossier panel */
.dossier-panel {
  background-color: #FFFFFF;
  border: 1px solid rgba(17, 17, 17, 0.16);
  padding: 28px;
}

.portrait-frame {
  border: 1px solid rgba(17, 17, 17, 0.14);
  margin-bottom: 20px;
  background-color: #E8E8E4;
}

.portrait-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Grid systems */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 22px;
}

.card {
  background-color: #FFFFFF;
  border: 1px solid rgba(17, 17, 17, 0.14);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.card-accent {
  border-top: 4px solid #6D1022;
}

.card-dark {
  background-color: #161616;
  border: 1px solid rgba(243, 243, 241, 0.18);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.card-dark h3,
.card-dark strong {
  color: #F3F3F1;
}

.card-dark p,
.card-dark li {
  color: #D4D4CE;
}

.meta-note {
  font-size: 13px;
  line-height: 1.45;
  color: #3D3D39;
}

.section-dark .meta-note,
.card-dark .meta-note {
  color: #D4D4CE;
}

.stat-line {
  border-top: 1px solid rgba(17, 17, 17, 0.12);
  padding-top: 14px;
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.card-dark .stat-line {
  border-top-color: rgba(243, 243, 241, 0.16);
}

/* Interactive Calculator */
.calc-wrapper {
  background-color: #FFFFFF;
  border: 1px solid rgba(17, 17, 17, 0.18);
  padding: 28px;
  margin-top: 24px;
}

.calc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.14);
  padding-bottom: 16px;
}

.calc-tab {
  background-color: #F3F3F1;
  color: #111111;
  border: 1px solid rgba(17, 17, 17, 0.22);
  padding: 12px 18px;
  min-height: 46px;
  font-family: "Alcantara Sans", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.calc-tab:hover {
  background-color: #E5E5E0;
  color: #111111;
}

.calc-tab[aria-selected="true"] {
  background-color: #6D1022;
  color: #FFFFFF;
  border-color: #6D1022;
}

.calc-panel {
  display: none;
}

.calc-panel.is-active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: #111111;
  margin-bottom: 8px;
}

.form-control,
select,
option,
summary {
  line-height: 1.5;
}

.form-control {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font-family: "Alcantara Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: #111111;
  background-color: #FAFAF8;
  border: 1px solid rgba(17, 17, 17, 0.28);
}

.calc-output {
  background-color: #0B0B0B;
  color: #F3F3F1;
  padding: 28px;
  border: 1px solid rgba(17, 17, 17, 0.2);
}

.calc-output h3,
.calc-output strong {
  color: #F3F3F1;
}

.calc-output p,
.calc-output li {
  color: #D4D4CE;
}

.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(243, 243, 241, 0.15);
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background-color: #FFFFFF;
  border: 1px solid rgba(17, 17, 17, 0.16);
  padding: 16px;
  margin-top: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

th,
td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
  font-size: 17px;
  line-height: 1.5;
  color: #111111;
  vertical-align: top;
}

th,
th strong {
  background-color: #0B0B0B;
  color: #F3F3F1;
  font-weight: 600;
}

/* FAQ / Details */
.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.faq-item {
  background-color: #FFFFFF;
  border: 1px solid rgba(17, 17, 17, 0.16);
  padding: 20px 24px;
}

.faq-item summary {
  font-family: "Alcantara Serif", Georgia, serif;
  font-size: 22px;
  line-height: 32px;
  font-weight: 500;
  color: #111111;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-body {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(17, 17, 17, 0.12);
}

/* Footer */
.site-footer {
  background-color: #0B0B0B;
  color: #F3F3F1;
  padding: 64px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 28px;
  margin-bottom: 36px;
}

.site-footer h3,
.site-footer strong,
.topbar strong {
  color: #F3F3F1;
  margin-bottom: 14px;
}

.site-footer p,
.site-footer li {
  color: #D4D4CE;
  font-size: 13px;
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  color: #F3F3F1;
  font-size: 13px;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  text-decoration: underline;
  color: #FFFFFF;
}

.footer-bottom {
  border-top: 1px solid rgba(243, 243, 241, 0.16);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
}

.footer-copy {
  font-size: 13px;
  color: #D4D4CE;
}

@media (max-width: 960px) {
  .hero-grid,
  .calc-panel.is-active {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 12px;
    border-top: 1px solid rgba(17, 17, 17, 0.12);
  }

  .site-nav.is-open {
    display: flex;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .nav-link,
  .site-nav .btn {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 48px 0;
  }

  .container {
    padding: 0 16px;
  }

  .card,
  .card-dark,
  .dossier-panel,
  .calc-wrapper,
  .calc-output {
    padding: 24px;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
