/* layout.css: where big pieces sit on the page (header, columns, footer). */

/* Custom elements are "inline" by default, so make them behave like blocks */
site-header, site-footer { display: block; }

/* Header */
.banner { background: var(--panel); height: 125px; border-bottom: 1px solid var(--ink);
          font: bold 48px Georgia, serif; }
.banner a { color: inherit; }
/* Lets the microwave be positioned relative to the banner */
.banner-inner {
  position: relative;      /* the microwave is positioned inside this */
  max-width: 1000px;       /* same width as .page, so they line up */
  height: 100%;
  margin: 0 auto;          /* centres it, like .page */
  padding: 20px 10px;      /* the spacing the banner used to have */
}

.microwave {
  position: absolute;
  top: 22px;
  right: 10px;             /* lines up with the sidebar's right edge */
  width: 250px;            /* same as the sidebar, so it sits above the photo */
  height: 100px;           /* make this bigger or smaller to resize the microwave */
}

.microwave img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;     /* keeps proportions; centred in the 250px box */
}

/* Blink: on for 1.5s, off for 1s (2.5s per cycle) */
.mw-on { animation: blink 2.5s steps(1) infinite; }

@keyframes blink {
  0%  { opacity: 1; }      /* on */
  60% { opacity: 0; }      /* off */
}

@media (prefers-reduced-motion: reduce) {
  .mw-on { animation: none; }
}

@media (max-width: 800px) {
  .microwave { width: 120px; height: 70px; }
}

.socialbar { background: var(--tan); padding: 8px 20px; text-align: right; }
.drips { height: 90px; background: linear-gradient(#000 60%, #fff); }  /* swap for an image later */

/* Three columns: nav | content | sidebar */
.page { display: flex; gap: 20px; max-width: 1000px; margin: 0 auto; padding: 0 10px; align-items: flex-start; }
site-nav { flex: 0 0 120px; display: block; }
.center  { flex: 1; min-width: 0; }
.right   { flex: 0 0 250px; }

/* Footer */
site-footer footer { margin-top: 20px; border-top: 1px solid var(--ink); padding: 12px; text-align: center; color: #888; }
site-footer a { color: var(--accent); font-weight: bold; }

/* Phones: stack the columns */
@media (max-width: 800px) {
  .page { flex-direction: column; }
  site-nav, .right { flex-basis: auto; width: 100%; }
}
