﻿/* Volkskunde: shared page CSS from the reference system, supplemented by volkskunde.css. */

html[data-radius="soft"] { --r-sm: 10px; --r-md: 12px; --r-lg: 14px; --r-btn: 10px; }

/* the nav: six words; under 1440 the two long ones shorten, under 1280 Home (the logo) goes and Aims & scope reads Scope */
.nav__sm, .nav__xs { display: none; }
@media (min-width: 1024px) and (max-width: 1439px) {
  .nav__xl { display: none; }
  .nav__sm { display: inline; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav__item:has(.nav__home) { display: none; }
  .nav__lg { display: none; }
  .nav__xs { display: inline; }
}
/* a phone: the bar holds the name and the menu button; Submit a manuscript sits in the sheet and the hero */
@media (max-width: 639px) {
  .nav:not(.is-open) .nav__actions { display: none; }
  .nav:not(.is-open) .nav__toggle { margin-left: auto; }
  .hero--photo .hero-notice { display: none; }
}
.nav__menu .menu-card .panel { --p-h: 150px; }

/* scope (peek list) and the process list */
#scope .rows > li { padding-block: var(--s-4); }
#scope .rows > li:first-child { padding-top: 0; }
.link-row.phone-only { display: none; }
@media (min-width: 1024px) {
  .scope__side, .process__side { align-self: stretch; display: flex; flex-direction: column; }
  .scope__photo, .process__side .develop { flex: 1 1 auto; }
}
@media (max-width: 1023px) { .scope__photo { aspect-ratio: 4 / 3; } }
@media (max-width: 639px) {
  .scope__photo { aspect-ratio: 2 / 3; }
  .link-row.phone-only { display: flex; }
  .link-row.desk-only { display: none; }
  /* the second phone screen of a .g2m section ends on its last block, at the screen's foot */
  main > section.g2m > .wrap.grid > :last-child { align-self: stretch; display: flex; flex-direction: column; gap: var(--s-5); }
  .scope__photo, .process__side .develop, .info__photo { flex: 1 1 0; aspect-ratio: auto; min-height: 240px; height: auto; }
  .hero--photo { --photo: 34svh; }
  .nav:not(.is-open) .nav__actions + .nav__toggle { margin-left: auto; }
}
.link-row { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); margin-top: var(--s-6); }
.steps { counter-reset: step; }
.steps > li { grid-template-columns: 40px minmax(0, 1fr); }
.steps > li::before { counter-increment: step; content: counter(step); grid-row: 1 / span 2; font: 400 var(--t-h3)/1 var(--font-display); color: var(--p-ochre); }
.steps .rows__value { grid-column: 3; }
.steps > li > p { grid-column: 2; }
.develop { margin: 0; border-radius: var(--r-lg); overflow: hidden; min-height: 420px; }
.develop > img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) { .develop { align-self: stretch; } }
@media (max-width: 1023px) { .develop { min-height: 0; height: auto; aspect-ratio: 1 / 1; } }
/* a phone's two screens (.g2m): each group keeps the column's width and starts at its screen's top */
@media (max-width: 1023px) { main > section.g2m > .wrap.grid > * { align-self: start; width: 100%; min-width: 0; } }

/* the journal information rows */
.rows--spec > li { padding-block: 12px; }
.rows--spec .rows__value { white-space: normal; max-width: 34ch; }
.rows--spec .rows__value a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.info__photo { aspect-ratio: 3 / 2; }
.info__side { display: grid; gap: var(--s-6); align-content: start; }
@media (max-width: 639px) { .info__side { gap: var(--s-5); } }
@media (max-width: 639px) { .rows--spec .rows__value { max-width: 22ch; } }

