/* 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: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("fonts/space-grotesk-latin-700-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 centred over About . Contact, then the heavy rule */
.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 1.4vw, 26px);
  padding: clamp(20px, 3vw, 56px) var(--edge) clamp(16px, 1.8vw, 34px);
  border-bottom: 5px solid var(--ink);
}
.logo img { display: block; width: clamp(80px, 6.2vw, 118px); height: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-nav { display: flex; align-items: flex-start; line-height: 1.3; font-size: clamp(18px, 1.15vw, 22px); }
.site-nav a { display: inline-flex; flex-direction: column; text-decoration: none; }
/* Hover (and the current page) turns the link bold. The hidden bold copy keeps the width fixed so nothing shifts. */
.site-nav a::after { content: attr(data-label); font-weight: 700; visibility: hidden; height: 0; overflow: hidden; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current] { font-weight: 700; }
.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; }
}

/* Project pages (shared by every project): overview, gallery, then the link to the real thing */
.back { margin: 0 0 clamp(20px, 2.4vw, 40px); font-size: 17px; }
.back a { text-decoration: none; }
.back a:hover { text-decoration: underline; text-underline-offset: 4px; }
.project-hero { padding-bottom: clamp(28px, 3vw, 52px); border-bottom: 1px solid var(--ink); }
.project-name { margin: 0; padding: 0; font-family: var(--mono); font-size: clamp(56px, 6vw, 110px); line-height: 1.05; letter-spacing: -0.02em; }
.project-facts { display: flex; flex-wrap: wrap; gap: 8px 40px; margin: 22px 0 0; font-size: 17px; }
.project-facts dt { font-weight: 500; }
.project-facts dd { margin: 2px 0 0; font-weight: 300; }
.button-link {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 26px 0 0; padding: 12px 26px;
  border: 1px solid var(--ink); border-radius: 12px;
  background: var(--ink); color: var(--paper);
  font-weight: 500; font-size: 17px; text-decoration: none;
}
a.button-link:hover { background: var(--paper); color: var(--ink); }
.button-link.is-waiting { background: var(--paper); color: var(--muted); border-color: var(--muted); border-style: dashed; }
.project-section { padding-top: clamp(28px, 3vw, 52px); }
.project-section h3 { margin: 0 0 18px; font-weight: 400; font-size: clamp(26px, 2vw, 38px); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.gallery figure { margin: 0; }
.gallery img, .gallery video, .gallery canvas { display: block; width: 100%; height: auto; border: 1px solid var(--ink); border-radius: 12px; }
.gallery figcaption { margin-top: 8px; font-size: 15px; font-weight: 300; }
.gallery-empty {
  grid-column: 1 / -1; margin: 0; padding: 48px 24px;
  border: 1px dashed var(--muted); border-radius: 12px;
  color: var(--muted); font-weight: 300; font-size: 17px; text-align: center;
}
