/* ------------------------------------------------------------------
   portfolio.sente.us
   Design: Washi (shared with sente.us and journal.sente.us)
   ------------------------------------------------------------------ */

:root {
  --seal: #6e0b10;
  --seal-soft: #8a2228;
  --bg: #f6f1e7;
  --surface: #faf6ee;
  --text: #2a2623;
  --muted: #776f66;
  --rule: #e2d8c7;
  --rule-strong: #d3c6b0;

  --font-display: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --font-ui: "Inter Variable", system-ui, -apple-system, sans-serif;
  --measure: 46rem;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { font-size: 122%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--seal); }

.hub {
  flex: 1;
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Logo -------------------------------------------------------------- */

.hero {
  padding: clamp(2rem, 7vh, 4.5rem) 0 clamp(1.25rem, 3.5vh, 2.25rem);
  text-align: center;
}

.logo { margin: 0; }
.logo img { width: min(100%, 24rem); height: auto; display: inline-block; }

/* Identity & mission ----------------------------------------------- */

.identity {
  min-height: 7rem;
  margin: 0 auto clamp(1.5rem, 4vh, 2.5rem);
  max-width: 36rem;
  text-align: center;
}

.identity-text { font-size: 1.35rem; line-height: 1.45; margin: 0 0 1rem; }
.mission-text { color: var(--muted); margin: 0; }

.placeholder {
  min-height: 7rem;
  border: 1px dashed var(--rule-strong);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.placeholder-label,
.card-status {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.placeholder-label { color: var(--seal); margin: 0; }
.placeholder-note { color: var(--muted); font-style: italic; margin: 0.3rem 0 0; font-size: 0.95rem; }

/* Section buttons --------------------------------------------------- */

.sections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.05rem 1.3rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--seal);
  border-radius: 2px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

a.card:hover,
a.card:focus-visible {
  border-color: var(--rule-strong);
  border-top-color: var(--seal-soft);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px -12px rgba(42, 38, 35, 0.35);
}

a.card:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; }

.card-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.2;
}

.card-desc { color: var(--muted); font-size: 0.95rem; line-height: 1.45; }

.card.is-soon { border-top-color: var(--rule-strong); cursor: default; }
.card.is-soon .card-name { color: var(--muted); }
.card-status { color: var(--seal); margin-top: 0.45rem; }

/* A block marked "wide" (Links) spans both columns */

.card-wide {
  grid-column: 1 / -1;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.8rem;
}
.card-wide .card-name { font-size: 1.15rem; }
.card-wide .card-status { margin: 0 0 0 auto; }

/* Inner pages (About) ----------------------------------------------- */

.page-header { text-align: center; padding: 2.25rem 1.25rem 0; }
.page-logo img { width: min(70%, 15rem); height: auto; }

.page-main {
  flex: 1;
  width: 100%;
  max-width: 38rem;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 0;
}

.page-main h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.3rem;
  line-height: 1.15;
  margin: 0;
  text-align: center;
}

.page-kicker {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  margin: 0.2rem 0 2rem;
}

.about-block { margin-bottom: 2rem; }

.block-label {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--seal);
  margin: 0 0 0.6rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--rule);
}

.about-block .placeholder { min-height: 4rem; }

.action {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--seal);
  border-radius: 2px;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.action:hover { background: var(--seal); color: var(--bg); }
.action-note { margin-left: 0.8rem; color: var(--muted); font-size: 0.9rem; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { margin: 0.2rem 0; }

.back-link { text-align: center; margin-top: 2.5rem; font-family: var(--font-ui); font-size: 0.75rem; }
.back-link a { color: var(--muted); text-decoration: none; }
.back-link a:hover { color: var(--seal); }


/* Portfolio brand: stamp above the "Portfolio" wordmark ------------- */

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  color: #1a1a1a;
  text-decoration: none;
}
.brand-seal { width: clamp(84px, 16vmin, 120px); height: auto; display: block; }
.brand-word { margin: 0; line-height: 0; }
.wordmark-svg { width: clamp(150px, 26vmin, 210px); height: auto; display: block; }

.wordmark-long { width: min(92vw, 34rem); }

.brand-small { flex-direction: row; gap: 0.8rem; }
.brand-small .brand-seal { width: 46px; }
.brand-small .wordmark-svg { width: 120px; }

.portfolio-hero { padding-bottom: clamp(1.75rem, 5vh, 3rem); }

/* Introduction ----------------------------------------------------- */

