/* === Fonts (self-hosted Poppins, latin + latin-ext, copied from morethanok-website) === */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/poppins-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/poppins-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* === Reset & base === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --bg-muted: #fafafa;
  --text: #1c1c1c;
  --text-muted: #5c5c5c;
  --border: #e6e6e6;
  --border-strong: #1c1c1c;
  --max-width: 640px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161616;
    --bg-muted: #1c1c1c;
    --text: #f0f0f0;
    --text-muted: #a8a8a8;
    --border: #2e2e2e;
    --border-strong: #f0f0f0;
  }
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2 {
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

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

/* === Layout === */
main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 1.5rem 5rem;
}

.intro h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  margin-bottom: 1rem;
}

.intro p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.section {
  margin-top: 3.5rem;
}

.section h2 {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* === Project cards === */
.cards {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.card {
  display: block;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.2s;
}

.card:hover {
  border-color: var(--border-strong);
}

.card-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.75rem;
  font-weight: 600;
  font-size: 1.05rem;
}

.card-domain {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card-text {
  display: block;
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* === Contact === */
.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.contact a,
.link {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: opacity 0.2s;
}

.contact a:hover,
.link:hover {
  opacity: 0.6;
}

/* === Footer === */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-muted);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  main {
    padding-top: 4rem;
  }
}
