/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --c-bg:     #ffffff;
  --c-text:   #111111;
  --c-muted:  #888888;
  --c-border: #dddddd;

  --f-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --fs-display: clamp(2rem, 8vw, 3.5rem);
  --fs-nav:     0.85rem;
  --fs-label:   0.72rem;
  --fs-body:    0.95rem;
  --fs-sm:      0.85rem;

  --max-w:  640px;
  --pad-x:  1.5rem;
}


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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-mono);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding: 3rem var(--pad-x) 4rem;
  max-width: var(--max-w);
  margin: 0 auto;
}


/* ============================================================
   LINKS
   ============================================================ */
a {
  color: #0000EE;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: #0000EE;
  text-decoration-color: #0000EE;
}


/* ============================================================
   HEADER — name → image → clock → nav
   ============================================================ */
h1 {
  font-family: var(--f-mono);
  font-size: var(--fs-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

h1 a {
  text-decoration: none;
  color: var(--c-text);
}

h1 a:hover {
  text-decoration: none;
  color: var(--c-text);
}

img.header-img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  margin-bottom: 1.5rem;
}

.clock {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  margin-bottom: 1rem;
  font-style: italic;
}

nav {
  font-size: var(--fs-nav);
  margin-bottom: 2.5rem;
}

nav a {
  text-decoration: none;
  color: #0000EE;
}

nav a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ============================================================
   DIVIDER
   ============================================================ */
hr {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: 2rem 0;
}


/* ============================================================
   SECTIONS
   ============================================================ */
section h2 {
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 1rem;
}

section p + p {
  margin-top: 0.75rem;
}


/* ============================================================
   PROJECTS
   ============================================================ */
.project-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.tag {
  font-size: var(--fs-label);
  color: var(--c-muted);
  letter-spacing: 0.04em;
}


/* ============================================================
   SKILLS
   ============================================================ */
.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.skill-label {
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
}


/* ============================================================
   CONTACT FORM
   ============================================================ */
#contact-form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.form-field input,
.form-field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--c-border);
  outline: none;
  padding: 0.3rem 0;
  font-family: var(--f-mono);
  font-size: var(--fs-body);
  color: var(--c-text);
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: var(--c-text);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--c-muted);
  opacity: 0.6;
}

.form-field textarea {
  resize: vertical;
  min-height: 100px;
}

.submit-btn {
  align-self: flex-start;
  font-family: var(--f-mono);
  font-size: var(--fs-sm);
  background: none;
  color: var(--c-text);
  border: 1px solid var(--c-text);
  padding: 0.35rem 1rem;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 150ms ease, color 150ms ease;
}

.submit-btn:hover {
  background: var(--c-text);
  color: var(--c-bg);
}

#contact-form .btn-sending            { display: none; }
#contact-form.submitting .btn-default { display: none; }
#contact-form.submitting .btn-sending { display: inline; }
#contact-form.submitting {
  opacity: 0.6;
  pointer-events: none;
}

.form-success {
  margin-top: 0.75rem;
  font-size: var(--fs-sm);
  color: var(--c-muted);
}


/* ============================================================
   FOOTER
   ============================================================ */
footer {
  font-size: var(--fs-sm);
  color: var(--c-muted);
}

footer a {
  color: #0000EE;
}

footer a:hover {
  color: #0000EE;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
  :root { --pad-x: 1.25rem; }
  body  { padding-top: 2rem; }

  .submit-btn {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  html { scroll-behavior: auto; }
}