.intro {
  max-width: 34rem;
  margin: 0 auto clamp(1.75rem, 4vh, 2.5rem);
  text-align: center;
}
.intro p { font-size: 1.1rem; line-height: 1.6; color: var(--muted); margin: 0; }

/* A single entry spans the full width instead of sitting in one column */
.sections .card:only-child { grid-column: 1 / -1; }

/* Entry pages ------------------------------------------------------- */

.entry-body h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.45rem;
  margin: 2.2rem 0 0.6rem;
}
.entry-body p, .entry-body li { line-height: 1.7; }
.entry-body img { max-width: 100%; height: auto; display: block; margin: 1.5rem auto; }
.page-main .placeholder { min-height: 8rem; }
.entry-body .placeholder { min-height: 5.5rem; margin: 0.5rem 0 1rem; }

/* Artifact blocks (one per ADDIE phase) ----------------------------- */

.artifacts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin: 1.2rem 0 0.5rem;
}

.artifact {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.15rem 1.05rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--seal);
  border-radius: 2px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.artifact:hover,
.artifact:focus-visible {
  border-color: var(--rule-strong);
  border-top-color: var(--seal-soft);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px -12px rgba(42, 38, 35, 0.35);
}
.artifact:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; }

.artifact-phase {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--seal);
}
.artifact-title { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; line-height: 1.25; }
.artifact-desc { color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.artifact-link {
  margin-top: auto;
  padding-top: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--seal);
}
.artifacts .artifact:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Compact artifact buttons: phase, title, link only */
.artifacts-compact {
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.6rem;
}
.artifacts-compact .artifact { padding: 0.65rem 0.8rem 0.7rem; gap: 0.15rem; }
.artifacts-compact .artifact-phase { font-size: 0.55rem; letter-spacing: 0.18em; }
.artifacts-compact .artifact-title { font-size: 0.98rem; line-height: 1.2; }
.artifacts-compact .artifact-link { font-size: 0.62rem; padding-top: 0.35rem; }
.artifacts-compact .artifact:last-child:nth-child(odd) { grid-column: auto; }

@media (max-width: 560px) {
  .artifacts:not(.artifacts-compact) { grid-template-columns: 1fr; }
  .artifacts-compact { grid-template-columns: repeat(2, 1fr); }
}

/* Course list, course tags, journey headings ----------------------- */

/* Two columns of five, filled top to bottom */
.course-list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 1.4rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
  column-gap: 1.5rem;
  row-gap: 0.75rem;
}
.course-list li { display: flex; flex-direction: column; line-height: 1.3; font-size: 0.95rem; }
.course-prof { font-size: 0.85rem; font-style: italic; color: var(--muted); }
.course-code {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--seal);
}
@media (max-width: 560px) { .course-list { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; } }

.course-tag {
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--seal);
  margin: -0.3rem 0 0.8rem;
}

.entry-body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  margin: 2rem 0 0.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
}

/* Responsive 16:9 video embeds */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 1rem 0 0.5rem;
  background: #1d1b1a;
  border-radius: 2px;
  overflow: hidden;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Footer ------------------------------------------------------------ */

.site-footer p + p { margin-top: 0.35rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--seal); }

.site-footer {
  max-width: var(--measure);
  width: 100%;
  margin: 2.5rem auto 0;
  padding: 1.25rem 1.25rem 2rem;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--muted);
}

/* Small screens ----------------------------------------------------- */

@media (max-width: 560px) {
  html { font-size: 112.5%; }
  .sections { grid-template-columns: 1fr; gap: 0.75rem; }
  .card { padding: 0.9rem 1.1rem 1rem; }
  .card-name { font-size: 1.25rem; }
}

/* Short desktop screens: keep every block, including Links, on the first screen */

@media (min-width: 561px) and (max-height: 960px) {
  html { font-size: 106%; }
  .hero { padding: 1.5rem 0 1rem; }
  .logo img { width: min(100%, 20rem); }
  .identity, .placeholder { min-height: 5.25rem; }
  .identity { margin-bottom: 1.25rem; }
  .sections { gap: 0.75rem; }
  .card { padding: 0.75rem 1.2rem 0.8rem; }
  .card-status { margin-top: 0.25rem; }
  .card-desc { font-size: 0.9rem; }
  .card-wide { padding-top: 0.6rem; padding-bottom: 0.65rem; }
}

/* Space between the portfolio title and the entry blocks, on every screen height */
.hero.portfolio-hero { padding-bottom: clamp(1.75rem, 5vh, 3rem); }
