/* =========================================================
   keyzito.com — The Key Family
   ========================================================= */

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

:root {
  --forest:       #1d3a2e;
  --forest-light: #264d3d;
  --forest-dark:  #111f18;
  --clay:         #c96a2a;
  --clay-light:   #e07a35;
  --clay-dark:    #a85620;
  --off-white:    #faf8f4;
  --warm-gray:    #f0ede7;
  --text:         #1d2520;
  --muted:        #686f64;
  --border:       #d8d5cf;
  --font-sans:    'Poppins', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
}

/* =========================================================
   Container
   ========================================================= */

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   Header / Nav
   ========================================================= */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--forest-dark);
  transition: box-shadow 0.2s;
}

header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.35);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1;
}

.wordmark-key {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

.wordmark-zito {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.01em;
}

.wordmark-dot {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--clay);
  margin-left: 2px;
  letter-spacing: 0.05em;
}

.header-hub {
  background: transparent;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.82rem;
  padding: 8px 18px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: border-color 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-hub:hover {
  border-color: rgba(255,255,255,0.45);
  color: #fff;
}

.header-hub svg {
  flex-shrink: 0;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  background: var(--forest);
  padding: 140px 24px 80px;
  text-align: center;
}

.hero-eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--clay);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 1.0rem;
  color: rgba(255,255,255,0.6);
  max-width: 480px;
  margin: 0 auto 44px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--clay);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 13px 28px;
  border-radius: 3px;
  transition: background 0.15s;
  letter-spacing: 0.01em;
}

.btn-primary:hover { background: var(--clay-light); }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  padding: 12px 24px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: border-color 0.15s, color 0.15s;
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.45);
  color: #fff;
}

/* =========================================================
   Clay rule divider
   ========================================================= */

.clay-rule {
  height: 2px;
  background: var(--clay);
  width: 40px;
  margin: 0 auto 28px;
  border: none;
}

.clay-rule.left {
  margin: 0 0 24px;
}

/* =========================================================
   Sections
   ========================================================= */

section {
  padding: 72px 24px;
}

section.section-alt {
  background: var(--warm-gray);
}

section.section-dark {
  background: var(--forest);
  color: #fff;
}

.section-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--clay);
  margin-bottom: 8px;
  display: block;
}

section h2 {
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 16px;
  line-height: 1.25;
}

section.section-dark h2 { color: #fff; }

section p {
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.75;
}

section.section-dark p { color: rgba(255,255,255,0.68); }

/* =========================================================
   Family directory — domain cards
   ========================================================= */

.directory-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.directory-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--forest);
  border-radius: 2px;
  padding: 22px 20px;
  text-decoration: none;
  color: inherit;
  transition: border-left-color 0.15s, box-shadow 0.15s;
  display: block;
}

.directory-card:hover {
  border-left-color: var(--clay);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.directory-card.coming-soon {
  border-left-color: var(--border);
  opacity: 0.65;
  cursor: default;
}

.card-owner {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 4px;
}

.card-domain {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 4px;
}

.directory-card:hover .card-domain { color: var(--clay-dark); }

.card-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.card-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  border-radius: 2px;
  margin-bottom: 8px;
}

.card-tag.live {
  background: rgba(29,58,46,0.1);
  color: var(--forest);
}

.card-tag.soon {
  background: rgba(201,106,42,0.1);
  color: var(--clay-dark);
}

/* =========================================================
   Contact section
   ========================================================= */

.contact-block {
  max-width: 560px;
  margin: 36px auto 0;
  text-align: center;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--forest);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0rem;
  padding: 12px 24px;
  border: 2px solid var(--forest);
  border-radius: 3px;
  transition: background 0.15s, color 0.15s;
  margin-top: 12px;
}

.email-link:hover {
  background: var(--forest);
  color: #fff;
}

/* =========================================================
   Footer
   ========================================================= */

footer {
  background: var(--forest-dark);
  padding: 32px 24px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

.footer-hub {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-hub:hover { color: var(--clay); }

/* =========================================================
   Hub page — password gate
   ========================================================= */

.gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--forest);
  padding: 40px 24px;
  text-align: center;
}

.gate-inner {
  max-width: 380px;
  width: 100%;
}

.gate-monogram {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}

.gate-monogram span {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.gate h1 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.gate p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 28px;
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gate-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: #fff;
  text-align: center;
  letter-spacing: 0.08em;
  transition: border-color 0.15s;
  outline: none;
}

.gate-input::placeholder { color: rgba(255,255,255,0.3); }
.gate-input:focus { border-color: var(--clay); }

.gate-btn {
  width: 100%;
  padding: 13px;
  background: var(--clay);
  color: #fff;
  border: none;
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.gate-btn:hover { background: var(--clay-light); }

.gate-error {
  font-size: 0.82rem;
  color: #f08080;
  display: none;
}

/* =========================================================
   Hub page — content
   ========================================================= */

.hub-header {
  background: var(--forest-dark);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hub-header-inner {
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.hub-wordmark {
  font-size: 1.0rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hub-wordmark-sub {
  font-size: 0.65rem;
  font-weight: 400;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hub-date {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

.hub-sign-out {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: color 0.15s;
  padding: 4px 0;
}

.hub-sign-out:hover { color: rgba(255,255,255,0.7); }

.hub-body {
  background: var(--off-white);
  min-height: calc(100vh - 60px);
  padding: 48px 24px 80px;
}

.hub-section {
  max-width: 960px;
  margin: 0 auto 48px;
}

.hub-section:last-child { margin-bottom: 0; }

.hub-section-title {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--clay);
  margin-bottom: 4px;
}

.hub-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* Contacts table */
.contacts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.contacts-table th {
  text-align: left;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 0 12px 10px 0;
  border-bottom: 1px solid var(--border);
}

.contacts-table td {
  padding: 10px 12px 10px 0;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  line-height: 1.4;
  font-size: 0.88rem;
  vertical-align: top;
}

.contacts-table tr:last-child td { border-bottom: none; }

.contacts-table td.label {
  font-weight: 600;
  color: var(--forest);
  white-space: nowrap;
}

.contacts-table a {
  color: var(--forest);
  text-decoration: none;
}

.contacts-table a:hover { color: var(--clay-dark); }

/* Links grid */
.links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.link-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
  display: block;
}

.link-card:hover {
  border-color: var(--forest-light);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.link-card-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 3px;
}

.link-card-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--forest);
}

.link-card-url {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Docs list */
.docs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.docs-list li {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  font-size: 0.88rem;
}

.docs-list li:last-child { border-bottom: none; }

.doc-name {
  font-weight: 600;
  color: var(--forest);
}

.doc-location {
  color: var(--muted);
  line-height: 1.4;
}

.doc-updated {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

/* Notes */
.notes-area {
  width: 100%;
  min-height: 120px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text);
  background: #fff;
  resize: vertical;
  line-height: 1.6;
}

.notes-area:focus {
  outline: none;
  border-color: var(--forest-light);
}

.notes-hint {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 6px;
}

/* Important dates */
.dates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.date-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 16px;
  text-align: center;
}

.date-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 6px;
}

.date-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--forest);
}

.date-note {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 3px;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 760px) {
  .directory-grid { grid-template-columns: 1fr; }
  .links-grid { grid-template-columns: repeat(2, 1fr); }
  .dates-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; align-items: center; }

  .docs-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .doc-updated { text-align: left; }
}

@media (max-width: 500px) {
  .links-grid { grid-template-columns: 1fr; }
  .dates-grid { grid-template-columns: 1fr 1fr; }
}
