:root {
  color-scheme: light;
  --bg: #f3f1e1;
  --ink: #1f2411;
  --muted: #656948;
  --line: #d1cfab;
  --green: #6f7f2a;
  --green-dark: #35430f;
  --gold: #b88926;
  --blue: #2f7fb8;
  --blue-dark: #17456f;
  --blue-soft: #d9edf9;
  --panel: #fffdf2;
  --shadow: 0 18px 48px rgba(44, 52, 18, 0.15);
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(84, 102, 34, 0.18), transparent 34%),
    linear-gradient(315deg, rgba(47, 127, 184, 0.14), transparent 38%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-wrap: anywhere;
}

img,
svg {
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(184, 137, 38, 0.72);
  outline-offset: 3px;
}

h1,
h2,
h3,
p,
li,
a,
button,
span,
strong {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hub-shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 16px;
}

.hub-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 4px;
}

.brand-title {
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
}

.brand-title img {
  display: block;
  width: min(100%, 760px);
  height: auto;
}

.domain-pill {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 10px 14px;
  color: var(--green-dark);
  font-weight: 850;
  box-shadow: 0 8px 20px rgba(44, 52, 18, 0.08);
}

.hub-intro {
  margin: 26px 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 42px);
}

.hub-intro,
.tool-card,
.external-card,
.privacy-note {
  min-width: 0;
  overflow-wrap: break-word;
}

.label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hub-intro h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
}

.hub-intro p:not(.label) {
  max-width: 800px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.5;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tool-card {
  display: grid;
  gap: 18px;
  align-content: space-between;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 30px);
}

.level-card {
  border-top: 8px solid var(--green);
}

.practice-card {
  border-top: 8px solid var(--blue);
}

.tool-card h3 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1.05;
}

.tool-card p:not(.label) {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.tool-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.4;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 8px;
  background: var(--green-dark);
  color: #fff;
  padding: 0 18px;
  font-size: 1rem;
  font-weight: 900;
  text-decoration: none;
  text-align: center;
}

.blue-link {
  background: var(--blue-dark);
}

.external-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  border: 1px solid rgba(184, 137, 38, 0.42);
  border-left: 8px solid var(--gold);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 253, 242, 0.95), rgba(233, 236, 212, 0.84)),
    #fffdf2;
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 30px);
}

.external-card h3 {
  margin: 0;
  color: var(--green-dark);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.05;
}

.external-card p:not(.label) {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.5;
}

.external-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 1px solid rgba(184, 137, 38, 0.55);
  border-radius: 8px;
  background: var(--gold);
  color: #fff;
  padding: 0 18px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.privacy-note {
  margin-top: 18px;
  border: 1px solid rgba(101, 105, 72, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 26px rgba(44, 52, 18, 0.08);
  padding: 18px 20px;
}

.privacy-note h2 {
  margin: 0;
  color: var(--green-dark);
  font-size: 1rem;
  line-height: 1.2;
}

.privacy-note p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
}

@media (max-width: 820px) {
  .hub-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .external-card {
    grid-template-columns: 1fr;
  }

  .external-link {
    width: 100%;
    white-space: normal;
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .hub-shell {
    padding: 12px 10px;
  }

  .hub-intro,
  .tool-card,
  .external-card,
  .privacy-note {
    padding: 18px;
  }

  .domain-pill {
    max-width: 100%;
  }

  .hub-intro h2 {
    font-size: 1.72rem;
  }

  .hub-intro p:not(.label),
  .tool-card p:not(.label),
  .tool-card li {
    font-size: 0.94rem;
  }
}
