/* 
  Greg LaFrance - Static Site Styles
  - Inter font (300, 400, 600, 700)
  - Sticky header, responsive nav with hamburger
  - Material Design color variables for Purple & Grey (incl. Purple A*). 
    Note: Material Grey does not have official A* accent shades.
*/

:root{
  /* Material Purple */
  --md-purple-50:  #F3E5F5;
  --md-purple-100: #E1BEE7;
  --md-purple-200: #CE93D8;
  --md-purple-300: #BA68C8;
  --md-purple-400: #AB47BC;
  --md-purple-500: #9C27B0;
  --md-purple-600: #8E24AA;
  --md-purple-700: #7B1FA2;
  --md-purple-800: #6A1B9A;
  --md-purple-900: #4A148C;
  --md-purple-A100: #EA80FC;
  --md-purple-A200: #E040FB;
  --md-purple-A400: #D500F9;
  --md-purple-A700: #AA00FF;

  /* Material Grey */
  --md-grey-50:  #FAFAFA;
  --md-grey-100: #F5F5F5;
  --md-grey-200: #EEEEEE;
  --md-grey-300: #E0E0E0;
  --md-grey-400: #BDBDBD;
  --md-grey-500: #9E9E9E;
  --md-grey-600: #757575;
  --md-grey-700: #616161;
  --md-grey-800: #424242;
  --md-grey-900: #212121;

  /* Theme tokens */
  --bg: #ffffff;
  --text: #172026;
  --muted: #5b636a;
  --border: var(--md-grey-300);
  --brand: var(--md-purple-600);
  --brand-strong: var(--md-purple-700);
  --brand-weak: var(--md-purple-100);

  --radius: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 6px 24px rgba(0,0,0,.08);
  --maxw: 1100px;
}

/* Global reset-ish */
*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  font-size: 2rem;   /* ~40px on large screens */
  margin: 0.4em 0;
}
h2 {
  font-size: 1.6rem;     /* ~32px on large screens */
  margin: 0.4em 0;
}
main p, .lead {
  font-size: 1.125rem; /* ~18px for main descriptive text */
  line-height: 1.6;
}
a{ color: var(--brand); text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{ 
  position: fixed; left: 20px; top: 20px; width: auto; height:auto; 
  background: var(--md-purple-A100); padding: 8px 12px; border-radius: 8px; box-shadow: var(--shadow-sm);
}

/* Header */
.site-header{
  position: sticky; top: 0; z-index: 1000;
  backdrop-filter: saturate(140%) blur(6px);
  background: color-mix(in oklab, #fff 72%, var(--md-purple-50));
  border-bottom: 1px solid var(--border);
}
.site-header .container{
  padding-left: 32px;
  padding-right: 32px;
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 10px 0;
  gap: 16px;
}
.brand{
  display:flex; align-items:center; gap:12px;
}
.brand img{
  width: 132px;   /* was 44px */
  height: 132px;  /* was 44px */
  border-radius: 50%;
  display:block;
  box-shadow: var(--shadow-sm);
  border: 3px solid var(--md-purple-100); /* slightly thicker border to match size */
  background: var(--md-purple-50);
}
.brand .name{
  font-weight: 600;
  letter-spacing: .2px;
  padding-bottom: 10px;
}
.brand .tagline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;       /* row gap, column gap */
  font-size: 14px;
  color: var(--muted);
  margin-top: -4px;
  justify-content: center;  /* keeps them centered */
  max-width: 700px;         /* optional: prevents tagline from stretching too wide */
}

.brand .tagline span {
  flex: 1 1 calc(33.333% - 20px); /* 3 columns per row by default */
  text-align: center;             /* align text in each column */
}

/* Nav */
.nav{
  display:flex; align-items:center; gap: 10px;
  flex-wrap: nowrap;
}
.nav a{
  display:inline-flex; align-items:center; gap:8px;
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap; 
}
.nav a:hover{
  background: var(--md-purple-50);
  text-decoration: none;
}
.nav .btn-outline{
  border-color: var(--border);
}
.mail-icon{
  display:inline-flex; align-items:center; justify-content:center;
  width: 50px; height: 50px;             /* ⬅️ increased from 40px */
  border-radius: 999px;
  border: 1px solid var(--border);
}
.mail-icon svg {
  width: 24px; height: 24px;             /* ⬅️ scale icon within circle */
}
.mail-icon:hover{
  background: var(--md-purple-50);
}
/* Hamburger */
.nav-toggle{
  display:none;
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
}
.nav-toggle:hover{ background: var(--md-grey-50); }
.nav-toggle svg { width: 22px; height: 22px; }

/* Main */
main{
  padding: 28px 0 48px;
}
.lead{
  font-size: 18px; color: var(--muted);
}

/* Card-ish section */
.section{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 24px;
}

.letter{ white-space: pre-wrap; }

.no-bullets-list {
  list-style-type: none;
}

.no-bullets-list li {
  line-height: 30px;
}

.accolades {
  margin-left: 40px;
  margin-bottom: 30px;
}

.accolades h4, .accolades p {
  margin: 0;
  padding: 0;
  line-height: 35px;
}

article table {
  margin-left: 40px;
}

article table td {
  width: 150px;
  line-height: 30px;
}

/* Footer */
footer{
  border-top: 1px solid var(--border);
  background: var(--md-grey-50);
  font-size: 14px;
  color: var(--muted);
}
.footer-inner{
  padding: 18px 0;
  text-align: center;   /* center the footer text */
}

@media (max-width: 1000px){
  .brand .tagline span {
    flex: 1 1 calc(50% - 20px);
  }
}
@media (max-width: 900px){
  .brand img{
    width: 100px;
    height: 100px;
  }
  .brand .tagline {
    font-size: 12px;
  }
}
@media (max-width: 780px){
  .nav-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }
  .nav{
    position: fixed;
    right: 16px;
    top: 66px;
    flex-direction: column;
    align-items: flex-start;   /* was stretch */
    gap: 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    width: auto;               /* was min(92vw, 320px) */
    max-width: 92vw;           /* optional safety */
    padding: 10px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
  }
  .nav.open{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}
@media (max-width: 600px){
  h1 { font-size: 1.75rem; }   /* ~28px */
  h2 { font-size: 1.5rem; }    /* ~24px */
  main p, .lead { font-size: 0.9375rem; } /* ~15px */

  .site-header .container{
    padding-left: 20px;   /* slightly reduced for mobile */
    padding-right: 20px;
  }
  .brand img{
    width: 72px;
    height: 72px;
  }
}
@media (max-width: 500px){
  .brand .tagline{ 
    font-size: 10px;
  }
}
@media (max-width: 400px){
  h1 { font-size: 1.5rem; }    /* ~24px */
  h2 { font-size: 1.25rem; }   /* ~20px */
  main p, .lead { font-size: 0.875rem; } /* ~14px */

  .brand img{
    width: 56px;
    height: 56px;
  }
}
@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; animation: none !important; }
}
