/* Farver og typografi hentet fra HAU-logoet: sort, hvid og skifergrå */
:root {
  --ink: #0f1419;
  --paper: #f5f4f1;
  --white: #fff;
  --slate-light: #a3afba;
  --slate: #7d8d9c;
  --slate-dark: #4f6275;
  --muted: #55606b;
  --line: #d6d8da;
  --wrap: 1100px;
  --radius: 14px;
  /* Skygger i stil med MUI Paper (elevation 1, 2, 4, 8) */
  --shadow-1: 0 2px 1px -1px rgba(15,20,25,.2), 0 1px 1px 0 rgba(15,20,25,.14), 0 1px 3px 0 rgba(15,20,25,.12);
  --shadow-2: 0 3px 1px -2px rgba(15,20,25,.2), 0 2px 2px 0 rgba(15,20,25,.14), 0 1px 5px 0 rgba(15,20,25,.12);
  --shadow-4: 0 2px 4px -1px rgba(15,20,25,.2), 0 4px 5px 0 rgba(15,20,25,.14), 0 1px 10px 0 rgba(15,20,25,.12);
  --shadow-8: 0 5px 5px -3px rgba(15,20,25,.2), 0 8px 10px 1px rgba(15,20,25,.14), 0 3px 14px 2px rgba(15,20,25,.12);
  --display: "Antonio", "Bebas Neue", "Arial Narrow", sans-serif;
  --deco: "Josefin Sans", "Futura", "Century Gothic", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

a { color: var(--slate-dark); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: .01em; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: .03em; }
h3 { font-size: 1.35rem; letter-spacing: .06em; font-weight: 600; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* Art deco-striber, som i logoet: tyk, tynd, tyk */
.stripes,
.section h2::after {
  content: "";
  display: block;
  width: 88px;
  height: 14px;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 4px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 7px / 70% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 11px / 40% 3px no-repeat;
  margin-top: 18px;
}

/* Knapper */
.btn {
  display: inline-block;
  padding: .85em 1.8em .7em;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--deco);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-2);
  transition: background .15s, color .15s, box-shadow .2s;
}
.btn:hover { background: var(--slate-dark); border-color: var(--slate-dark); box-shadow: var(--shadow-4); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-small { padding: .55em 1.2em .45em; font-size: .78rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 244, 241, .94);
  backdrop-filter: blur(8px);
  border-bottom: 3px double var(--ink);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.logo img { display: block; }
.logo-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.logo-text em { font-style: normal; font-weight: 400; color: var(--slate-dark); }
nav { display: flex; align-items: center; gap: 28px; }
nav a:not(.btn) {
  font-family: var(--deco);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
nav a:not(.btn):hover { color: var(--slate-dark); }

/* Hero – diagonal skifergrå baggrund som bag logoet */
.hero {
  background: linear-gradient(135deg, var(--slate-light) 0%, var(--slate-light) 52%, var(--slate) 52%, var(--slate-dark) 100%);
  border-bottom: 3px double var(--ink);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 104px;
}
.eyebrow {
  font-family: var(--deco);
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: .82rem;
  font-weight: 600;
  margin: 0 0 1.2em;
}
.lead { font-size: 1.2rem; max-width: 32em; color: #1d2a36; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

/* Billedramme med dobbelt deco-kant */
.hero-image {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--paper);
  border: 3px solid var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: 8px;
  box-shadow: var(--shadow-8);
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: var(--deco);
  font-size: .85rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin: 9px;
}
.hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%; /* bevar ansigter ved beskæring */
  border-radius: 15px;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-image img.active { opacity: 1; }

/* Prikker til billedskifteren */
.slide-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 1;
}
.slide-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: transparent;
  box-shadow: var(--shadow-1);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.slide-dots button.active { background: var(--white); transform: scale(1.2); }
@media (prefers-reduced-motion: reduce) {
  .hero-image img { transition: none; }
}

/* Sektioner */
.section { padding: 96px 0; }
.section-alt { background: #e9ecef; border-block: 1px solid var(--line); }
.section h2 { margin-bottom: 28px; }
.section-intro { color: var(--muted); max-width: 40em; margin-bottom: 40px; }

/* Kort med tynd indre ramme */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.card,
.project {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow-2);
  transition: box-shadow .2s, transform .2s;
}
.card:hover,
.project:hover {
  box-shadow: var(--shadow-8);
  transform: translateY(-2px);
}
.card::before,
.project::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 5px);
  pointer-events: none;
}
.card h3 { padding-bottom: 12px; border-bottom: 3px double var(--ink); }
.card p { color: var(--muted); margin: 0; }

