/* =========================================================
   DESKTOP STYLES — replicate the Adobe Portfolio layout.
   Mobile overrides live in mobile.css and never touch this file.
   ========================================================= */

:root {
  --font: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-tagline: "Lora", Georgia, serif;
  --ink: #444444;
  --muted: #bbbbbb;
  --soft: #888888;
  --header-bg: #f3f3f2;
  --page-bg: #ffffff;
  --placeholder: #ecebe8;
  --placeholder-ink: #a3a29d;
  --content-max: 1260px;
  --side: 70px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--page-bg);
  color: #000;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

/* ---------- Header ---------- */

.site-header {
  background: var(--header-bg);
  padding: 70px 0;
  text-align: center;
}

.site-logo {
  font-family: 'Forum', serif;
  font-size: 48px;
  line-height: 52px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.site-nav {
  padding: 40px 0 18px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 50px;
}

.site-nav a {
  font-size: 40px;
  line-height: 40px;
  font-weight: 300;
  color: var(--muted);
  transition: color .2s;
}

.site-nav a:hover,
.site-nav a.is-active { color: var(--ink); }

/* ---------- Layout wrapper ---------- */

.site-content {
  max-width: calc(var(--content-max) + 2 * var(--side));
  margin: 0 auto;
  padding: 0 var(--side);
}

/* ---------- Gallery grid (Mural / Logo / Illustration) ---------- */

.covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 63px;
  padding-top: 60px;
}

.cover { display: block; }

.cover-media {
  aspect-ratio: 202 / 158;
  overflow: hidden;
}

.cover-media img,
.cover-media .ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: auto;
}

.cover-details {
  padding: 30px 19px 62px;
  text-align: center;
}

.cover-title {
  text-transform: uppercase;
  font-size: 24px;
  line-height: 28px;
  font-weight: 300;
  color: var(--ink);
  padding-bottom: 10px;
}

.cover-year {
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  color: var(--muted);
}

.cover:hover .cover-title { color: #000; }

/* ---------- Project page ---------- */

.page-header {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 0;
  text-align: center;
}

.page-title {
  text-transform: uppercase;
  margin: 0;
  font-size: 60px;
  line-height: 70px;
  font-weight: 300;
  color: var(--ink);
  padding-bottom: 30px;
}

.page-description {
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
  color: var(--soft);
}

.modules {
  margin: 0 auto;
  width: 100%;
  /* max-width is set per page (Adobe "content width") */
}

.module { margin-left: auto; margin-right: auto; }

/* Logo → motto → content: motto sits close to the logo, then one even gap */
.module.module-tagline { padding: 0 0 32px; }
.module:has(+ .module-tagline) { padding-bottom: 32px !important; }
.module-tagline + .module { padding-top: 0 !important; }
.module:has(+ .module-tagline.close-to-logo) { padding-bottom: 8px !important; }
/* a new brand starts after a long line; the line sits in the middle of the break */
.brand-divider {
  border: 0;
  border-top: 1px solid #dddddd;
  margin: 48px 0 120px;
  width: 100%;
}
.brand-divider + .module { padding-top: 0 !important; }
.module:has(+ .brand-divider) { padding-bottom: 0 !important; }

/* Logo → line → [photo | NAME, motto, text] */
.logo-rule {
  border: 0;
  border-top: 1px solid #dddddd;
  margin: 32px 0 40px;
  width: 100%;
}
.module:has(+ .logo-rule) { padding-bottom: 0 !important; }
.logo-rule + .module { padding-top: 0 !important; }
.side-motto .tagline { margin-bottom: 28px; }

/* Projects that open straight with the work (no title above) */
.modules.no-title { padding-top: 60px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.module-image { width: 100%; }
.module-image .ph,
.module-image img { width: 100%; }

.module-text {
  max-width: 800px;
}

.module-grid .row {
  display: flex;
  gap: var(--gap, 8px);
  margin-bottom: var(--gap, 8px);
}
.module-grid .row:last-child { margin-bottom: 0; }
.module-grid .cell { min-width: 0; }
.module-grid .cell .ph,
.module-grid .cell img { width: 100%; height: 100%; object-fit: cover; }

.module-split {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.module-split > .half,
.module-grid .row.pair > .half { flex: 1 1 0; }
.module-grid .row.pair { align-items: stretch; }
.module-grid .row.pair .cell img,
.module-grid .row.pair .cell .ph { width: 100%; height: 100%; object-fit: cover; }
.module-split .rich-text { padding: 0 48px; }
.module-split > div { min-width: 0; }
.module-split img,
.module-split .ph { width: 100%; }

/* ---------- Rich text (Adobe Portfolio "standard modules" styles) ---------- */

.rich-text { color: #777777; font-family: var(--font-text); }
.rich-text .sub-title,
.rich-text .title,
.rich-text .caption { font-family: var(--font); }

.rich-text div,
.rich-text p,
.rich-text .main-text {
  margin: 0;
  color: #777777;
  font-size: 17px;
  line-height: 28px;
  font-weight: 400;
  padding: 0 0 8px;
  text-align: center;
}

.rich-text .sub-title {
  color: var(--ink);
  font-size: 22px;
  line-height: 30px;
  font-weight: 400;
  padding: 10px 0;
  text-align: center;
}

/* Under a logo: NAME (Outfit caps) + motto (thin Lora) */
.rich-text .tagline { padding: 0; text-align: center; }

/* full-width line under the motto, same as the line between brands */
.module.module-tagline { max-width: none; }
.module.module-tagline::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 20px;
  background: #dddddd;
}

.rich-text .tagline .tagline-name {
  font-family: var(--font);
  text-transform: uppercase;
  font-size: 30px;
  line-height: 36px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink);
  padding: 0 0 4px;
}

.rich-text .tagline .tagline-motto {
  font-family: var(--font-tagline);
  font-style: italic;
  font-size: 23px;
  line-height: 32px;
  font-weight: 400;
  color: #777777;
  padding: 0;
}

.rich-text .title {
  color: var(--ink);
  font-size: 60px;
  line-height: 70px;
  font-weight: 300;
  text-align: center;
}

.rich-text .caption {
  color: #888888;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  padding-top: 15px;
}

.rich-text a { color: #888888; text-decoration: underline; }
.rich-text .bold, .rich-text b, .rich-text strong { font-weight: 700; }
.rich-text .sub-title .bold,
.rich-text .sub-title b,
.rich-text .sub-title strong { font-weight: inherit; }  /* headings keep one weight */
.rich-text .italic, .rich-text i, .rich-text em { font-style: italic; }
.rich-text .underline { text-decoration: underline; }

/* Texts copied from Adobe carry their own fonts — override them */
.rich-text [style*="font-family"] { font-family: inherit !important; }

/* ---------- Placeholders (until original photos are added) ---------- */

.ph {
  background: var(--placeholder);
  color: var(--placeholder-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  line-height: 1.3;
  padding: 12px;
}

/* ---------- Contact ---------- */

.contact-form {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 0 0;
  display: grid;
  gap: 24px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid #ddd;
  background: #fff;
  color: #000;
}

.contact-form textarea { min-height: 180px; resize: vertical; }

.contact-form button {
  justify-self: start;
  font: inherit;
  font-size: 16px;
  padding: 12px 32px;
  border: 0;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 60px 0;
  text-align: center;
  font-size: 12px;
  line-height: 18px;
  font-weight: 300;
  color: #999;
}

.back-to-top { color: #999; }
.back-to-top:hover { color: var(--ink); }
