/* =====================================================================
   Projects page layout
   Scoped to <body class="page-projects">
   ================================================================== */
/* --- Page shell tweaks for projects --- */

.page-projects {
    /* make sure the header hugs the very top of the viewport */
    margin: 0;
    padding-top: 0;
}

/* --- Top banner card ------------------------------------------------ */

.page-projects .projects-header-card {
    margin-bottom: 1.5rem;
    padding-top: 0.9rem;
    padding-bottom: 1.0rem;
}

.page-projects .projects-header-card h1 {
    margin: 0 0 0.5rem 0;
    font-family: "Georgia", serif;
    font-size: 1.6rem;
}

/* --- Split layout: sticky manifest + project stream ----------------- */

.page-projects .projects-body {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

/* Left column – skinny sticky manifest card */
.page-projects .projects-manifest-card {
    flex: 0 0 260px;
    max-width: 260px;

    position: static;        /* was sticky */
    top: auto;               /* no sticky offset */
    align-self: flex-start;  /* sit at the top of the column */
    margin-top: 0;      /* breathing room under the hero card */
}

.page-projects .manifest-heading {
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
    font-family: "Georgia", serif;
    font-size: 0.95rem;
}

.page-projects .manifest-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.page-projects .manifest-list li + li {
    margin-top: 0.1rem;
}

.page-projects .manifest-list a {
    text-decoration: none;
    border-bottom: 1px dotted rgba(0, 0, 0, 0.4);
}

.page-projects .manifest-list a:hover {
    border-bottom-style: solid;
}

.page-projects .manifest-note {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #6b6254;
}

/* Right column – stream of project cards */
.page-projects .projects-stream {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* --- Project card styling ------------------------------------------- */

.page-projects .project-card .project-header {
    margin-bottom: 0.4rem;
}

.page-projects .project-title {
    margin: 0;
    font-family: "Georgia", serif;
    font-size: 1.2rem;
}

.page-projects .project-meta {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6a5d4e;
}

.page-projects .project-tag + .project-tag::before {
    content: " • ";
    opacity: 0.7;
}

.page-projects .project-checklist {
    margin-top: 0.4rem;
    padding-left: 1.1rem;
    font-size: 0.9rem;
}

.page-projects .project-note {
    margin-top: 0.4rem;
    font-size: 0.9rem;
    font-style: italic;
}

/* ============================================================
   INDIVIDUAL PROJECT ENTRY PAGES
   ------------------------------------------------------------
   Used for pages where the main content is:
     <article class="project"> … </article>
   (e.g. Kitchen Line v1)
   ============================================================ */

/* Overall article “sheet” */
.project {
  max-width: 860px;
  margin: 2rem auto 3.5rem auto;
  padding: 1.75rem 2.25rem 2.25rem;
  background: #ebe4d6;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 0 0 1px rgba(0, 0, 0, 0.02);
  position: relative;
}

/* Subtle faux “hole punches” like the cards use */
.project::before,
.project::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}

.project::before {
  top: 6px;
  left: 10px;
}

.project::after {
  bottom: 6px;
  right: 10px;
}

/* --------------------------------------------
   Header block
   -------------------------------------------- */

.project-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 1.1rem;
}

/* Series line: “hamlet quarterly • vol. 1” */
.project-series {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #6a5a6d;
  margin: 0 0 0.35rem 0;
}

/* Main title */
.project-title {
  margin: 0 0 0.25rem 0;
  font-family: "Georgia", serif;
  font-size: 1.9rem;
  line-height: 1.15;
  color: #2d2433;
}

/* Subtitle line */
.project-subtitle {
  margin: 0 0 0.4rem 0;
  font-style: italic;
  font-size: 0.95rem;
  color: #5b5347;
}

/* Meta line: dates, location, etc. */
.project-meta {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #918879;
}

/* --------------------------------------------
   Body copy / “notebook” text
   -------------------------------------------- */

.project-body {
  margin-top: 1.75rem;
  font-family: "Georgia", serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #221d1b;
}

/* Keep paragraphs in a comfortable column */
.project-body p {
  max-width: 68ch;
  margin: 0 0 1.1rem 0;
}

/* Section headings inside the project */
.project-body h2,
.project-body h3 {
  font-family: "Georgia", serif;
  font-weight: 600;
  color: #3b3240;
  margin: 2rem 0 0.75rem 0;
}

.project-body h2 {
  font-size: 1.25rem;
}

.project-body h3 {
  font-size: 1.05rem;
  text-transform: none;
}

/* Inline code / star codes */
.project-body code {
  font-family: "SF Mono", "Consolas", "Courier New", monospace;
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.6);
  padding: 0.08rem 0.25rem;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Lists, if/when you add them later */
.project-body ul,
.project-body ol {
  max-width: 64ch;
  padding-left: 1.25rem;
  margin: 0 0 1.1rem 0;
}

.project-body li {
  margin: 0 0 0.3rem 0;
}

/* ---------------------------------------
   Base project figure
   --------------------------------------- */
.project-figure {
    margin: 1.25rem auto;
    text-align: left;
    font-size: 0.8rem;
    color: #5a554b;
}

.project-figure img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 1px solid rgba(0,0,0,0.18);
    background: #f6f1e6;
}

/* ---------------------------------------
   SIZING OPTIONS
   Use together with .project-figure
   --------------------------------------- */

/* 1) Full-column width (default) */
.project-figure--full img {
    width: 100%;
}

/* 2) Medium inset (good “article illustration” size) */
.project-figure--medium {
    max-width: 420px;
}
.project-figure--medium img {
    width: 100%;
}

/* 3) Small inset */
.project-figure--small {
    max-width: 300px;
}
.project-figure--small img {
    width: 100%;
}

/* 4) Float-right, text wraps around (very old-web) */
.project-figure--float-right {
    float: right;
    max-width: 260px;
    margin: 0 0 0.75rem 1.25rem; /* top right bottom left */
}
.project-figure--float-right img {
    width: 100%;
}

/* Clear floats at the end of a section if you use float-right */
.project-body::after {
    content: "";
    display: block;
    clear: both;
}
/* 5) Float-left, text wraps around */
.project-figure--float-left {
    float: left;
    max-width: 260px;
    margin: 0 1.25rem 0.75rem 0; /* top right bottom left */
}

.project-figure--float-left img {
    width: 100%;
}


/* --------------------------------------------
   Footer / colophon
   -------------------------------------------- */

.project-footer {
  margin-top: 1.75rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.8rem;
  color: #6a6357;
  font-style: italic;
}

/* Center the little colophon line */
.project-footer p {
  margin: 0;
  text-align: right;
}

/* --------------------------------------------
   Small-screen tweaks
   -------------------------------------------- */

@media (max-width: 820px) {
  .project {
    margin: 1.25rem 1rem 2.5rem 1rem;
    padding: 1.25rem 1.2rem 1.6rem;
  }

  .project-title {
    font-size: 1.6rem;
  }

  .project-body p,
  .project-body ul,
  .project-body ol {
    max-width: 100%;
  }

  .project-footer p {
    text-align: left;
  }
}


/* --- Mobile / narrow screens ---------------------------------------- */

@media (max-width: 820px) {
    .page-projects .projects-body {
        flex-direction: column;
    }

    .page-projects .projects-manifest-card {
        position: static;
        max-width: none;
        order: -1; /* manifest appears above the stream on mobile */
    }
}
