/* ——— Michael Wu · Origami Portfolio ——— */

:root {
  --paper: #faf7f2;
  --paper-deep: #f1ebe1;
  --ink: #23201c;
  --ink-soft: #5c554b;
  --accent: #c0392b;      /* vermilion, like traditional origami paper */
  --accent-soft: #e8d5cf;
  --line: #ddd4c6;
  --max: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.7;
  font-size: 17px;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ——— Header ——— */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.brand {
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  font-weight: bold;
}
.brand:hover { text-decoration: none; }
.brand span { color: var(--accent); }

nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

nav a { color: var(--ink-soft); }
nav a:hover, nav a.active { color: var(--accent); text-decoration: none; }
nav a.active { border-bottom: 2px solid var(--accent); padding-bottom: 2px; }

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 66vh;
  display: flex;
  align-items: flex-end;
  background: url('assets/hero.jpg') center 40% / cover no-repeat;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 16, 12, 0.75), rgba(20, 16, 12, 0.05) 60%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding: 3rem 1.5rem;
  color: #fff;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: normal;
  line-height: 1.15;
}

.hero p {
  margin-top: 0.75rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f0e8dc;
}

/* Small page hero (subpages) */
.page-hero {
  min-height: 38vh;
}

/* ——— Sections ——— */
main { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

section { padding: 4.5rem 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }

.kicker {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: normal;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

h3 { font-size: 1.25rem; margin-bottom: 0.5rem; font-weight: bold; }

.lede { font-size: 1.15rem; color: var(--ink-soft); }

p + p { margin-top: 1rem; }

/* Two-column split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split img {
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(35, 32, 28, 0.18);
}

/* Timeline */
.milestone {
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin-top: 2rem;
}
.milestone .date {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Cards (paper types) */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(35, 32, 28, 0.07);
}

.card img { height: 210px; width: 100%; object-fit: cover; }
.card .card-body { padding: 1.25rem 1.4rem 1.5rem; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.work { background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; box-shadow: 0 4px 14px rgba(35,32,28,0.07); }
.work img { height: 300px; width: 100%; object-fit: cover; }
.work figcaption { padding: 1rem 1.25rem 1.25rem; }
.work .dims { color: var(--ink-soft); font-size: 0.88rem; font-family: 'Helvetica Neue', Arial, sans-serif; }

/* Quote */
blockquote {
  margin: 3rem auto;
  max-width: 640px;
  text-align: center;
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.5;
}
blockquote footer {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-style: normal;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: none;
  border: none;
  padding: 0;
}

/* Banner strip */
.banner {
  background: var(--paper-deep);
  border-radius: 4px;
  padding: 3rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

/* Contact */
.contact-box {
  text-align: center;
  padding: 2rem 0;
}
.contact-box .email {
  display: inline-block;
  margin-top: 1rem;
  font-size: 1.3rem;
  border: 1px solid var(--accent);
  padding: 0.75rem 1.75rem;
  border-radius: 3px;
}
.contact-box .email:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* ——— Footer ——— */
body > footer {
  background: var(--ink);
  color: #cfc7ba;
  margin-top: 4rem;
}
body > footer .foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
body > footer a { color: #f0e8dc; }

/* ——— Responsive ——— */
@media (max-width: 760px) {
  .split, .banner { grid-template-columns: 1fr; }
  section { padding: 3rem 0; }
  .hero { min-height: 55vh; }
}
