/* =========================================================
   Shane Morton — Personal Site
   Theme: retro desktop-OS "windows" (inspired by classic
   Windows XP-era chrome — gradient title bars, beveled
   buttons, sky wallpaper) applied to a modern layout.
   ========================================================= */

:root{
  /* -- palette -- */
  --sky-top:    #1E6FD9;
  --sky-mid:    #5EA3EC;
  --sky-bottom: #CFE8FB;

  --chrome-1:   #4E8FEE;   /* titlebar gradient top */
  --chrome-2:   #0E3E8F;   /* titlebar gradient bottom */
  --chrome-line:#0B3573;   /* window border */

  --panel:      #F5F7FB;   /* window body background */
  --panel-alt:  #E9EEF7;   /* subtle inset panels */

  --ink:        #12203A;
  --ink-muted:  #4E5C74;
  --ink-soft:   #7182A0;

  --accent-green:      #3EA34E;
  --accent-green-dark: #2C7C39;
  --accent-gold:       #F2B705;

  --radius-win: 8px;
  --shadow-win: 0 14px 30px rgba(9,32,66,.22), 0 3px 8px rgba(9,32,66,.16);

  --content-w: 1080px;
  --font: Tahoma, "Segoe UI", Verdana, Arial, sans-serif;
}

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

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.6;
  background:
    radial-gradient(ellipse 60% 30% at 15% 8%,  rgba(255,255,255,.85) 0%, rgba(255,255,255,0) 60%),
    radial-gradient(ellipse 45% 22% at 82% 18%, rgba(255,255,255,.65) 0%, rgba(255,255,255,0) 60%),
    radial-gradient(ellipse 50% 24% at 60% 4%,  rgba(255,255,255,.5)  0%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 38%, var(--sky-bottom) 100%);
  background-attachment: fixed;
}

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

a{ color: inherit; }

h1, h2, h3{
  margin: 0 0 .5em;
  font-weight: 700;
  color: var(--ink);
}
h1{ font-size: 2.1rem; letter-spacing: .2px; }
h2{ font-size: 1.4rem; }
h3{ font-size: 1.05rem; }
p{ margin: 0 0 1em; color: var(--ink-muted); }
p:last-child{ margin-bottom: 0; }

ul{ margin: 0 0 1em; padding-left: 1.25em; color: var(--ink-muted); }
ul:last-child{ margin-bottom: 0; }
li + li{ margin-top: .35em; }

.container{
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

/* =========================================================
   Taskbar / top navigation (always visible)
   ========================================================= */

.taskbar{
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, var(--chrome-1) 0%, var(--chrome-2) 100%);
  border-bottom: 1px solid var(--chrome-line);
  box-shadow: 0 3px 10px rgba(8,26,58,.35);
}

.taskbar__inner{
  max-width: var(--content-w);
  margin: 0 auto;
  padding: .55rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.taskbar__brand{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .75rem;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--accent-green) 0%, var(--accent-green-dark) 100%);
  border: 1px solid #1F5A28;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 4px rgba(0,0,0,.2);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  text-shadow: 0 1px 1px rgba(0,0,0,.3);
  white-space: nowrap;
}
.taskbar__brand:hover{ filter: brightness(1.06); }

