:root {
  --color-bg: #FFFFFF;
  --color-text: #111111;
  --color-text-muted: #555555;
  --color-heading: #000000;
  --color-link: #1B4B91;
  --color-divider: #CCCCCC;
  --color-avatar-bg: #ADA97D;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 700px;
  --spacing-section: 56px;
  --spacing-block: 24px;
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: 17px;
  line-height: 1.6;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-heading);
  font-weight: 800;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 30px;
}

h3 {
  font-size: 22px;
  font-weight: 700;
  text-decoration: underline;
}

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

a:hover {
  opacity: 0.8;
}

p, ul, ol, dl {
  margin-bottom: 1em;
}

ul, ol {
  padding-left: 1.5em;
}

strong {
  font-weight: 700;
}

em {
  font-style: italic;
}

/* Header */
.site-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  margin-top: 48px;
  margin-bottom: var(--spacing-section);
}

.avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background-color: var(--color-avatar-bg);
  object-fit: cover;
  display: block;
}

@media (max-width: 379px) {
  .avatar {
    width: 80px;
    height: 80px;
  }
}

.header-text h1 {
  margin: 0;
}

.site-title {
  text-decoration: none;
}

.site-title h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-heading);
  text-decoration: none;
}

.tagline {
  color: var(--color-text-muted);
  font-size: 16px;
  margin-top: 4px;
  margin-bottom: 8px;
}

.meta {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
}

.divider-pipe {
  margin: 0 4px;
}

.divider {
  border-top: 1px solid var(--color-divider);
  margin: var(--spacing-section) 0;
  width: 100%;
}

.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.eyebrow + h1, .eyebrow + p {
  margin-top: 0;
}

/* Projects */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.project-item .project-title {
  font-weight: 700;
  text-decoration: underline;
  display: block;
  margin-bottom: 12px;
}

.project-desc {
  margin: 0;
}

/* Experience / Education */
.timeline-entry {
  display: flex;
  flex-direction: column;
  margin-bottom: 40px;
}

@media (min-width: 500px) {
  .timeline-entry {
    flex-direction: row;
    gap: 20px;
  }
}

.timeline-date {
  font-size: 15px;
  color: var(--color-text-muted);
  min-width: 100px;
  margin-bottom: 4px;
  flex-shrink: 0;
}

.timeline-content {
  flex-grow: 1;
}

.timeline-content h3 {
  margin-top: 0;
  margin-bottom: 4px;
  text-decoration: none;
}

.job-title {
  font-size: 17px;
  font-weight: 400;
  font-style: italic;
  margin: 0 0 12px 0;
}

.accordion-trigger {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  margin-top: 12px;
  margin-bottom: 12px;
}

.accordion-icon {
  font-size: 12px;
  margin-top: 6px;
  line-height: 1;
}

.accordion-content {
  display: none;
  margin-top: 12px;
}

.timeline-entry.is-open .accordion-content {
  display: block;
}

.timeline-entry.is-open .accordion-icon {
  transform: rotate(90deg);
}

.bold-line {
  font-weight: 700;
  margin: 0 0 4px 0;
}

.plain-line {
  margin: 0 0 4px 0;
}

/* Product Management Tools */
.pm-intro {
  margin-top: 0;
}

.pm-toc {
  border: 1px solid var(--color-divider);
  border-radius: 6px;
  padding: 16px;
  margin: var(--spacing-block) 0;
}

.pm-toc-title {
  font-size: 20px;
  margin: 0 0 8px 0;
}

.pm-toc-list {
  font-size: 15px;
  margin: 0;
}

.pm-section-divider {
  margin: var(--spacing-section) 0;
}

.pm-section h2 {
  margin-top: 0;
}

.pm-section-subtitle {
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-block);
}

.pm-prompt-card {
  border: 1px solid var(--color-divider);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 32px;
  width: 100%;
}

.pm-prompt-card h3 {
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  margin: 0 0 8px 0;
}

.pm-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.pm-tag {
  display: inline-flex;
  align-items: center;
  background: var(--tag-background);
  color: var(--tag-color);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  line-height: 1.2;
}

