/* ------------------------------------------------------------------
   Estate Atelier — Guild pages in the V3 (image-led) style, Nov 2026.
   Loads after styles.css, guilds.css and v3.css and reuses their
   header, footer, links, section frames, picture cards and invitation.
   Every new rule is prefixed a3g-.
   ------------------------------------------------------------------ */

/* Opening screen: the Guild's picture, shorter than the homepage's. */
.a3g-hero {
  min-height: max(600px, 84svh);
}

.a3g-hero .a3-hero-copy {
  padding-top: 150px;
}

.a3g-hero h1 em {
  max-width: 22ch;
  margin-top: .38em;
  font-size: .5em;
  line-height: 1.2;
  letter-spacing: -.005em;
}

.a3g-hero .a3-hero-foot {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px 0;
}

.a3g-hero .a3-hero-foot span + span::before {
  content: "·";
  margin: 0 16px;
  color: rgba(242, 239, 233, .5);
}

/* Breadcrumb, on a picture or a dark band. */
.a3g-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 12px;
  margin-bottom: clamp(20px, 2.4vw, 38px);
  font-size: 13px;
  letter-spacing: .02em;
  color: rgba(242, 239, 233, .82);
  text-shadow: 0 0 3px rgba(19, 27, 22, .9), 0 1px 14px rgba(19, 27, 22, .8);
}

.a3g-crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-decoration-color: rgba(242, 239, 233, .5);
  text-underline-offset: 5px;
}

.a3g-crumbs a:hover,
.a3g-crumbs a:focus-visible {
  color: #f4d89c;
  text-decoration-color: #f4d89c;
}

.a3g-crumbs [aria-current] {
  color: var(--paper);
}

/* The directory opens on a dark band with the six pictures. */
.a3g-directory {
  padding-top: clamp(28px, 3vw, 48px);
}

.a3g-directory .a3g-crumbs {
  text-shadow: none;
}

.a3-head h1 {
  font-size: clamp(42px, 5.2vw, 92px);
  line-height: 1.05;
  letter-spacing: -.015em;
}

.a3-head h1 em {
  display: block;
  color: #f4d89c;
}

.a3g-directory .a3-head > p:not(.eyebrow) {
  color: rgba(242, 239, 233, .88);
}

/* One sentence about the place, and what the guide holds. */
.a3g-lede-section {
  padding-block: clamp(64px, 6vw, 108px);
}

.a3g-lede {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 40px clamp(40px, 7vw, 140px);
  align-items: start;
}

.a3g-lede-text {
  max-width: 30ch;
  margin: 0;
  padding-left: clamp(18px, 2vw, 32px);
  border-left: var(--a3-seam) solid var(--brass);
  font-family: var(--serif);
  font-size: clamp(24px, 2.35vw, 38px);
  line-height: 1.32;
  letter-spacing: -.005em;
  text-wrap: pretty;
}

.a3g-guide .eyebrow {
  color: var(--muted);
}

.a3g-guide ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.a3g-guide a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 20px;
  align-items: center;
  padding: 15px 0 14px;
  border-bottom: 1px solid var(--rule);
  transition: padding-left 240ms ease, border-color 240ms ease;
}

.a3g-guide-name {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.25;
}

.a3g-guide-note {
  grid-column: 1;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--muted);
}

.a3g-guide .glyph {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 18px;
  transform: rotate(90deg);
  transition: transform 240ms ease;
}

.a3g-guide a:hover,
.a3g-guide a:focus-visible {
  padding-left: 8px;
  border-bottom-color: var(--brass);
}

.a3g-guide a:hover .glyph,
.a3g-guide a:focus-visible .glyph {
  transform: rotate(90deg) translate(3px, -3px);
}

/* Architecture: who built what here, each with its published source. */
.a3g-works {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.a3g-works li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 16px clamp(32px, 6vw, 120px);
  align-items: start;
  padding: clamp(26px, 2.6vw, 40px) 0;
  border-bottom: 1px solid var(--rule);
}

.a3g-works .eyebrow {
  color: var(--muted);
}

.a3g-works h3 {
  margin-top: 14px;
  font-size: clamp(26px, 2.5vw, 40px);
  line-height: 1.12;
  letter-spacing: -.008em;
}

.a3g-works h3 a {
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
  transition: color 200ms ease;
}

.a3g-works h3 a:hover,
.a3g-works h3 a:focus-visible {
  color: var(--forest);
  text-decoration-thickness: 2px;
}

