/* ================================================================
   FONT CONFIGURATION
   ──────────────────────────────────────────────────────────────
   Swiss 722 Std Bold Condensed is a commercial typeface (Bitstream /
   Monotype). It is not on Google Fonts and must be licensed.

   To configure it:
     1. License the font at: monotype.com, myfonts.com, or adobe.com/fonts
        (search "Swiss 721 Bold Condensed" or "Swiss 722 Std Bold Condensed")
     2. Place the font files in the /fonts directory:
          fonts/Swiss721BT-BoldCondensed.woff2
          fonts/Swiss721BT-BoldCondensed.woff
     3. Uncomment the @font-face block immediately below.

   Until the font files are in place, headings fall back to:
   'Arial Narrow' → 'Franklin Gothic Condensed' → Impact → sans-serif.
   Arial Narrow is a reasonable structural stand-in while you configure
   the real font.
   ================================================================ */

/*
@font-face {
  font-family: 'Swiss 722 Std BdCn BT';
  src: url('fonts/Swiss721BT-BoldCondensed.woff2') format('woff2'),
       url('fonts/Swiss721BT-BoldCondensed.woff')  format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}
*/


/* ================================================================
   DESIGN TOKENS
   ──────────────────────────────────────────────────────────────
   Edit these variables to retheme the site from one place.
   ================================================================ */

:root {
  /* Layout */
  --col-width:    680px;
  --section-gap:  4.5rem;
  --page-h-pad:   1.5rem;

  /* Colors */
  --color-bg:         #fafaf8;
  --color-text:       #1a1a1a;
  --color-secondary:  #666;
  --color-border:     #e2e2de;
  --color-muted-text: #444;

  /* Typography — Display (headings) */
  --font-display:
    'Swiss 722 Std BdCn BT',
    'Swiss 721 Condensed BT',
    'Arial Narrow',
    'Franklin Gothic Condensed',
    'Helvetica Neue',
    Impact,
    sans-serif;

  /* Typography — Body */
  --font-body:
    -apple-system, BlinkMacSystemFont, 'Segoe UI',
    'Helvetica Neue', Arial, sans-serif;
}


/* ================================================================
   RESET
   ================================================================ */

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


/* ================================================================
   BASE
   ================================================================ */

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background:  var(--color-bg);
  color:       var(--color-text);
  font-family: var(--font-body);
  font-size:   1rem;
  line-height: 1.75;
  -webkit-font-smoothing:  antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p + p {
  margin-top: 0.9rem;
}

a {
  color:                    var(--color-text);
  text-decoration:          underline;
  text-underline-offset:    3px;
  text-decoration-thickness: 1px;
  text-decoration-color:    #aaa;
  transition:               text-decoration-color 0.15s ease;
}

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


/* ================================================================
   LAYOUT — centered narrow column
   ================================================================ */

.container {
  max-width: var(--col-width);
  margin:    0 auto;
  padding:   0 var(--page-h-pad);
}


/* ================================================================
   NAVIGATION
   ================================================================ */

.site-nav {
  display:         flex;
  justify-content: space-between;
  align-items:     baseline;
  padding-top:     3rem;
  padding-bottom:  2.5rem;
  margin-bottom:   var(--section-gap);
  border-bottom:   1px solid var(--color-border);
}

.site-name {
  font-family:    var(--font-display);
  font-weight:    bold;
  font-size:      1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap:     2rem;
}

.nav-links a {
  font-size:       0.82rem;
  text-transform:  uppercase;
  letter-spacing:  0.07em;
  color:           var(--color-secondary);
  text-decoration: none;
  transition:      color 0.15s ease;
}

.nav-links a:hover {
  color: var(--color-text);
}


/* ================================================================
   ABOUT SECTION
   ================================================================ */

.section-about {
  display:     flex;
  gap:         2rem;
  align-items: flex-start;
}

/* ── Photo ──────────────────────────────────────────────────────
   The gray box below is a placeholder for your headshot.
   When you have a photo, replace the .photo-placeholder <div>
   in index.html with:

       <img src="images/headshot.jpg"
            alt="Austin Lee"
            class="headshot">

   The .headshot class is already defined here — no CSS changes needed.
   ─────────────────────────────────────────────────────────────── */

