/* KT Norton: warm, polished portfolio. Mobile first; wider layouts from 56rem. */

/* Fonts are self-hosted (SIL Open Font License; see fonts/LICENSE-*.txt). */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/fraunces-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("fonts/fraunces-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-600.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #FBF4E9;
  --text: #2B2623;
  --accent: #B5532F;
  --accent-hover: #8F3F22;
  --card: #FFFDF8;
  --green: #2F5F4F;
  --mustard: #EEC25C;
  --tag-bg: #D3E1CC;
  --tag-text: #234A3C;
}

*, *::before, *::after {
  box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-wrap: anywhere;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-weight: 600;
  line-height: 1.05;
  margin: 0;
}

p { margin: 0 0 1rem; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: 64rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Top navigation */
.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  padding-block: 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.top a {
  color: var(--text);
  text-decoration: none;
}

.top a:hover {
  color: var(--text);
  text-decoration: underline;
}

section {
  scroll-margin-top: 1rem;
}

/* Hero (cream) */
#hero {
  padding-block: clamp(2rem, 7vw, 4.5rem) clamp(3.5rem, 9vw, 7rem);
}

h1 {
  font-size: clamp(3.9rem, 15vw, 9rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
}

.descriptor {
  font-weight: 600;
  font-size: 1.2rem;
  margin: 1.75rem 0 0;
}

/* About (deep green block) */
#about {
  background: var(--green);
  color: var(--bg);
  padding-block: clamp(3rem, 8vw, 6rem);
}

#about h2,
#projects h2 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
}

#about h2 {
  margin-bottom: 2rem;
}

.about-grid {
  display: grid;
  gap: 1.75rem;
}

.about-grid p {
  margin: 0 0 1rem;
}

.lead {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-variation-settings: "opsz" 72, "SOFT" 100;
  font-size: clamp(1.5rem, 4.2vw, 2.1rem);
  line-height: 1.25;
}

/* Projects (cream) */
#projects {
  padding-block: clamp(3rem, 8vw, 6rem);
}

#projects h2 {
  margin-bottom: 2.5rem;
}

.project {
  background: var(--card);
  border: 2px solid var(--text);
  border-radius: 1.5rem;
  box-shadow: 0.5rem 0.5rem 0 var(--mustard);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  display: grid;
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.project + .project {
  box-shadow: 0.5rem 0.5rem 0 var(--green);
}

.project h3 {
  font-size: clamp(2rem, 6vw, 3rem);
}

.project .subtitle {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.2rem;
  margin: 0.5rem 0 1.25rem;
}

.measure {
  max-width: 40rem;
}

.phone {
  max-width: 17rem;
  border: 3px solid var(--text);
  border-radius: 1.75rem;
  overflow: hidden;
  background: var(--bg);
}

.button {
  display: inline-block;
  padding: 0.65rem 1.7rem;
  border: 2px solid var(--text);
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--text);
}

.button:hover {
  background: var(--accent-hover);
  color: var(--bg);
}

.button:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--text);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.tag {
  background: var(--tag-bg);
  color: var(--tag-text);
  border-radius: 999px;
  padding: 0.15rem 0.8rem;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Currently exploring (slim mustard strip) */
#exploring {
  background: var(--mustard);
  color: var(--text);
  padding-block: 2.25rem;
}

#exploring h2,
#contact h2 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
}

#exploring p {
  margin: 0.75rem 0 0;
  font-size: 1.15rem;
}

/* Contact (terracotta block) */
#contact {
  background: var(--accent);
  color: var(--bg);
  padding-block: clamp(2.5rem, 7vw, 4.5rem);
}

.contact-links {
  margin: 1rem 0 0;
  font-size: 1.25rem;
}

#contact a {
  color: var(--bg);
  text-decoration-thickness: 1px;
}

#contact a:hover {
  color: var(--bg);
  text-decoration-thickness: 3px;
}

#contact :focus-visible {
  outline-color: var(--bg);
}

@media (min-width: 56rem) {
  body { font-size: 1.125rem; }

  .about-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 4rem;
    align-items: start;
  }

  .project--with-phone {
    grid-template-columns: 17rem 1fr;
    gap: 3rem;
    align-items: center;
  }

  .exploring-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 4rem;
    align-items: baseline;
  }

  #exploring p {
    margin: 0;
  }
}
