/* meaghanmalone.com
   One look for the whole site: black and white. White paper, black ink, grays for the small labels and
   for the placeholders until the photographs arrive, and one color: the plum announcement bar across the
   top. Her hand-lettered logo, Cormorant Garamond for the headlines, EB Garamond for reading, Jost in
   small spaced capitals for labels. (The color names below, like --berry and --tone-latte, are left from
   the creams-and-browns version; their values are all grays now.)

   This file is loaded by every public page: the colors and type (:root), and the header, menu, and
   footer. Two kinds of pages build on it:
   - The photography pages (home, galleries, prints, investment, inquire, about, the agreement, the
     guide) add css/photo.css.
   - The journal, posts, the bookshelf, the design studio, the portfolio, and the résumé keep their own
     stylesheets (css/fresh.css, glass.css, labs.css, portfolio.css) in a layer named `legacy`, and
     css/bridge.css recolors them. Nothing in this file is in a layer, so it wins over all of those. */

:root {
  --paper: #FFFFFF;
  --paper-2: #F5F5F5;
  --paper-3: #EEEEEE;
  --ink: #111111;
  --ink-2: #4D4D4D;
  --ink-3: #7A7A7A;
  --berry: #6B6B6B;      /* the small labels, links, and the line under the page you're on */
  --berry-2: #3A3A3A;
  --brass: #A6A6A6;
  /* placeholder tones */
  --tone-latte: #E4E4E4;
  --tone-oat: #EDEDED;
  --tone-sand: #DADADA;
  --tone-camel: #CFCFCF;
  --tone-taupe: #E0E0E0;
  --tone-mocha: #D5D5D5;
  --line: rgba(0,0,0, .14);
  --line-2: rgba(0,0,0, .32);

  --serif-d: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --caps: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1240px;
  --measure: 66ch;
  --pad: clamp(20px, 4.5vw, 64px);
  --gap: clamp(14px, 1.6vw, 22px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ==========================================================================================
   The header, the menu, and the footer: the same on every page.
   These rules name everything they need, so an older page's stylesheet can't change them.
   ========================================================================================== */
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--ink); color: var(--paper); padding: .6rem 1rem; font: 500 .75rem/1 var(--caps); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border-radius: 0; }
.skip:focus { left: 8px; top: 8px; }

/* the plum announcement bar: the one color on the site */
.dev-banner { background: #7E1F4C; color: #FFFFFF; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem 1.2rem; padding: .7rem var(--pad); text-align: center; font: 400 .95rem/1.4 var(--serif); }
.dev-banner b { font: 500 .7rem/1.3 var(--caps); letter-spacing: .22em; text-transform: uppercase; color: #F4C2CC; }
@media (max-width: 560px) { .dev-banner { font-size: .9rem; } }
@media print { .dev-banner { display: none !important; } }

.mast {
  position: sticky; top: 0; z-index: 50; margin: 0; padding: 0;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; box-shadow: none;
  transition: border-color .3s;
}
.mast.scrolled { border-bottom-color: var(--line); }
.mast-in {
  width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: .8rem 0;
}
.mast-in.center { justify-content: center; }
.logo { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; line-height: 1; color: inherit; text-decoration: none; flex: none; }
.logo.center { align-items: center; }
.logo img { display: block; height: 52px; width: auto; max-width: none; }
.logo .tag { font: 500 .6rem/1.4 var(--caps); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }

.nav { display: flex; align-items: center; gap: clamp(.9rem, 1.7vw, 1.6rem); margin: 0; padding: 0; }
.nav a {
  position: relative; display: inline-block; padding: .6rem 0; margin: 0;
  font: 500 .7rem/1 var(--caps); letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  color: var(--ink-2); background: none; border: 0; border-radius: 0; box-shadow: none; white-space: nowrap;
}
.nav a:hover { color: var(--berry); background: none; }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: .1rem; height: 1px; background: var(--berry); }
.nav a.nav-cta { padding: .8rem 1.25rem; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); transition: background .25s, color .25s; }
.nav a.nav-cta:hover, .nav a.nav-cta[aria-current="page"] { background: var(--ink); color: var(--paper); }
.nav a.nav-cta::after { display: none; }
/* Galleries opens a short list underneath */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-sub {
  position: absolute; top: 100%; left: -1.2rem; z-index: 5; min-width: 15.5rem; padding: .5rem 1.2rem .7rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 3px;
  box-shadow: 0 26px 50px -32px rgba(0,0,0, .55);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
}
.nav-item:hover .nav-sub, .nav-item:focus-within .nav-sub { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s var(--ease); }
.nav-sub a { display: block; padding: .85rem 0; border-top: 1px solid var(--line); }
.nav-sub a:first-child { border-top: 0; }
.nav-sub a[aria-current="page"]::after { display: none; }
.nav-sub a[aria-current="page"] { color: var(--berry); }