.photo-placeholder {
  flex-shrink:   0;
  width:         120px;
  height:        120px;
  background:    #e4e4e1;
  border-radius: 3px;
}

.headshot {
  flex-shrink:    0;
  width:          120px;
  height:         120px;
  object-fit:     cover;
  object-position: 85% 70%; /* EDIT: adjust these % values to reframe the crop — higher % shifts right/down */
  border-radius:  3px;
  display:        block;
}

.about-text {
  flex:      1;
  min-width: 0;
}

.display-name {
  font-family:    var(--font-display);
  font-weight:    bold;
  font-size:      2.6rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height:    1;
  margin-bottom:  0.4rem;
}

.tagline {
  font-size:      0.82rem;
  color:          var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom:  0.9rem;
}


/* ================================================================
   SECTIONS — general
   ================================================================ */

.section {
  margin-top: var(--section-gap);
}

.section h2 {
  font-family:    var(--font-display);
  font-weight:    bold;
  font-size:      1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 0.5rem;
  margin-bottom:  1.1rem;
  border-bottom:  1px solid var(--color-border);
}


/* ================================================================
   PROJECTS & HACKATHONS
   ================================================================ */

.project-list {
  display:        flex;
  flex-direction: column;
  gap:            2rem;
}

.project-meta-row {
  display:         flex;
  justify-content: space-between;
  align-items:     baseline;
  flex-wrap:       wrap;
  gap:             0.5rem;
  margin-bottom:   0.3rem;
}

.project-title {
  font-size:   0.95rem;
  font-weight: 600;
}

.project-tags {
  font-size:      0.76rem;
  color:          var(--color-secondary);
  letter-spacing: 0.04em;
}

.project p {
  font-size:   0.9rem;
  color:       var(--color-muted-text);
  line-height: 1.65;
}

.project-links {
  margin-top: 0.5rem;
  font-size:  0.82rem;
  color:      var(--color-secondary);
}


/* ================================================================
   CONTACT
   ================================================================ */

.contact-list {
  list-style:     none;
  margin-top:     1rem;
  display:        flex;
  flex-direction: column;
  gap:            0.45rem;
}

.contact-list a {
  font-size: 0.9rem;
}


/* ================================================================
   WRITING LIST — structure is ready for future use
   ================================================================ */

.writing-list {
  list-style:     none;
  display:        flex;
  flex-direction: column;
  gap:            0.85rem;
}

.writing-list li {
  display:         flex;
  justify-content: space-between;
  align-items:     baseline;
  gap:             1rem;
}

.post-date {
  font-size:   0.8rem;
  color:       var(--color-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}


/* ================================================================
   FOOTER
   ================================================================ */

.site-footer {
  margin-top:  var(--section-gap);
  border-top:  1px solid var(--color-border);
  padding:     2rem 0 3.5rem;
}

.footer-inner {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
}

.footer-links {
  display: flex;
  gap:     1.5rem;
}

.footer-links a {
  font-size:       0.8rem;
  color:           var(--color-secondary);
  text-decoration: none;
  letter-spacing:  0.04em;
  transition:      color 0.15s ease;
}

.footer-links a:hover {
  color: var(--color-text);
}

.footer-copy {
  font-size: 0.78rem;
  color:     var(--color-secondary);
}


/* ================================================================
   RESPONSIVE — mobile (≤ 560px)
   ================================================================ */

@media (max-width: 560px) {
  :root {
    --section-gap: 3rem;
  }

  .site-nav {
    flex-direction: column;
    gap:            1rem;
    padding-top:    2rem;
    padding-bottom: 1.75rem;
    margin-bottom:  2.5rem;
  }

  .section-about {
    flex-direction: column;
  }

  .display-name {
    font-size: 2.1rem;
  }

  .project-meta-row {
    flex-direction: column;
    align-items:    flex-start;
    gap:            0.2rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items:    flex-start;
    gap:            1rem;
  }
}
