/* The Adams Agency, site styles */
:root {
  --paper: #f6f0e7;
  --card: #fffdf9;
  --ink: #1b1517;
  --muted: #6d6366;
  --line: #e4d9cb;
  --red: #9e1721;
  --red-deep: #6f0e16;
  --gold: #e0b356;
  --c0: #9e1721; --c1: #1f4e5f; --c2: #b8862b; --c3: #4a2c5e;
  --radius: 6px;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --cond: "Oswald", "Arial Narrow", Impact, sans-serif;
  --sans: "Lato", "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--sans); }
img { display: block; max-width: 100%; }
a { color: var(--red); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }

/* ---------- masthead with marquee bulbs */
.masthead {
  position: relative; text-align: center; color: #fff;
  background: radial-gradient(120% 140% at 50% 0%, #b51d29 0%, var(--red) 45%, var(--red-deep) 100%);
  padding: 56px 16px 64px;
}
.masthead::after {           /* row of bulbs */
  content: ""; position: absolute; left: 0; right: 0; bottom: 14px; height: 10px;
  background: radial-gradient(circle, #ffe9a8 0 3px, rgba(255, 220, 140, .35) 4px, transparent 5.5px) 0 0 / 26px 10px repeat-x;
  animation: chase 2.4s steps(2) infinite;
}
@keyframes chase { 50% { background-position: 13px 0; } }
@media (prefers-reduced-motion: reduce) { .masthead::after { animation: none; } }
.brand { color: inherit; text-decoration: none; display: inline-block; }
.brand__the { display: block; font: 500 .95rem/1 var(--cond); letter-spacing: .5em; text-transform: uppercase; color: var(--gold); padding-left: .5em; }
.brand__name { margin: .1em 0 0; font: 400 clamp(3rem, 9vw, 6.5rem)/.95 var(--serif); letter-spacing: -.01em; }
.masthead__tag { margin: 18px auto 0; max-width: 34rem; font-style: italic; color: #f7dcdc; font-size: 1.05rem; }

.masthead--small { padding: 18px 16px 30px; text-align: left; }
.masthead--small .brand { max-width: 1160px; display: flex; align-items: baseline; gap: 12px; margin: 0 auto; width: 100%; }
.masthead--small .brand__the { display: inline; font-size: .8rem; letter-spacing: .35em; }
.masthead--small .brand__name { font-size: 2rem; display: inline; margin: 0; }
.masthead--small::after { bottom: 8px; transform: scale(.8); transform-origin: left; width: 125%; }
.masthead--small { overflow: hidden; }

/* ---------- headshot grid */
.home { max-width: 1440px; margin: 0 auto; padding: 28px 16px 8px; }
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 42vw), 1fr));
}
.finder { position: relative; max-width: 460px; margin: 0 auto 22px; color: var(--muted); }
.finder svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.finder input {
  width: 100%; font: 400 1.05rem/1.2 var(--sans); color: var(--ink);
  padding: 14px 18px 14px 46px; border: 2px solid var(--line); border-radius: 999px; background: var(--card);
  box-shadow: 0 8px 20px -16px rgba(60, 10, 10, .5); -webkit-appearance: none; appearance: none;
}
.finder input::placeholder { color: #9a8f91; }
.finder input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(224, 179, 86, .25); }
.finder__none { text-align: center; color: var(--muted); font-style: italic; margin: 10px 0 30px; }
.tile[hidden] { display: none; }
.tile a {
  position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: var(--radius); background: var(--ink); color: #fff; text-decoration: none;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 10px 24px -14px rgba(40, 10, 10, .45);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1.2), box-shadow .3s;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .4s; }
.tile a::after {             /* legibility gradient behind the name */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(20, 6, 8, .25) 66%, rgba(20, 6, 8, .82) 100%);
  pointer-events: none;
}
.tile__name {
  position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px;
  font-family: var(--cond); text-transform: uppercase; line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.tile__first { display: block; font-weight: 600; font-size: clamp(1.25rem, 2.3vw, 1.85rem); letter-spacing: .02em; }
.tile__last { display: block; margin-top: 4px; font-weight: 500; font-size: clamp(.78rem, 1.2vw, .95rem); letter-spacing: .28em; color: var(--gold); }
.tile__cta {
  position: absolute; z-index: 1; top: 12px; right: 12px;
  font: 600 .72rem/1 var(--cond); letter-spacing: .14em; text-transform: uppercase;
  background: var(--red); color: #fff; padding: 7px 10px; border-radius: 999px;
  opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .3s;
}
.tile__initials {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 400 clamp(3rem, 8vw, 5.5rem)/1 var(--serif); color: rgba(255, 255, 255, .9);
}
.tile--c0 a { background: var(--c0); } .tile--c1 a { background: var(--c1); }
.tile--c2 a { background: var(--c2); } .tile--c3 a { background: var(--c3); }
.tile:nth-child(odd) a:hover { transform: rotate(-1.2deg) scale(1.02); }
.tile:nth-child(even) a:hover { transform: rotate(1.2deg) scale(1.02); }
.tile a:hover, .tile a:focus-visible { box-shadow: 0 0 0 3px var(--gold), 0 22px 36px -18px rgba(60, 10, 10, .6); z-index: 2; }
.tile a:hover img, .tile a:focus-visible img { transform: scale(1.07); }
.tile a:hover .tile__cta, .tile a:focus-visible .tile__cta { opacity: 1; transform: none; }
.tile a:focus-visible { outline: none; }
@media (hover: none) { .tile__cta { opacity: .95; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tile a, .tile img { transition: none; } .tile a:hover { transform: none; } }

.classes {
  max-width: 640px; margin: 56px auto 40px; padding: 28px 24px; text-align: center;
  background: var(--card); border-top: 4px solid var(--red); border-radius: var(--radius);
}
.classes h2 { margin: 0 0 8px; font: 400 2rem/1.1 var(--serif); }
.classes p { margin: 0 0 18px; color: var(--muted); }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 1rem/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  padding: 15px 22px; border-radius: var(--radius); border: 2px solid var(--red);
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn--ghost { color: var(--red); background: transparent; }
.btn--ghost:hover { background: var(--red); color: #fff; }
.btn--download {
  width: 100%; margin-top: 18px; padding: 19px 14px; font-size: 1.05rem; letter-spacing: .06em; white-space: nowrap;
  background: var(--red); color: #fff; box-shadow: 0 10px 22px -12px rgba(110, 14, 22, .8);
}
.btn--download:hover { background: var(--red-deep); border-color: var(--red-deep); transform: translateY(-2px); }
.btn--download:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn--me {
  width: 100%; margin-top: 22px; padding: 12px 14px; font-size: .86rem; letter-spacing: .05em; text-transform: none;
  color: var(--red); background: transparent; border: 1.5px dashed var(--line); white-space: normal; text-align: center; line-height: 1.3;
}
.btn--me:hover { border-color: var(--red); border-style: solid; background: var(--card); }
.btn--me:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-note { margin: 8px 0 0; text-align: center; font-size: .82rem; color: var(--muted); }

/* ---------- resume page */
.resume { max-width: 1160px; margin: 0 auto; padding: 22px 16px 56px; }
.back { display: inline-block; margin-bottom: 18px; font: 500 .85rem/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.back:hover { text-decoration: underline; }
.resume__layout { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 48px; align-items: start; }
.resume__side { position: sticky; top: 20px; }
.resume__photo {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius);
  background: var(--ink); box-shadow: 0 24px 40px -26px rgba(40, 10, 10, .7);
}
.resume__photo--none { aspect-ratio: 5 / 3; display: grid; place-items: center; background: var(--c1); color: #fff; font: 400 6rem/1 var(--serif); }
.resume__name { margin: 0 0 14px; font: 400 clamp(2.6rem, 6vw, 4.4rem)/.98 var(--serif); }
.stats { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0 0 18px; padding: 14px 0; border-top: 2px solid var(--red); border-bottom: 1px solid var(--line); }
.stats dt { font: 500 .7rem/1 var(--cond); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 4px 0 0; font-size: 1.05rem; }
.resume__contact { margin: 0 0 18px; font-size: .95rem; color: var(--muted); }
.bio p { margin: 0 0 1em; font-size: 1.05rem; }

.credits { margin-top: 30px; }
.credits h2 {
  display: flex; align-items: center; gap: 14px; margin: 0 0 6px;
  font: 600 .95rem/1 var(--cond); letter-spacing: .22em; text-transform: uppercase; color: var(--red);
}
.credits h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.credits table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.credits th { text-align: left; font: 500 .68rem/1 var(--cond); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 8px 14px 8px 0; }
.credits td { padding: 9px 14px 9px 0; border-top: 1px solid var(--line); vertical-align: top; }
.credits td:first-child { width: 34%; }
.credits td em { font-style: italic; }
.skills { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.skills li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .93rem; }

.preview-banner { position: sticky; top: 0; z-index: 10; background: var(--gold); color: var(--ink); text-align: center; padding: 8px 16px; font: 600 .85rem/1.2 var(--cond); letter-spacing: .1em; text-transform: uppercase; }

/* ---------- footer */
.site-footer { background: var(--ink); color: #b9adaf; text-align: center; padding: 28px 16px 34px; font: 500 .74rem/1.6 var(--cond); letter-spacing: .2em; text-transform: uppercase; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer__contact { margin-bottom: 6px !important; }
.site-footer--home { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; text-align: center; }
.site-footer__admin { justify-self: start; color: #4a4043 !important; font-size: .68rem; letter-spacing: .2em; text-decoration: none; opacity: .55; padding: 6px 2px; }
.site-footer__admin:hover, .site-footer__admin:focus-visible { opacity: 1; color: #b9adaf !important; }
.btn--kid {
  justify-self: end; background: var(--gold); border-color: var(--gold); color: var(--ink) !important;
  font-size: .95rem; letter-spacing: .06em; padding: 14px 18px; text-transform: none;
  box-shadow: 0 0 0 0 rgba(224, 179, 86, .5); animation: glow 3s ease-in-out infinite;
}
.btn--kid:hover { background: #f0c66c; border-color: #f0c66c; transform: translateY(-2px); }
.btn--kid:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@keyframes glow { 50% { box-shadow: 0 0 0 8px rgba(224, 179, 86, 0); } 0%, 100% { box-shadow: 0 0 0 0 rgba(224, 179, 86, .45); } }
@media (prefers-reduced-motion: reduce) { .btn--kid { animation: none; } }
@media (max-width: 760px) {
  .site-footer--home { grid-template-columns: 1fr; }
  .site-footer--home .btn--kid { justify-self: center; order: -1; }
  .site-footer__admin { justify-self: center; order: 3; }
}

/* ---------- small screens */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .masthead { padding: 40px 16px 50px; }
  .grid { gap: 8px; }
  .tile__name { left: 10px; right: 10px; bottom: 9px; }
  .tile__cta { display: none; }
  .resume__layout { grid-template-columns: 1fr; gap: 26px; }
  .resume__side { position: static; max-width: 420px; width: 100%; margin: 0 auto; }
  .credits thead { display: none; }
  .credits table, .credits tbody, .credits tr { display: block; }
  .credits tr { padding: 10px 0; border-top: 1px solid var(--line); }
  .credits td { display: inline; padding: 0; border: 0; width: auto !important; }
  .credits td:first-child { display: block; font-weight: 700; margin-bottom: 2px; }
  .credits td:nth-child(n+3):not(:empty)::before { content: "\00a0\00b7\00a0"; color: var(--muted); }
  .credits td:empty { display: none; }
}

/* ---------- printing the web page directly */
@media print {
  @page { margin: .5in; }
  body { background: #fff; font-size: 11pt; }
  .masthead, .back, .btn, .btn-note, .site-footer, .preview-banner, .btn--me { display: none !important; }
  .resume__layout { grid-template-columns: 2.4in 1fr; gap: .35in; }
  .resume__side { position: static; }
  .resume__photo { box-shadow: none; }
  .credits { break-inside: avoid-page; }
}