/* Om mig */
.about {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-lead { font-size: 1.2rem; margin-top: 0; }
.about-text p { color: var(--muted); }
.about-text p.about-lead { color: var(--ink); }
.about-text h3 { margin-top: 40px; }
.passions { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.passions li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}
.passions li::before {
  /* lille deco-markør: tre streger som i logoet */
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 16px;
  height: 9px;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 4px / 70% 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 7px / 40% 2px no-repeat;
}
.passions strong { color: var(--ink); }

.about-side { display: grid; gap: 24px; }
.timeline strong { line-height: 1.35; }
.panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow-2);
}
.panel h3 { padding-bottom: 12px; border-bottom: 3px double var(--ink); margin-bottom: 20px; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  position: relative;
  display: grid;
  padding: 0 0 20px 24px;
  border-left: 2px solid var(--line);
}
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
}
.timeline li:first-child::before { background: var(--ink); }
.timeline .when {
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: .08em;
  color: var(--slate-dark);
  line-height: 1.2;
}
.timeline span:last-child { color: var(--muted); font-size: .95rem; }

/* Fold ud-knap i hjørnet af boksen (som MUI IconButton + ExpandMore) */
.panel { position: relative; }
.expand-button {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s;
}
.expand-button:hover { background: rgba(15, 20, 25, .06); }
.expand-button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.expand-button svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: currentColor;
  transition: transform .2s ease;
}
.expand-button.open svg { transform: rotate(180deg); }

.tech { margin: 0; }
.tech dt {
  font-family: var(--deco);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.tech dd { margin: 0 0 18px; }
.tech dd:last-child { margin-bottom: 0; }

/* Projekter */
.projects {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.project { background: var(--white); }
.project-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.project-head h3 { margin: 0; }
.project-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.project-logo {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--white);
  object-fit: contain;
  box-shadow: var(--shadow-1);
}
.project { display: flex; flex-direction: column; }
.badge {
  flex-shrink: 0;
  padding: .35em .8em .25em;
  border-radius: 999px;
  background: var(--slate-dark);
  color: var(--white);
  font-family: var(--deco);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.project-link {
  margin-top: auto;
  padding-top: 18px;
  align-self: flex-start;
  font-family: var(--deco);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--slate);
}
.project-link:hover { border-bottom-color: var(--ink); }
.project p { color: var(--muted); margin: 0 0 18px; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-family: var(--deco);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .4em .9em .25em;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
}

/* Kontakt */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.contact-info { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 28px; }
.contact-info dt {
  font-family: var(--deco);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding-top: .2em;
}
.contact-info dd { margin: 0; }

.contact-form {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-4);
  padding: 36px;
  display: grid;
  gap: 20px;
}
.contact-form label {
  display: grid;
  gap: 8px;
  font-family: var(--deco);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: 400 1rem/1.5 var(--body);
  letter-spacing: normal;
  text-transform: none;
  padding: .75em .9em;
  border: 1px solid var(--slate);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}
.contact-form .btn { justify-self: start; }
.contact-form .btn:disabled { opacity: .6; cursor: wait; }

/* Emnevalg som runde valgknapper i stedet for dropdown */
.choices {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choices legend {
  padding: 0;
  margin-bottom: 8px;
  font-family: var(--deco);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.contact-form .choices label { display: block; cursor: pointer; }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices span {
  display: inline-block;
  padding: .6em 1.1em .5em;
  border: 1px solid var(--slate);
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--deco);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  transition: background .15s, color .15s, box-shadow .15s;
}
.choices label:hover span { border-color: var(--ink); }
.choices input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow-2);
}
.choices input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  margin: 0;
  padding: .8em 1em;
  border-radius: 8px;
  font-size: .95rem;
}
.form-status.ok { background: #e6efe8; color: #1e4d2b; }
.form-status.error { background: #f6e5e3; color: #7a2419; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--slate-light);
  padding: 36px 0;
  font-size: .9rem;
  border-top: 6px double var(--slate);
}
.footer-inner { display: flex; align-items: center; gap: 16px; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--white); }

/* Mobil */
@media (max-width: 820px) {
  .hero-inner, .contact { grid-template-columns: 1fr; gap: 48px; }
  .hero-inner { padding-top: 64px; padding-bottom: 72px; }
  .hero-image { max-width: 340px; }
  .cards, .projects { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 72px 0; }
}
@media (max-width: 520px) {
  nav a:not(.btn) { display: none; }
  .logo-text { font-size: 1.1rem; }
  .contact-form { padding: 24px; }
}
