@import url("palette.css");

@font-face {
  font-family: "Tektur";
  src: url("../fonts/Tektur.ttf") format("truetype");
  font-weight: 400 900;
  font-stretch: 75% 100%;
  font-display: swap;
}

@font-face {
  font-family: "Audiowide";
  src: url("../fonts/Audiowide.ttf") format("truetype");
  font-display: swap;
}

:root {
  --white: #ffffff;
  --black: #000000;

  --color-bg: var(--palette-1);
  --color-surface: var(--palette-2);
  --color-border: var(--palette-3);
  --color-text: var(--white);
  --color-accent: var(--palette-5);
  --color-shadow: var(--black);
  --radius: 12px;
  --font-main: "Tektur", sans-serif;
  --font-heading: "Audiowide", sans-serif;
}

header {
    background: var(--color-surface);
    position: sticky;
    top: 0;
    border-bottom: 1px solid var(--color-border);
    z-index: 10;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  line-height: 1.7;
  margin: 0;
}

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: 3rem 0;
    border-bottom: 1px solid var(--color-border);
    scroll-margin-top: 3.75rem;
}

section:last-child {
    border-bottom: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: normal;
  text-transform: uppercase;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

h2 {
    margin-top: 0;
}

h2::after {
    content: "";
    display: block;
    width: 4rem;
    height: 4px;
    background-color: var(--color-accent);
    margin-top: 0.5rem;
    border-radius: 2px;
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1rem;
    letter-spacing: 0.1em;
}

a {
    color: var(--color-text);
    text-decoration-color: var(--color-accent);
    text-underline-offset: 4px;
}

a:hover {
    text-decoration-thickness: 3px;
}

nav ul{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 1rem;
    text-align: center;
}

nav li {
    display: inline-block;
    margin: 0 0.75rem;
}

#hero {
    text-align: center;
    padding: 4rem 0;
}

#hero a {
    display: inline-block;
    margin: 0.5rem;
    padding: 0.6rem 1.5rem;
    background: var(--color-accent);
    border-radius: var(--radius);
    text-decoration: none;
}

#hero a:hover {
    filter: brightness(0.8);
}

#hero a + a {
  background: transparent;
  border: 2px solid var(--color-accent);
}

#hero a + a:hover {
  background: var(--color-accent);
  filter: none;
}

figure {
    text-align: center;
    margin: 2rem 0;
}

figure img {
    width: 260px;
    max-width: 100%;
    height: auto;
    border: 4px solid var(--color-accent);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px var(--color-shadow);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

figure img:hover {
    transform: rotate(0deg);
}

article {
    background: var(--color-surface);
    border-top: 4px solid var(--color-accent);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px var(--color-shadow);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

article h3 {
    margin-top: 0;
}

details {
    background: var(--color-border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    margin-top: 1rem;
}

summary {
    cursor: pointer;
}

li::marker {
    color: var(--color-accent);
}

abbr[title] {
    text-decoration: underline dotted;
    cursor: help;
    text-underline-offset: 4px;
}

a[target="_blank"]::after {
    content: " ↗";
}

address {
    font-style: normal;
}

address ul {
    list-style: none;
    padding: 0;
}

footer {
    background: var(--color-surface);
    text-align: center;
    padding: 2rem 1rem;
    border-top: 1px solid var(--color-border);
}

footer p {
    margin: 0.25rem 0;
}

/*
Copilot prompt: Edit only css/styles.css; do not modify HTML. Create a mobile-first
CSS Grid layout for the existing #projects section. Keep the heading and intro
paragraph across the full grid width. Use one column on small screens and two
columns at a wider breakpoint, with the first project article spanning both
columns. Preserve existing colors and typography. Include responsive rules at
48rem, 64rem, and 80rem.

Copilot output:
*/
#projects {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 1.5rem;
}

#projects > h2,
#projects > p {
  grid-column: 1 / -1;
}

#projects > article {
  min-width: 0;
  margin: 0;
}

@media (min-width: 48rem) {
  #projects > article:first-of-type {
    grid-column: 1 / -1;
  }

  #projects {
    gap: 1.75rem;
  }
}

@media (min-width: 64rem) {
  main {
    max-width: 1000px;
  }

  #projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
}

@media (min-width: 80rem) {
  main {
    max-width: 1120px;
  }

  #projects {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 2.5rem;
  }

  #projects > article:first-of-type {
    grid-column: auto;
  }
}

/* End of Copilot output */