
/* Rupakala page CSS: the client's own faces and colours on the taste-skill system */
@font-face { font-family: "Kawung Display"; src: url("fonts/KawungDisplay-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Kawung Display"; src: url("fonts/KawungDisplay-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/PlusJakartaSans-latin.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
:root {
  --p-bg: #f5eee3; --p-surface: #ece3d5; --p-ink: #1c1c24; --p-muted: #5d5a5e;
  --p-accent: #22306b; --p-accent-ink: #f5eee3; --p-action: #22306b; --p-action-ink: #f5eee3;
  --p-inv-bg: #1c1c24; --p-inv-surface: #28282f; --p-inv-ink: #f5eee3; --p-inv-muted: #a9a6a2;
  --p-inv-accent: #f5eee3; --p-inv-accent-ink: #1c1c24; --p-inv-action: #f5eee3; --p-inv-action-ink: #1c1c24;
  --font-display: "Kawung Display", "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display-weight: 400; --display-tracking: -0.02em; --display-tracking-xl: -0.03em;
  --terracotta: #d9643a;
}
.ss01 { font-feature-settings: "ss01" 1; }
.nav__logo img { display: block; height: 32px; width: auto; }
.footer .nav__logo img { height: 36px; }

/* hero wall: the words sit on the calm cream half */
@media (min-width: 640px) { .hero--photo h1 { max-width: 11ch; } }
.hero--photo h1 .ss01 { color: var(--p-accent); }

/* story statement */
#story .t-label { color: var(--terracotta); color: #a8461f; }
#story .story__more { margin-top: var(--s-7); }
.story__mark { display: block; width: 96px; height: 96px; margin-bottom: var(--s-6); }
@media (max-width: 639px) { .story__mark { width: 64px; height: 64px; } }

/* free calendar: soft pill */
.pill--soft { background: #f6dccd; color: #8c3a17; border: 0; font-weight: 500; }
.develop { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.develop > img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023px) { .develop { margin-top: var(--s-7); } }

/* catalogue tiles */
.tiles { row-gap: var(--s-6); }
.tile { gap: var(--s-3); }
.tile__media { display: block; aspect-ratio: 1; }
.tile--wide .tile__media { aspect-ratio: 16 / 9; }
.span-4 > .tile__media, .tile.span-4 .tile__media { aspect-ratio: 4 / 3; }
.tile__media > picture, .tile__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile__media img { transition: transform 600ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .tile:hover .tile__media img { transform: scale(1.03); } }
.close__media > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.tile__head > h3 { font-size: 18px; line-height: 1.3; }
.tile__price { font-weight: 500; }
.tile__facts { margin-top: calc(-1 * var(--s-2)); font-size: 13px; }
.tile > p:not([class]) { font-size: 15px; line-height: 1.5; color: var(--ink); }
.tile__links { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); margin: 0; }
.tile__links .link { min-height: 44px; display: inline-flex; align-items: center; font-weight: 500; }
@media (min-width: 1024px) { .tile > p:not([class]) { min-height: 2lh; } .tile.span-6 > p:not([class]) { min-height: 0; } }
@media (max-width: 639px) {
  .grid.tiles { row-gap: var(--s-6); }
  .grid.tiles > .tile .tile__media { aspect-ratio: 1; }
  .tile { gap: var(--s-2); }
  .tile__head { flex-direction: column; gap: 2px; }
  .tile__head > h3 { font-size: 16px; }
  .tile__facts { display: none; }
  .tile > p:not([class]) { font-size: 14px; line-height: 1.45; }
  .grid.tiles > .tile.span-6 { grid-column: auto / span 6; }
  .font-feature__img { aspect-ratio: 16 / 9; }
  .tile__links, .font-feature .tile__links { flex-direction: column; align-items: flex-start; }
  .font-feature p.font-specimen.font-specimen { display: none; }
  .font-feature .font-feature__img.font-feature__img { aspect-ratio: 16 / 9; }
}

/* the font feature on the brand band */
.font-feature p.font-specimen.font-specimen { font-family: "Kawung Display", var(--font-display); font-size: clamp(64px, 7vw, 112px); line-height: 1; margin: 0; letter-spacing: -0.02em; }
.font-feature__name { font-size: 18px; line-height: 1.3; margin: 0; }
.font-feature__buy { justify-content: flex-start; gap: var(--s-4); }
.font-feature__img { aspect-ratio: 3 / 2; border-radius: var(--r-lg); overflow: hidden; }
.font-feature__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023px) { .font-feature__img { margin-top: var(--s-6); } }
#assets .tiles { margin-top: 0; }

/* inner pages */
.prose-rows { display: grid; gap: 0; margin: 0; max-width: 920px; }
.prose-row { display: grid; grid-template-columns: minmax(140px, 1fr) 3fr; gap: var(--s-5); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.prose-row dt { font-weight: 500; }
.prose-row dd { margin: 0; line-height: 1.65; }
@media (max-width: 639px) { .prose-row { grid-template-columns: 1fr; gap: var(--s-2); } }
.license-note { margin-top: var(--s-6); }
.contact-mail { display: grid; gap: var(--s-4); justify-items: start; }
.contact-mail__addr { font-family: var(--font-display); font-size: clamp(26px, 4vw, 48px); margin: 0; overflow-wrap: anywhere; }
.contact-mail__addr .link { color: var(--p-accent); }
.measure p + p { margin-top: var(--s-4); }
.frame--photo .frame__img { object-fit: cover; }
.brand-panel.brand-panel { display: grid; place-items: center; border-radius: var(--r-lg); aspect-ratio: 4 / 3; align-self: start; width: 100%; height: auto; min-height: 0; max-height: none; }
.brand-panel--indigo { background: #22306b; }
.brand-panel--cream { background: var(--p-surface); }
.brand-panel img { width: 38%; height: auto; }
.hero--split .hero-visual.frame--photo.frame--photo { aspect-ratio: 4 / 3; align-self: start; width: 100%; height: auto; min-height: 0; max-height: none; }
/* home page rhythm: sections as tall as their content, 112px between sections (72px on a phone) */
main > section.section.section:not(.hero) { height: auto; min-height: 0; padding-top: 56px; padding-bottom: 56px; }
main > section.section.section.ground-brand { padding-top: 96px; padding-bottom: 96px; margin-block: 56px; }
main > section.section.g2.g2 > .wrap { display: flex; flex-direction: column; row-gap: var(--s-7); height: auto; }
main > section.section.g2.g2 > .wrap > * { margin-block: 0; }
main > section#story.section.section { padding-top: 112px; }
footer.closing.closing { padding-top: 56px; }
@media (max-width: 639px) {
  main > section.section.section:not(.hero) { padding-top: 36px; padding-bottom: 36px; }
  main > section.section.section.ground-brand { padding-top: 64px; padding-bottom: 64px; margin-block: 36px; }
  main > section#story.section.section { padding-top: 72px; }
  footer.closing.closing { padding-top: 36px; }
  footer.closing.closing { min-height: 0; height: auto; }
  footer.closing.closing > .wrap.wrap { grid-template-rows: auto auto !important; row-gap: 64px !important; }
  footer.closing.closing .close__media { min-height: 0; aspect-ratio: 2 / 3; flex: none; }
}
/* inner pages: sections as tall as their words, not a full screen each */
main > section.page-section.page-section { height: auto; min-height: 0; padding-top: var(--s-9); padding-bottom: var(--s-9); }
main > section.page-section + section.page-section { padding-top: 0; }
.page-section .frame--photo { position: relative; aspect-ratio: 4 / 3; height: auto; min-height: 0; border-radius: var(--r-lg); overflow: hidden; }
.page-section .frame--photo > .frame__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023px) { .page-section .frame--photo { margin-top: var(--s-6); } }
@media (max-width: 1023px) { .hero--split .hero-visual.hero-visual { aspect-ratio: 4 / 3 !important; height: auto !important; min-height: 0 !important; flex: none !important; } }