/* the iframe frame for the journal's own system (submission, login, tracker, search, contact) */
.card.embed { position: relative; display: flex; flex-direction: column; gap: 0; padding: 0; background: transparent; border: 1px solid var(--line-strong); border-radius: var(--r-lg); overflow: hidden; min-height: var(--embed-min, 520px); }
/* the loading line until the frame has loaded (the backend's page draws over it) */
.card.embed::before { content: attr(data-loading); position: absolute; top: var(--s-6); left: 0; right: 0; text-align: center; color: var(--muted); font-size: var(--t-body); pointer-events: none; }
.card.embed.is-loaded::before { content: none; }
.embed iframe { position: relative; display: block; flex: 1 1 auto; width: 100%; min-height: var(--embed-min, 520px); border: 0; background: transparent; }
.embed__loading { display: block; padding: var(--s-4) var(--s-5) 0; color: var(--muted); font-size: var(--t-body); }
#latest .wrap { height: 100%; display: flex; flex-direction: column; }
#latest .embed { flex: 1 1 0; --embed-min: 360px; }
@media (max-width: 639px) { .embed__bar { padding-inline: var(--s-4); } .embed { --embed-min: 560px; } #latest .embed { --embed-min: 420px; } }

/* inner pages: one page head, then plain blocks on the .wrap lines (no one-screen rule here) */
.page { padding-top: var(--nav); }
main.page > section:is(.page-head, .block) { display: block; height: auto; min-height: 0; }
main.page > section:is(.page-head, .block) > .wrap { height: auto; }
main.page > section.page-head { padding: var(--s-9) 0 var(--s-8); }
.page-head .grid { align-items: start; row-gap: var(--s-7); }
.page-head__text { display: grid; gap: var(--s-5); align-content: start; }
.page-head h1 { font-size: clamp(38px, 2.29vw + 29px, 64px); line-height: 1.04; letter-spacing: var(--display-tracking-xl, var(--display-tracking)); }
.page-head__lead { font-size: var(--t-lead); line-height: 1.55; max-width: 52ch; }
.page-head__photo { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 2; background: var(--p-surface); }
.page-head__photo img { width: 100%; height: 100%; object-fit: cover; }
.crumb { font-size: var(--t-label); font-weight: 500; color: var(--muted); display: flex; gap: var(--s-2); flex-wrap: wrap; }
.crumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
main.page > section.block { padding: var(--s-8) 0 var(--s-9); }
main.page > section.block + section.block, main.page > section.page-head + section.block:not(.block--surface) { padding-top: 0; }
main.page > section.block--surface, main.page > section.block + section.block--surface { background: var(--p-surface); padding: var(--s-9) 0; }
main.page > section.block--surface + section.block { padding-top: var(--s-9); }
.block h2 { margin-bottom: var(--s-6); }
.prose { display: grid; gap: var(--s-5); max-width: 66ch; font-size: 17px; line-height: 1.7; }
.prose h3 { margin-top: var(--s-4); }
.aside-facts { background: var(--p-surface); border-radius: var(--r-lg); padding: var(--s-6); }
.block--surface .aside-facts { background: var(--p-bg); }
.aside-facts h3 { font: 500 var(--t-card)/1.3 var(--font-text); margin-bottom: var(--s-4); }
@media (max-width: 1023px) { main.page > section.page-head { padding: var(--s-8) 0 var(--s-7); } }
@media (max-width: 639px) { main.page > section.page-head { padding: var(--s-7) 0 var(--s-6); } main.page > section.block { padding: var(--s-6) 0 var(--s-8); } main.page > section.block + section.block { padding-top: 0; } main.page > section.block--surface, main.page > section.block + section.block--surface { padding: var(--s-8) 0; } main.page > section.block--surface + section.block { padding-top: var(--s-8); } .prose { font-size: 16px; } }

/* checklist (submission guidelines) */
.checklist { display: grid; gap: 0; counter-reset: rule; }
.checklist > li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--s-4); padding-block: var(--s-4); border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.55; }
.checklist > li::before { content: ""; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23efe9dc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 24px no-repeat; }
.checklist small { display: block; color: var(--muted); font-size: var(--t-small); margin-top: var(--s-1); }
.confirm { display: grid; gap: var(--s-5); padding: var(--s-6); border-radius: var(--r-lg); background: var(--p-surface); border: 1px solid var(--line); }
.confirm__check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s-3); align-items: start; font-size: 17px; line-height: 1.5; cursor: pointer; min-height: 44px; }
.confirm__check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--p-accent); }
.notice { border-left: 3px solid var(--p-accent); padding: var(--s-2) 0 var(--s-2) var(--s-5); font-size: 17px; line-height: 1.6; max-width: 66ch; }

/* editorial board */
.board { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); }
.board__card { grid-column: auto / span 4; display: grid; gap: var(--s-2); align-content: start; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--p-surface); }
.board__card--lead { grid-column: auto / span 6; padding: var(--s-6); }
.board__role { font-size: var(--t-label); font-weight: 500; color: var(--accent); }
.board__name { font: var(--display-weight) var(--t-h3)/1.2 var(--font-display); }
.board__aff { color: var(--muted); }
@media (max-width: 1023px) { .board__card { grid-column: auto / span 6; } .board__card--lead { grid-column: 1 / -1; } }
@media (max-width: 639px) { .board__card, .board__card--lead { grid-column: 1 / -1; } }

/* archive: a year per row, twelve issue chips */
.archive { display: grid; gap: 0; }
.archive__row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: var(--s-5); align-items: center; padding-block: var(--s-5); border-bottom: 1px solid var(--line); }
.archive__year { display: grid; gap: 2px; }
.archive__year b { font: var(--display-weight) var(--t-h3)/1.1 var(--font-display); }
.archive__year span { font-size: var(--t-small); color: var(--muted); }
.issues { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-2); }
.issue { display: grid; place-items: center; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--p-surface); font-weight: 500; font-variant-numeric: tabular-nums;
         transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.issue:hover { background: var(--p-accent); border-color: var(--p-accent); color: var(--p-accent-ink); }