.taskbar__links{
  display: flex;
  align-items: center;
  gap: .4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.taskbar__links::-webkit-scrollbar{ display: none; }

.taskbar__link{
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  white-space: nowrap;
  padding: .45rem .65rem;
  border-radius: 4px;
  border: 1px solid rgba(8,26,58,.4);
  background: linear-gradient(180deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 60%);
  color: #EAF1FF;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}
.taskbar__link svg{ width: 14px; height: 14px; flex: 0 0 auto; }
.taskbar__link:hover{
  background: linear-gradient(180deg, rgba(255,255,255,.32) 0%, rgba(255,255,255,.05) 60%);
}
.taskbar__link[aria-current="page"]{
  background: linear-gradient(180deg, #FFE184 0%, var(--accent-gold) 100%);
  border-color: #B4880A;
  color: #3A2C00;
  text-shadow: none;
}

/* =========================================================
   Buttons (general beveled style)
   ========================================================= */

.btn{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.15rem;
  border-radius: 5px;
  border: 1px solid var(--chrome-line);
  background: linear-gradient(180deg, var(--chrome-1) 0%, var(--chrome-2) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -3px 6px rgba(0,0,0,.2);
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  text-shadow: 0 1px 1px rgba(0,0,0,.3);
  cursor: pointer;
}
.btn svg{ width: 16px; height: 16px; }
.btn:hover{ filter: brightness(1.08); }
.btn:active{ box-shadow: inset 0 2px 6px rgba(0,0,0,.35); }

.btn--accent{
  background: linear-gradient(180deg, var(--accent-green) 0%, var(--accent-green-dark) 100%);
  border-color: #1F5A28;
}

.btn--ghost{
  background: var(--panel-alt);
  color: var(--ink);
  border-color: #B9C4D6;
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 4px rgba(9,32,66,.08);
  text-shadow: none;
}

/* =========================================================
   Window component — the core reusable "app window"
   ========================================================= */

.win{
  background: var(--panel);
  border: 1px solid var(--chrome-line);
  border-radius: var(--radius-win);
  box-shadow: var(--shadow-win);
  overflow: hidden;
}

.win__titlebar{
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .9rem;
  background: linear-gradient(180deg, var(--chrome-1) 0%, var(--chrome-2) 100%);
  color: #fff;
  border: 0;
  width: 100%;
  text-align: left;
  font-family: var(--font);
  cursor: default;
}
button.win__titlebar{ cursor: pointer; }

.win__titlebar-icon{
  width: 14px; height: 14px; flex: 0 0 auto;
  background: rgba(255,255,255,.9);
  border-radius: 2px;
}

.win__title{
  flex: 1;
  font-weight: 700;
  font-size: .95rem;
  text-shadow: 0 1px 1px rgba(0,0,0,.35);
}

.win__controls{
  display: flex;
  gap: 4px;
  flex: 0 0 auto;
}
.win__control{
  width: 16px; height: 16px;
  border-radius: 3px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
  line-height: 1;
  color: #fff;
}

.win__body{
  padding: 1.5rem;
}

/* =========================================================
   Page hero (non-home pages)
   ========================================================= */

.page-hero{
  padding: 2.75rem 0 1.5rem;
  color: #fff;
}
.page-hero h1{
  color: #fff;
  text-shadow: 0 2px 6px rgba(6,20,46,.4);
}
.page-hero p{
  color: rgba(255,255,255,.9);
  max-width: 62ch;
}

main{ display: block; padding-bottom: 3.5rem; }

/* =========================================================
   Homepage — hero
   ========================================================= */

.hero{
  padding: 3rem 0 2rem;
  text-align: left;
  color: #fff;
}
.hero__eyebrow{
  display: inline-block;
  font-size: .85rem;
  font-weight: 700;
  color: #EAF1FF;
  background: rgba(8,26,58,.3);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 4px;
  padding: .25rem .6rem;
  margin-bottom: .9rem;
}
.hero h1{
  font-size: 2.5rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(6,20,46,.45);
  margin-bottom: .3rem;
}
.hero p{
  font-size: 1.05rem;
  color: rgba(255,255,255,.92);
  max-width: 60ch;
}

/* =========================================================
   About section
   ========================================================= */

#about{ padding-bottom: 1rem; }

.about-window .win__body{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
}
.about__photo{
  width: 100%;
  border-radius: 5px;
  border: 4px solid #fff;
  box-shadow: 0 6px 16px rgba(9,32,66,.25);
}
.about__content :is(h2,h3){ color: var(--ink); }

@media (max-width: 700px){
  .about-window .win__body{
    grid-template-columns: 1fr;
  }
  .about__photo{ max-width: 220px; margin: 0 auto; }
}

/* =========================================================
   Trifold — featured work grid
   ========================================================= */

.trifold{ padding: 2.5rem 0 3rem; }
.trifold > h2{
  color: #fff;
  text-shadow: 0 2px 6px rgba(6,20,46,.4);
}
.trifold__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 800px){
  .trifold__grid{ grid-template-columns: 1fr; }
}

.trifold__card{ text-decoration: none; display: block; }
.trifold__card .win{ transition: transform .15s ease, box-shadow .15s ease; }
.trifold__card:hover .win{
  transform: translateY(-3px);
  box-shadow: 0 20px 36px rgba(9,32,66,.3), 0 4px 10px rgba(9,32,66,.2);
}

.trifold__media{
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--panel-alt);
  display: flex; align-items: center; justify-content: center;
}
.trifold__media img{ width: 100%; height: 100%; object-fit: cover; }
.trifold__media--placeholder{
  color: var(--ink-soft);
}
.trifold__media--placeholder svg{ width: 48px; height: 48px; }

.trifold__body{ padding: 1rem 1.1rem 1.2rem; }
.trifold__kicker{
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent-green-dark);
  margin-bottom: .3rem;
}
.trifold__title{ font-weight: 700; color: var(--ink); margin-bottom: .3rem; }
.trifold__desc{ font-size: .9rem; margin: 0; color: var(--ink-muted); }

/* =========================================================
   Projects page
   ========================================================= */

.projects-list{
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 1rem;
}

.project__meta{
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.1rem;
}
.project__pill{
  font-size: .78rem;
  font-weight: 700;
  padding: .3rem .6rem;
  border-radius: 3px;
  background: var(--panel-alt);
  border: 1px solid #C4D0E2;
  color: var(--ink-muted);
}
.project__pill--status{
  background: #E4F5E7;
  border-color: #A9DAB2;
  color: var(--accent-green-dark);
}

.project__layout{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: start;
}
.project__layout--reverse .project__media{ order: 2; }
@media (max-width: 780px){
  .project__layout, .project__layout--reverse .project__media{ order: initial; }
  .project__layout{ grid-template-columns: 1fr; }
}

.project__media img{
  border-radius: 5px;
  border: 1px solid #C4D0E2;
  box-shadow: 0 6px 14px rgba(9,32,66,.15);
  margin-bottom: .75rem;
}
.project__media img:last-child{ margin-bottom: 0; }

.project__text h3{ margin-top: 1.1rem; }
.project__text h3:first-child{ margin-top: 0; }

.portfolio-cta{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

/* =========================================================
   Writing page — accordion
   ========================================================= */

.accordion{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-header{
  justify-content: flex-start;
}
.accordion-icon{
  position: relative;
  margin-left: auto;
  width: 16px; height: 16px;
  flex: 0 0 auto;
  transition: transform .2s ease;
}
.accordion-icon::before,
.accordion-icon::after{
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 1px;
}
.accordion-icon::before{ left: 50%; top: 1px; bottom: 1px; width: 2px; transform: translateX(-50%); }
.accordion-icon::after{ top: 50%; left: 1px; right: 1px; height: 2px; transform: translateY(-50%); }
.accordion-header.is-open .accordion-icon{ transform: rotate(45deg); }

.accordion-panel{
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.accordion-panel__inner{
  padding: 1.5rem;
}
.accordion-meta{
  font-size: .85rem;
  font-weight: 700;
  color: var(--accent-green-dark);
  margin-bottom: .75rem;
}

@media (prefers-reduced-motion: reduce){
  .accordion-panel{ transition: none; }
  html{ scroll-behavior: auto; }
}

/* =========================================================
   Video page
   ========================================================= */

.quicklinks{
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.25rem;
}

.video-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px){
  .video-grid{ grid-template-columns: 1fr; }
}

.video-embed{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-embed iframe{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-caption{ padding: .9rem 1.1rem 1.1rem; }
.video-caption p{ margin: 0; font-size: .88rem; }

/* =========================================================
   Footer
   ========================================================= */

footer.site-footer{
  padding: 1.5rem 0 2.5rem;
  text-align: center;
}
footer.site-footer p{
  color: rgba(255,255,255,.85);
  font-size: .85rem;
  text-shadow: 0 1px 2px rgba(6,20,46,.4);
}

/* customization notice block used inside placeholder content */
.note{
  display: block;
  margin-top: .5rem;
  padding: .6rem .8rem;
  background: #FFF7DD;
  border: 1px dashed #D9B94A;
  border-radius: 4px;
  color: #6B5A16;
  font-size: .85rem;
}