.pm-description {
  color: var(--color-text-muted);
  font-size: 16px;
  margin-bottom: 16px;
}

.pm-card-line {
  margin-bottom: 8px;
}

.pm-example-trigger,
.pm-steps-trigger {
  color: var(--color-link);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.pm-example-trigger {
  display: block;
  margin: 16px 0;
}

.pm-steps {
  margin-bottom: 20px;
}

.pm-steps-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pm-steps-icon {
  font-size: 12px;
  line-height: 1;
}

.pm-steps-content {
  font-size: 15px;
  margin: 12px 0 0 20px;
}

.pm-steps-content ol {
  margin-bottom: 0;
}

.pm-prompt-block {
  position: relative;
}

.pm-prompt-block pre {
  background: #F6F6F6;
  border: 1px solid var(--color-divider);
  border-radius: 6px;
  padding: 40px 16px 16px;
  margin: 0;
  overflow-x: auto;
  white-space: pre;
}

.pm-prompt-block code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
}

.pm-copy-button {
  position: absolute;
  top: 8px;
  right: 8px;
  color: var(--color-link);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  border-radius: 4px;
  padding: 3px 8px;
  cursor: pointer;
}

.pm-copy-button:hover {
  background: #F0F0F0;
}

.pm-modal-open {
  overflow: hidden;
}

.pm-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.55);
}

.pm-modal-overlay[hidden] {
  display: none;
}

.pm-modal {
  position: relative;
  width: 90vw;
  max-width: 900px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--color-bg);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.pm-modal-content {
  position: relative;
}

.pm-modal-close {
  position: absolute;
  top: -4px;
  right: 0;
  color: var(--color-text);
  font-size: 22px;
  line-height: 1;
  background: transparent;
  border: 0;
  padding: 4px;
  cursor: pointer;
}

.pm-modal h2 {
  margin-top: 0;
  padding-right: 40px;
}

.pm-modal-input {
  margin-bottom: 20px;
}

.pm-modal-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.pm-modal-column h3 {
  font-size: 18px;
  margin: 0 0 8px 0;
}

.pm-modal-output-box {
  padding: 16px;
  border-radius: 6px;
}

.pm-modal-output-without {
  background: #F6F6F6;
}

.pm-modal-output-with {
  border: 2px solid var(--color-link);
}

.pm-modal-output-box p,
.pm-modal-output-box ul {
  margin-bottom: 0.75em;
}

.pm-modal-output-box > :last-child {
  margin-bottom: 0;
}

.pm-modal-output-box mark {
  padding: 1px 3px;
  border-radius: 2px;
}

.pm-modal-output-box .ann-lead {
  background: #FEF3C7;
}

.pm-modal-output-box .ann-precision {
  background: #DBEAFE;
}

.pm-annotations {
  color: var(--color-text-muted);
  font-size: 13px;
  margin: 20px 0 0 0;
}

/* Google Sheet */
.sheet-embed {
  height: 500px;
  min-height: 500px;
  margin-top: var(--spacing-block);
  margin-left: 50%;
  transform: translateX(-50%);
  width: 92vw;
  max-width: 1100px;
  overflow: hidden;
}

.sheet-embed iframe {
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-divider);
  border-radius: 6px;
  display: block;
}

@media (min-width: 700px) {
  .sheet-embed {
    height: 650px;
    min-height: 650px;
  }
}

/* Footer Contact Block */
.contact {
  margin-bottom: 48px;
}

.contact h2 {
  margin-top: 0;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.contact-row {
  display: flex;
  flex-direction: row;
}

.contact-row dt {
  color: var(--color-text-muted);
  width: 110px;
  flex-shrink: 0;
}

.contact-row dd {
  margin: 0;
}

@media (max-width: 699px) {
  .pm-prompt-card {
    padding: 16px;
  }

  .pm-modal-overlay {
    padding: 12px;
  }

  .pm-modal {
    width: 100%;
    padding: 20px;
  }

  .pm-modal-columns {
    grid-template-columns: 1fr;
  }
}