@media (hover: hover) and (pointer: fine) { .issue:hover { transform: translateY(-2px); } }
.issue--access { background: transparent; border-style: dashed; }
.archive__row.is-current { background: var(--p-surface); border-radius: var(--r-lg); border-bottom-color: transparent; padding-inline: var(--s-5); margin-inline: calc(-1 * var(--s-5)); }
.archive__row.is-current .issue { background: var(--p-bg); }
.archive__row.is-current .issue:hover { background: var(--p-accent); }
.archive__row.is-current .archive__year span { color: var(--accent); font-weight: 500; }
.legend { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); font-size: var(--t-small); color: var(--muted); margin-bottom: var(--s-6); }
.legend span { display: inline-flex; align-items: center; gap: var(--s-2); }
.legend i { width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--line-strong); background: var(--p-surface); }
.legend i.is-access { background: transparent; border-style: dashed; }
@media (max-width: 1023px) { .archive__row { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); } .archive__row.is-current { margin-inline: 0; } }
@media (max-width: 639px) { .issues { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* policies: a contents list beside the sections */
.policy { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); }
.policy__toc { grid-column: 1 / span 3; display: grid; gap: var(--s-2); align-content: start; font-weight: 500; }
.policy__toc a { padding-block: var(--s-2); border-bottom: 1px solid var(--line); }
.policy__toc a:hover { color: var(--accent); }
.policy__body { grid-column: 5 / span 8; display: grid; gap: var(--s-8); }
.policy__body section { display: grid; gap: var(--s-4); scroll-margin-top: calc(var(--nav) + var(--s-5)); }
.policy__body ul { display: grid; gap: var(--s-3); }
.policy__body li { position: relative; padding-left: var(--s-5); font-size: 17px; line-height: 1.6; max-width: 66ch; }
.policy__body li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--p-accent); }
@media (max-width: 1023px) { .policy__toc, .policy__body { grid-column: 1 / -1; } .policy__toc { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); } }
@media (max-width: 639px) { .policy__toc { grid-template-columns: minmax(0, 1fr); } }

/* the year's twelve issues on the frequency page */
.months { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gutter); }
.month { display: grid; gap: var(--s-1); padding: var(--s-4); border-radius: var(--r-md); border: 1px solid var(--line); background: var(--p-bg); min-height: 88px; align-content: start;
         transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.month b { font: var(--display-weight) var(--t-h3)/1 var(--font-display); }
.month span { font-size: var(--t-small); color: var(--muted); }
.month:hover { border-color: var(--p-accent); }
@media (hover: hover) and (pointer: fine) { .month:hover { transform: translateY(-2px); } }
@media (max-width: 1023px) { .months { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 639px) { .months { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* contact details */
.contact-list { display: grid; gap: 0; }
.contact-list > div { display: grid; gap: var(--s-1); padding-block: var(--s-4); border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: var(--t-label); font-weight: 500; color: var(--muted); }
.contact-list dd { margin: 0; font-size: 18px; }
.contact-list a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }

@media (max-width: 639px) { .closing__cta > .close__media { flex: none; aspect-ratio: 3 / 2; min-height: 0; } }

/* the inner footer: the links row of the closing footer, without the close */
.footer--site { padding-block: var(--s-9) var(--s-6); }
.footer .closing__links .footer__mark { font-size: 32px; }

/* a short window: sections locked to one screen let photographs and lists cover the next section */
@media (min-width: 1024px) {
  main > section.section:not([data-moment="pinned-chapters"]) {
    height: auto;
    min-height: calc(var(--h, 1) * 100svh);
  }
  main > section.section:not([data-moment="pinned-chapters"]) > :is(.wrap, .container) { height: auto; min-height: 0; }
  main > section.section:not([data-moment="pinned-chapters"]) > :is(.wrap, .container) > :is(.fill, .grid) {
    flex: 1 0 auto; min-height: auto; overflow: visible;
  }
}

/* the closing band is locked to one screen; on a short window the submit button covers the columns */
@media (min-width: 1280px) {
  footer.footer.closing {
    height: auto;
    min-height: calc(var(--h, 1) * 100svh);
    display: flex;
    flex-direction: column;
  }
  footer.footer.closing > .wrap {
    flex: 1 0 auto;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--s-8);
  }
  footer.footer.closing :is(.closing__cta, .closing__links) { flex: 0 0 auto; min-height: auto; }
}