.menu-tog {
  display: none; appearance: none; -webkit-appearance: none; margin: 0; background: none; border: 1px solid var(--line-2); border-radius: 999px;
  padding: .7rem 1rem; font: 500 .7rem/1 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); cursor: pointer; width: auto; height: auto; box-shadow: none;
}
.menu-tog:hover { border-color: var(--ink); background: none; }

/* the phone menu */
.sheet { position: fixed; inset: 0; z-index: 60; background: var(--paper); display: none; flex-direction: column; padding: var(--pad); overflow-y: auto; overscroll-behavior: contain; }
.sheet.open { display: flex; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; }
.sheet-links { display: flex; flex-direction: column; gap: 0; margin: 2rem 0 0; padding: 0; }
.sheet-links > a { display: block; font: 500 clamp(2rem, 7.4vw, 2.8rem)/1.2 var(--serif-d); letter-spacing: 0; text-transform: none; text-decoration: none; color: var(--ink); padding: .45rem 0; border-top: 1px solid var(--line); background: none; }
.sheet-links > a:first-child { border-top: 0; }
.sheet-links > a[aria-current="page"] { color: var(--berry); }
.sheet-sub { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; padding: 0 0 .9rem; }
.sheet-sub a { font: 500 .72rem/1 var(--caps); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); padding: .55rem 0; background: none; border: 0; }
.sheet-sub a[aria-current="page"] { color: var(--berry); }
.sheet-foot { margin-top: auto; padding-top: 2rem; }
.sheet-foot span { display: block; margin-bottom: .8rem; font: 500 .7rem/1.3 var(--caps); letter-spacing: .22em; text-transform: uppercase; color: var(--berry); }
.sheet-foot a { font: 500 .7rem/1 var(--caps); letter-spacing: .22em; text-transform: uppercase; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--berry); padding-bottom: .35rem; }

@media (max-width: 980px) {
  .nav { display: none; }
  .menu-tog { display: inline-block; }
}
@media (max-width: 560px) {
  .mast-in { padding: .7rem 0; }
  .logo img { height: 42px; }
  .mast .logo .tag { display: none; }
}

/* the footer */
.foot { position: relative; margin: 0; padding: 0; background: var(--paper-3); color: var(--ink); border-top: 1px solid var(--line); font: 400 1.0625rem/1.6 var(--serif); }
.foot-in { width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(4, minmax(0, 1fr)); gap: 2.5rem 2rem; padding: clamp(2.5rem, 5vw, 4rem) 0 2rem; }
.foot .logo img { height: 64px; }
.foot-blurb { margin: 1.2rem 0 0; color: var(--ink-2); max-width: 34ch; font: 400 1.0625rem/1.6 var(--serif); }
.foot-k { display: block; margin: 0 0 .9rem; font: 500 .7rem/1.3 var(--caps); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }
.foot-col a { display: block; padding: .3rem 0; color: var(--ink); text-decoration: none; font: 400 1.0625rem/1.5 var(--serif); letter-spacing: 0; text-transform: none; }
.foot-col a:hover { color: var(--berry); text-decoration: none; }
.foot-bottom { width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.2rem 0 1.8rem; border-top: 1px solid var(--line); font: 500 .7rem/1.6 var(--caps); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.foot-bottom.bare { border-top: 0; }
@media (max-width: 1000px) { .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-in { grid-template-columns: 1fr; } }
@media print { .mast, .sheet, .foot, .skip { display: none !important; } }