.a3g-works p {
  max-width: 62ch;
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

.a3g-works .a3g-source {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.a3g-source a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.a3g-source a:hover,
.a3g-source a:focus-visible {
  color: var(--ink);
}

/* Historic places: outside resources, each row a link. */
.a3g-rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.a3g-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr) auto;
  gap: 10px clamp(24px, 4vw, 72px);
  align-items: start;
  padding: 26px 0 25px;
  border-bottom: 1px solid var(--rule);
  transition: padding-left 240ms ease, border-color 240ms ease;
}

.a3g .a3g-row .eyebrow {
  padding-top: 8px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}

.a3g-row-main {
  display: grid;
  gap: 10px;
}

.a3g-row-title {
  font-family: var(--serif);
  font-size: clamp(22px, 1.9vw, 30px);
  line-height: 1.2;
  text-wrap: balance;
}

.a3g-row-text {
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

.a3g-row-go {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-top: 6px;
  color: var(--muted);
}

.a3g-row-go .glyph {
  font-size: 18px;
  color: var(--ink);
  transition: transform 240ms ease;
}

.a3g-row:hover,
.a3g-row:focus-visible {
  padding-left: 10px;
  border-bottom-color: var(--brass);
}

.a3g-row:hover .glyph,
.a3g-row:focus-visible .glyph {
  transform: translate(3px, -3px);
}

.a3g-note {
  max-width: 74ch;
  margin: 28px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* The other five Guilds, as picture cards on a light band. */
.a3g-light .a3-head {
  margin-bottom: clamp(30px, 3vw, 48px);
}

.a3g-others {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(30px, 3vw, 48px) clamp(16px, 1.6vw, 28px);
}

.a3g-others .a3-place-text {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  margin-top: 16px;
}

.a3g-others .a3-place-text .eyebrow,
.a3g-others .a3-place-line {
  grid-column: 1 / -1;
}

.a3g-others .a3-place-name {
  font-size: clamp(20px, 1.6vw, 26px);
}

.a3g-light .a3-place-text {
  border-bottom-color: var(--rule);
}

.a3g-light .a3-place-text .eyebrow {
  color: var(--muted);
}

.a3g-light .a3-place-line {
  color: var(--muted);
}

.a3g-light .a3-place:hover .a3-place-text,
.a3g-light .a3-place:focus-visible .a3-place-text {
  border-bottom-color: var(--brass);
}

@media (max-width: 1180px) {
  .a3g-others {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 999px) {
  .a3g-hero .a3-hero-copy {
    padding-top: 132px;
  }

  .a3g-lede {
    grid-template-columns: minmax(0, 1fr);
  }

  .a3g-lede-text {
    max-width: 34ch;
  }

  .a3g-works li {
    grid-template-columns: minmax(0, 1fr);
  }

  .a3g-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .a3g .a3g-row .eyebrow {
    grid-column: 1 / -1;
    padding-top: 0;
  }
}

@media (max-width: 760px) {
  .a3g-hero {
    min-height: max(560px, 78svh);
  }

  .a3g-hero h1 em {
    font-size: .56em;
  }

  .a3g-hero .a3-hero-foot {
    flex-direction: row;
  }

  .a3g-hero .a3-hero-foot span + span::before {
    margin: 0 10px;
  }

  .a3-head h1 {
    font-size: clamp(36px, 10.4vw, 52px);
  }

  .a3g-others {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .a3g-row-go .a3-newtab {
    display: none;
  }
}

/* ------------------------------------------------------------------
   Review pass (Nov 13 2026)
   ------------------------------------------------------------------ */

/* The opening picture is anchored per Guild, separately for wide and tall screens. */
.a3g-hero .a3-hero-image img {
  object-position: var(--a3g-focus, 50% 50%);
}

.a3g-hero h1 {
  text-shadow: 0 1px 18px rgba(19, 27, 22, .6);
}

.a3g-hero .a3-hero-foot span {
  font-size: clamp(10px, .75vw, 12px);
}

/* Small capitals stay small inside the lists, whatever the paragraph size around them. */
.a3g .a3g-works .eyebrow,
.a3g .a3g-row .eyebrow {
  max-width: none;
  font-size: 11px;
  line-height: 1.5;
  text-transform: uppercase;
}

/* Architecture sits on forest green, each entry numbered like a plate. */
.a3g-works {
  counter-reset: a3g-work;
}

.a3g-works li {
  counter-increment: a3g-work;
  grid-template-columns: clamp(56px, 6vw, 104px) minmax(0, 1fr) minmax(0, 1.3fr);
}

.a3g-works li::before {
  content: counter(a3g-work, decimal-leading-zero);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(34px, 3.4vw, 58px);
  line-height: 1;
  color: var(--brass);
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

.a3-dark .a3g-works {
  border-top-color: rgba(242, 239, 233, .55);
}

.a3-dark .a3g-works li {
  border-bottom-color: rgba(242, 239, 233, .24);
}

.a3-dark .a3g-works .eyebrow {
  color: #f4d89c;
}

.a3-dark .a3g-works p {
  color: rgba(242, 239, 233, .9);
}

.a3-dark .a3g-works .a3g-source {
  color: rgba(242, 239, 233, .76);
}

.a3-dark .a3g-works h3 a:hover,
.a3-dark .a3g-works h3 a:focus-visible,
.a3-dark .a3g-source a:hover,
.a3-dark .a3g-source a:focus-visible {
  color: #f4d89c;
}

.a3-dark .a3-head > p:not(.eyebrow) {
  color: rgba(242, 239, 233, .88);
}

.a3-dark .a3-library-copy .eyebrow {
  color: #f4d89c;
}

.a3-dark .a3-library-copy h2 em {
  color: #f4d89c;
}

.a3-dark .a3-library-copy > p:not(.eyebrow) {
  color: rgba(242, 239, 233, .88);
}

.a3-dark .a3-more .text-link,
.a3-dark .a3-library-links .text-link {
  border-bottom-color: rgba(242, 239, 233, .6);
}

.a3g-works .a3g-source {
  line-height: 2;
}

.a3-dark .a3-library-links .text-link {
  max-width: 380px;
}

/* Directory cards carry their region beside the number. */
.a3g-regions .a3-place-text {
  grid-template-columns: minmax(0, 1fr) auto;
}

.a3g-regions .a3-place-text .eyebrow,
.a3g-regions .a3-place-line {
  grid-column: 1 / -1;
}

.a3g-regions .a3-place-text .eyebrow {
  margin-bottom: 6px;
}

/* Five cards never leave an empty cell: 5 across, then 3 + 2, then 2 + 2 + 1 wide. */
@media (max-width: 1180px) {
  .a3g-others {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .a3g-others li {
    grid-column: span 2;
  }

  .a3g-others li:nth-child(n + 4) {
    grid-column: span 3;
  }

  .a3g-others li:nth-child(n + 4) .a3-plate {
    aspect-ratio: 2 / 1;
  }
}

@media (max-width: 999px) {
  .a3g-works li {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px 16px;
  }

  .a3g-works li::before {
    grid-row: 1 / span 2;
    font-size: 32px;
    padding-top: 2px;
  }

  .a3g-works li > div {
    grid-column: 2;
  }

  .a3g-works h3 {
    margin-bottom: 6px;
  }
}

@media (max-width: 760px) {
  .a3g-hero .a3-hero-image img {
    object-position: var(--a3g-focus-m, 50% 50%);
  }

  .a3g-hero .a3-hero-shade {
    background:
      linear-gradient(0deg, rgba(19, 27, 22, .94) 0%, rgba(19, 27, 22, .82) 30%, rgba(19, 27, 22, .4) 54%, transparent 76%),
      linear-gradient(180deg, rgba(19, 27, 22, .8) 0%, rgba(19, 27, 22, .4) 14%, transparent 24%);
  }

  .a3g-hero .a3-hero-foot {
    gap: 4px 18px;
  }

  .a3g-hero .a3-hero-foot span + span::before {
    content: none;
  }

  .a3g-others {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .a3g-others li,
  .a3g-others li:nth-child(n + 4) {
    grid-column: auto;
  }

  .a3g-others li:nth-child(n + 4) .a3-plate {
    aspect-ratio: 1 / 1;
  }

  .a3g-others li:last-child {
    grid-column: 1 / -1;
  }

  .a3g-others li:last-child .a3-plate {
    aspect-ratio: 2 / 1;
  }
}

/* ------------------------------------------------------------------
   Eight Guilds (Nov 18 2026): rows of four, a longer introduction,
   and Guilds whose picture has not arrived yet.
   ------------------------------------------------------------------ */

/* Long Guild names keep the opening headline in proportion. */
.a3g-hero h1 > span {
  text-wrap: balance;
}

.a3g-hero--long h1 {
  font-size: clamp(38px, 4.6vw, 82px);
}

/* No picture yet: a plain forest-green opening screen, no label. */
.a3g-hero--plain {
  min-height: max(520px, 64svh);
  background:
    radial-gradient(ellipse 70% 90% at 82% 30%, rgba(195, 163, 103, .14) 0%, transparent 62%),
    var(--forest-deep);
}

.a3g-plate-plain::before {
  inset: 12px;
}

.a3g-plate-plain .a3-plate-no {
  grid-row: 1 / -1;
}

/* The longer introduction: the brief's own paragraphs, two columns on wide screens. */
.a3g-story-section {
  padding-top: 0;
}

.a3g-story {
  columns: 2;
  column-gap: clamp(40px, 6vw, 120px);
  padding-top: clamp(34px, 3.4vw, 56px);
  border-top: 1px solid var(--rule);
}

.a3g-story p {
  max-width: 62ch;
  margin: 0 0 1.1em;
  font-size: 17px;
  line-height: 1.68;
  break-inside: avoid;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

.a3g-story p:last-child {
  margin-bottom: 0;
}

.a3g-notice {
  padding-left: 18px;
  border-left: var(--a3-seam) solid var(--brass);
  color: var(--ink);
}

.a3g-notice a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.a3g-notice + .a3g-note {
  margin-top: 16px;
}

/* Rows of four. */
.a3-places.a3g-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(34px, 3.4vw, 56px) clamp(16px, 1.8vw, 30px);
}

.a3g-four .a3-place-name {
  font-size: clamp(20px, 1.55vw, 27px);
  text-wrap: balance;
}

.a3g-four .a3-place-text {
  grid-template-columns: minmax(0, 1fr) auto;
}

.a3g-four .a3-place-text .eyebrow,
.a3g-four .a3-place-line {
  grid-column: 1 / -1;
}

/* The closing tile: back to the whole set. */
.a3g-all {
  justify-content: space-between;
  flex-direction: row;
  align-items: flex-end;
  gap: 16px;
  height: 100%;
  min-height: 150px;
  padding: 22px 22px 20px;
  background: var(--forest-deep);
  color: var(--paper);
  transition: background-color 240ms ease;
}

.a3g-all-text {
  display: grid;
  gap: 10px;
}

.a3g .a3g-all .eyebrow {
  color: #f4d89c;
}

.a3g-all .glyph {
  font-size: 20px;
  transition: transform 240ms ease;
}

.a3g-all:hover,
.a3g-all:focus-visible {
  background: var(--forest);
}

@media (max-width: 1180px) {
  .a3g-others.a3g-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .a3g-others.a3g-four li,
  .a3g-others.a3g-four li:nth-child(n + 4) {
    grid-column: auto;
  }

  .a3g-others.a3g-four li:nth-child(n + 4) .a3-plate {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 999px) {
  .a3-places.a3g-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .a3g-story {
    columns: 1;
  }
}

@media (max-width: 760px) {
  .a3g-others.a3g-four li:last-child {
    grid-column: auto;
  }

  .a3g-others.a3g-four li:nth-child(n + 4) .a3-plate,
  .a3g-others.a3g-four li:last-child .a3-plate {
    aspect-ratio: 1 / 1;
  }

  .a3g-hero--long h1 {
    font-size: clamp(30px, 8.6vw, 44px);
  }
}

/* Review pass (Nov 18 2026) */
.a3g .a3g-story {
  column-gap: clamp(40px, 5vw, 88px);
}

.a3g .a3g-story p {
  max-width: none;
  margin: 0;
}

.a3g .a3g-story p + p {
  margin-top: 1.1em;
}

.a3g-hero--long ~ .a3g-lede-section .a3g-lede-text {
  max-width: 34ch;
  font-size: clamp(22px, 2.05vw, 30px);
}

/* The fire note reads as a deliberate editorial line, not a footnote. */
.a3g .a3g-notice {
  max-width: 60ch;
  margin-top: clamp(36px, 3.4vw, 52px);
  padding: 22px 0;
  border-left: 0;
  border-block: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
}

.a3g .a3g-notice + .a3g-note {
  margin-top: 26px;
}

@media (max-width: 999px) {
  .a3g .a3g-story {
    columns: 2;
  }
}

@media (max-width: 700px) {
  .a3g .a3g-story {
    columns: 1;
  }
}

@media (max-width: 760px) {
  .a3g-hero .a3-hero-shade {
    background:
      linear-gradient(0deg, rgba(19, 27, 22, .95) 0%, rgba(19, 27, 22, .84) 32%, rgba(19, 27, 22, .6) 58%, transparent 80%),
      linear-gradient(180deg, rgba(19, 27, 22, .8) 0%, rgba(19, 27, 22, .4) 14%, transparent 24%);
  }

  .a3g-hero .a3-hero-foot {
    row-gap: 8px;
  }

  .a3g-four .a3-place-name {
    font-size: 19px;
    text-wrap: pretty;
  }

  .a3g-all {
    padding: 16px;
  }

  .a3g .a3g-all .eyebrow {
    white-space: nowrap;
  }
}

.a3g .a3g-story p {
  font-size: 17px;
  line-height: 1.68;
}

.a3g .a3g-story p + p {
  margin-top: 1.35em;
}
