/*
Theme Name: Goodman Personal Portfolio
Theme URI: https://davidgoodman.org/
Author: David Goodman
Description: Responsive one-page professional portfolio.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: goodman-portfolio
*/

:root {
  --bg: #071120;
  --panel: #0c192c;
  --panel-2: #12233b;
  --line: #263d59;
  --text: #e5edf8;
  --muted: #9aadc7;
  --cyan: #a9e4ff;
  --accent: #64cfff;
  --max: 1120px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --display: Rockwell, "Roboto Slab", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 50% 0%, #14243c 0, var(--bg) 55%);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.75;
}
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: #d1f1ff; }
img { max-width: 100%; height: auto; }

.site-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 16px auto 64px;
}
.panel {
  margin: 0 0 22px;
  background: rgba(10, 23, 41, .94);
  border: 1px solid var(--line);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .12);
}
.panel-heading {
  margin: 0;
  padding: 12px 20px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.panel-body { padding: 24px; }

/* Profile header */
.profile-head {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: start;
  gap: 26px;
}
.profile-photo {
  display: block;
  width: 160px;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  border: 1px solid #35516e;
}
.profile-title {
  margin: 0 0 10px;
  color: var(--cyan);
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.12;
  letter-spacing: -.025em;
}
.profile-meta {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: baseline;
  gap: 5px 14px;
  margin: 0;
}
.profile-meta dt {
  padding-top: 3px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.profile-meta dd { min-width: 0; margin: 0; }
.profile-professional {
  grid-column: 2;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  color: var(--text);
  font-size: inherit;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
}

/* Education is a standard Profile detail row, matching Focus and the other labels. */
.education-list { display: grid; gap: 10px; }
.education-item {
  padding: 0 0 9px;
  border-bottom: 1px dotted var(--line);
}
.education-item:last-child { padding-bottom: 0; border: 0; }
.education-degree { display: block; }
.honors { display: block; color: var(--accent); font-size: 13px; line-height: 1.5; }

/* Profile details */
.profile-details { margin-top: 22px; border-top: 1px dotted var(--line); }
.detail-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px dotted var(--line);
}
.detail-row:last-child { padding-bottom: 0; border-bottom: 0; }
.detail-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.detail-content { min-width: 0; }
.detail-content p { margin: 0; }

/* Personal Statement and Research Interests & Goals */
.content-copy { max-width: 88ch; margin-left: auto; margin-right: auto; }
.content-copy p { margin: 0 0 16px; }
.content-copy p:last-child { margin-bottom: 0; }
.research-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.research-list li {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  width: auto;
  max-width: 100%;
  padding: 4px 10px;
  border: 1px solid #355775;
  border-radius: 999px;
  background: #102137;
  color: #bbd0e3;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

/* Experience */
.experience-list { display: grid; gap: 0; }
.experience-item { padding: 18px 0; border-bottom: 1px dotted var(--line); }
.experience-item:first-child { padding-top: 0; }
.experience-item:last-child { padding-bottom: 0; border: 0; }
.experience-org {
  margin: 0;
  color: var(--cyan);
  font-family: var(--display);
  font-size: 21px;
  line-height: 1.35;
}
.experience-role { margin: 4px 0 8px; color: var(--muted); font-size: 13px; }
.experience-item p { max-width: 88ch; margin: 0 auto; }
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 700px) {
  .site-shell { width: min(calc(100% - 24px), var(--max)); margin: 16px auto 36px; }
  .panel { margin-bottom: 14px; }
  .panel-body { padding: 17px; }
  .profile-head { grid-template-columns: 88px minmax(0, 1fr); gap: 15px; }
  .profile-photo { width: 88px; }
  .profile-title { font-size: clamp(27px, 7vw, 38px); overflow-wrap: anywhere; }
  .profile-meta { grid-template-columns: max-content minmax(0, 1fr); gap: 5px 9px; }
  .profile-meta dt { padding-top: 2px; }
  .profile-meta dd { margin-bottom: 4px; }
  .profile-professional { width: auto; max-width: 100%; white-space: normal; }
  .detail-row { grid-template-columns: 1fr; gap: 5px; padding: 12px 0; }
  .research-list { gap: 6px; }
  .experience-org { font-size: 19px; }
}

@media (max-width: 390px) {
  .profile-head { grid-template-columns: 1fr; }
  .profile-photo { width: 104px; }
  .profile-meta { grid-template-columns: 85px minmax(0, 1fr); gap: 5px 10px; }
  .profile-meta dt { padding-top: 2px; }
  .profile-meta dd { margin-bottom: 5px; }
  .research-list { gap: 6px; }
}
