/* ---------------------------------------------------------------
   George Diwan – site styles
   Colors and fonts match the original Google Sites "Impression" theme.
   --------------------------------------------------------------- */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f4f4;
  --text: #212121;
  --heading: #1f1f1f;
  --muted: #3d3d3d;
  --accent: #fdd835;
  --rule: #cccccc;
  --font-heading: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Open Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --max: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

a { color: inherit; }
a:hover { color: var(--muted); }

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid #ececec;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  font-family: var(--font-heading);
  font-size: 21px;
  color: var(--heading);
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover { opacity: .7; color: var(--heading); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  padding: 5px 12px;
  border-radius: 3px;
}

.site-nav a:hover { opacity: .7; }

.site-nav a.is-active {
  background: var(--heading);
  color: #fff;
  opacity: 1;
}

/* ---------- page title with yellow bar ---------- */

.page-title {
  text-align: center;
  padding: 44px 0 8px;
}

.page-title h1 {
  font-family: var(--font-heading);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(52px, 8vw, 80px);
  line-height: 1.15;
  color: var(--heading);
  margin: 0;
}

.page-title h1::after {
  content: "";
  display: block;
  height: 12px;
  background: var(--accent);
  width: min(760px, 72%);
  margin: 14px auto 0;
}

.page-title .meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 14px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- common type ---------- */

h2, h3 {
  font-weight: 400;
  color: var(--muted);
  line-height: 1.3;
  margin: 2.2em 0 .6em;
}

h2 { font-size: 24px; }
h3 { font-size: 20px; }

.section-title {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: clamp(34px, 5vw, 50px);
  color: var(--heading);
  text-align: center;
  margin: 1.4em 0 .6em;
}

p { margin: 0 0 1em; }

main { flex: 1; }

.btn {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  background: var(--accent);
  color: var(--muted);
  border: 1px solid var(--muted);
  border-radius: 4px;
  padding: 7px 24px;
  font-size: 16px;
  line-height: 22px;
}

.btn:hover {
  color: var(--muted);
  box-shadow: inset 0 0 0 999px rgba(31, 31, 31, .08);
}

.btn.btn-inline { display: inline-block; width: auto; min-width: 280px; }

/* ---------- tags ---------- */

.tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  background: var(--bg-alt);
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 2px 9px;
  line-height: 1.5;
}

.tag:hover { border-color: var(--rule); color: var(--heading); }

.tag.is-active {
  background: var(--heading);
  color: #fff;
  border-color: var(--heading);
}

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- projects index ---------- */

.filter {
  text-align: center;
  padding: 18px 0 6px;
}

.filter .tag-list { justify-content: center; }

.filter .tag { font-size: 14px; padding: 4px 12px; }

.filter-status {
  color: var(--muted);
  font-size: 14px;
  margin: 12px 0 0;
  min-height: 1.4em;
}

.project-list { list-style: none; margin: 0; padding: 0 0 32px; }

.project {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 150px;
  gap: 16px 36px;
  padding: 36px 0;
}

.project + .project { border-top: 3px solid rgba(253, 216, 53, .8); }

.project[hidden] { display: none; }

.project-thumb {
  width: 160px;
  height: 160px;
  object-fit: contain;
}

.project-body h2 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 38px;
  line-height: 1.2;
  color: var(--heading);
  margin: -6px 0 10px;
}

.project-body h2 a { text-decoration: none; }
.project-body h2 a:hover { color: var(--heading); opacity: .7; }

.project-body p { margin-bottom: .7em; }

.project-body .award { font-weight: 700; }

.project-body .btn { margin-top: 14px; }

.project-meta {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

.project-meta .year { display: block; margin-bottom: 10px; }

.project-meta .tag-list { gap: 5px; }

.credit { font-size: 11px; color: #777; margin-top: 6px; }
.credit a { color: inherit; }

/* ---------- home ---------- */

.about { text-align: center; padding: 8px 0 72px; }

.about .lead {
  max-width: 560px;
  margin: 0 auto 1em;
  font-weight: 700;
  text-align: justify;
}

.about .cta {
  margin-top: 56px;
  font-size: 22px;
  color: var(--muted);
}

/* ---------- post / project page ---------- */

.post { padding: 20px 0 64px; }

.post-body {
  max-width: 900px;
  margin: 0 auto;
}

.post-body > p,
.post-body > ul,
.post-body > ol,
.post-body > h2,
.post-body > h3 { max-width: 820px; }

.post-body h2 { color: var(--muted); }

.post-body figure {
  margin: 36px 0;
  text-align: center;
}

.post-body figure img { margin: 0 auto; }

.post-body figcaption {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
}

.post-body .narrow img { max-width: 420px; }

.media-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  margin: 24px 0;
}

.media-row figure { margin: 0; }

.video {
  position: relative;
  width: 100%;
  max-width: 820px;
  aspect-ratio: 16 / 9;
  margin: 28px 0;
  background: #000;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

pre, code {
  font-family: "Source Code Pro", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
}

pre {
  background: var(--bg-alt);
  border-left: 4px solid var(--accent);
  padding: 14px 18px;
  overflow-x: auto;
  line-height: 1.5;
  margin: 1em 0 1.4em;
}

code { background: var(--bg-alt); padding: 1px 5px; border-radius: 3px; }
pre code { background: none; padding: 0; }

.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body li { margin-bottom: .35em; }

.post-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 3px solid rgba(253, 216, 53, .8);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.post-footer .btn { width: auto; display: inline-block; min-width: 260px; }

.byline { color: var(--muted); font-size: 15px; margin-top: -6px; }

/* ---------- footer ---------- */

.site-footer {
  padding: 40px 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .project { grid-template-columns: 140px minmax(0, 1fr); }
  .project-thumb { width: 140px; height: 140px; }
  .project-meta { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: -4px; }
  .project-meta .year { margin: 0; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-header .container { flex-direction: column; align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }
  .site-nav { justify-content: flex-start; margin-left: -12px; }
  .page-title { padding-top: 28px; }
  .project { grid-template-columns: 1fr; gap: 14px; padding: 28px 0; }
  .project-thumb { width: 120px; height: 120px; }
  .project-body h2 { font-size: 30px; margin-top: 0; }
  .project-meta { grid-column: 1; }
  .media-row { grid-template-columns: 1fr; }
  .about .lead { text-align: left; }
  .btn.btn-inline { width: 100%; }
}
