/* ============================================
   Dragon's Oath: the umbrella home page and the projects page.
   Builds on styles.css (same colors, fonts, buttons).
   ============================================ */

/* Text wordmark: Dragon's Oath has no logo file of its own yet. */
.oath-wordmark{
  font-family:'Cormorant Garamond', Georgia, serif;
  font-size:28px; font-weight:700; letter-spacing:0.02em;
  color:var(--gold); text-decoration:none; white-space:nowrap;
}
.oath-wordmark:hover{ color:var(--gold-bright); }

.oath-hero{ padding:120px 0 64px; text-align:center; }
.oath-hero h1{ font-size:clamp(40px, 6vw, 68px); line-height:1.05; margin:0 0 20px; }
.oath-hero h1 .accent{ color:var(--gold); }
.oath-hero .subhead{
  max-width:620px; margin:0 auto; color:var(--text-dim);
  font-size:18px; line-height:1.6;
}

/* The doors: one card per part of the business, the whole card is the link. */
.oath-doors{
  display:grid; gap:24px;
  grid-template-columns:repeat(3, minmax(0, 1fr));
}
@media (max-width:900px){ .oath-doors{ grid-template-columns:1fr; } }

.door{
  display:flex; flex-direction:column;
  background:var(--bg-panel); border:1px solid var(--line); border-radius:12px;
  overflow:hidden; text-decoration:none; color:var(--text);
  transition:border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.door:hover, .door:focus-visible{
  border-color:var(--gold-dim); transform:translateY(-3px);
  box-shadow:0 18px 40px rgba(0,0,0,0.35);
}
.door:focus-visible{ outline:2px solid var(--gold); outline-offset:3px; }
.door-img{
  aspect-ratio:16/10; background:var(--bg-elevated);
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.door-img img{ width:100%; height:100%; object-fit:cover; display:block; }
.door-img.mark img{ width:46%; height:auto; object-fit:contain; }
.door-body{ padding:26px 26px 28px; display:flex; flex-direction:column; gap:10px; flex:1; }
.door-kicker{
  font-size:12px; font-weight:600; letter-spacing:0.14em; text-transform:uppercase;
  color:var(--gold);
}
.door h2, .door h3{ font-size:28px; margin:0; line-height:1.15; }
.door p{ color:var(--text-dim); margin:0; line-height:1.6; font-size:15px; }
.door-go{ margin-top:auto; padding-top:10px; color:var(--gold); font-weight:600; font-size:15px; }
.door:hover .door-go{ color:var(--gold-bright); }

/* Projects page: wider cards with an image beside the text. */
.project{
  display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1.1fr); gap:0;
  background:var(--bg-panel); border:1px solid var(--line); border-radius:12px;
  overflow:hidden; margin-bottom:28px;
}
@media (max-width:860px){ .project{ grid-template-columns:1fr; } }
.project-img{ background:var(--bg-elevated); min-height:260px; position:relative; }
/* The text sets the card's height; the picture fills whatever that is. */
.project-img img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.project-img img.top{ object-position:left top; }
.project-body{ padding:34px; display:flex; flex-direction:column; gap:14px; }
.project-body h2{ font-size:34px; margin:0; }
.project-body p{ color:var(--text-dim); margin:0; line-height:1.65; }
.project-body ul{ margin:0; padding-left:20px; color:var(--text-dim); line-height:1.7; }
.project-body ul a{ color:var(--gold); }
.status-pill{
  align-self:flex-start; font-size:12px; font-weight:600; letter-spacing:0.08em;
  text-transform:uppercase; padding:5px 12px; border-radius:999px;
  border:1px solid var(--gold-dim); color:var(--gold);
}
.project-ctas{ display:flex; flex-wrap:wrap; gap:12px; margin-top:6px; }

/* Support strip. */
.oath-support{
  text-align:center; padding:56px 24px; border:1px solid var(--line); border-radius:12px;
  background:linear-gradient(180deg, var(--bg-panel), var(--bg-elevated));
}
.oath-support h2{ font-size:34px; margin:0 0 12px; }
.oath-support p{ color:var(--text-dim); max-width:540px; margin:0 auto 24px; line-height:1.6; }

/* The cards sit right under the hero, without the usual section divider. */
section.oath-hero{ border-bottom:0; }
section.oath-first{ padding-top:0; }

/* On phones the header has no side padding (the Dragon's Vault logo image carries its own space). */
@media (max-width:900px){ .oath-wordmark{ padding-left:16px; font-size:24px; } }

/* The Dragon's Oath logo: small in the header, large at the top of the home page. */
.oath-wordmark{ display:inline-flex; align-items:center; gap:12px; }
.oath-wordmark img{ width:52px; height:52px; border-radius:50%; display:block; }
.oath-hero{ padding-top:72px; }
.oath-logo{
  display:block; width:min(320px, 72vw); height:auto; margin:0 auto 28px;
  /* Soft round edge, so the picture's dark square background melts into the page. */
  -webkit-mask-image:radial-gradient(closest-side, #000 90%, transparent 100%);
  mask-image:radial-gradient(closest-side, #000 90%, transparent 100%);
}
@media (max-width:900px){ .oath-wordmark img{ width:40px; height:40px; } }
