/* danielharries.com — splash site. Layout follows concept/DH-website_mockup.ai (1920 x 1080 artboard). */

@font-face { font-family: "Space Grotesk"; font-weight: 300; font-display: swap; src: url("fonts/space-grotesk-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 400; font-display: swap; src: url("fonts/space-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url("fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto Mono"; font-weight: 400; font-display: swap; src: url("fonts/roboto-mono-latin-400-normal.woff2") format("woff2"); }

:root {
  --ink: #000;
  --paper: #fff;
  --muted: #555;
  --status: #f7a133;        /* the orange "in progress" dot */
  --edge: clamp(20px, 6vw, 115px);
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "Roboto Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
}
a { color: inherit; }

/* Header: logo, site title, About . Contact, then the heavy rule */
.site-header {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 34px);
  padding: clamp(20px, 3.5vw, 68px) var(--edge) clamp(20px, 2.6vw, 50px);
  border-bottom: 5px solid var(--ink);
}
.logo img { display: block; width: clamp(64px, 6.6vw, 127px); height: auto; }
.site-title {
  margin: 0;
  font-weight: 400;
  font-size: clamp(30px, 3.1vw, 60px);
  line-height: 1.1;
}
.site-title a { text-decoration: none; }
.site-nav { margin-top: clamp(6px, 0.9vw, 14px); font-size: clamp(16px, 1.15vw, 22px); }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }
.site-nav .sep { margin: 0 0.6em; }

main { flex: 1; padding: clamp(28px, 3.6vw, 70px) var(--edge) clamp(48px, 5vw, 96px); }
h2 {
  margin: 0 0 clamp(24px, 3.4vw, 64px);
  padding-left: clamp(0px, 2vw, 38px);
  font-weight: 400;
  font-size: clamp(32px, 2.7vw, 52px);
}

/* Project cards */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 440px));
  gap: clamp(20px, 3.75vw, 72px);
  margin: 0; padding: 0; list-style: none;
}
.card {
  display: block;
  height: 100%;
  padding: 18px 28px 26px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover, .card:focus-visible { transform: translateY(-3px); box-shadow: 0 6px 0 var(--ink); }
.card-name { display: block; font-family: var(--mono); font-size: clamp(48px, 3.9vw, 74px); line-height: 1.1; letter-spacing: -0.02em; }
/* The concept sets the type ("App.", "Web.") in Medium and the descriptor in Light */
.card-desc { display: block; margin-top: 10px; font-weight: 300; font-size: 19px; }
.card-desc strong { font-weight: 500; }
.status { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-weight: 300; font-size: 19px; color: var(--status); }
.status::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--status); }

/* Text pages (About, Contact, coming soon) */
.prose { max-width: 38rem; font-size: 19px; line-height: 1.55; }
.prose p { margin: 0 0 1em; }
.prose .mono { font-family: var(--mono); }

/* Contact form */
form { display: grid; gap: 18px; max-width: 38rem; margin-top: 8px; }
label { display: grid; gap: 6px; font-size: 17px; }
input, textarea {
  font: inherit; font-size: 17px;
  padding: 12px 14px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
}
textarea { min-height: 10rem; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--status); outline-offset: 1px; }
.trap { position: absolute; left: -9999px; }
button {
  justify-self: start;
  font: inherit; font-weight: 500; font-size: 17px;
  padding: 12px 26px;
  border: 1px solid var(--ink); border-radius: 12px;
  background: var(--ink); color: var(--paper);
  cursor: pointer;
}
button:hover { background: var(--paper); color: var(--ink); }
.form-note { min-height: 1.5em; margin: 0; font-size: 17px; }

/* Footer: the black bar */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px var(--edge);
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
}
.site-footer a { display: flex; text-decoration: none; }
.site-footer svg { width: 18px; height: 18px; fill: currentColor; }

@media (max-width: 600px) {
  .site-header { border-bottom-width: 4px; }
  .card { padding: 14px 20px 20px; }
}
