@font-face {
  font-family: "JR Arabic";
  src: url("arabic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JR Icons";
  src: url("link-icons.woff2") format("woff2");
  font-display: block;
}

:root {
  color-scheme: light;
  background-color: var(--paper);
  --paper: #f5f4ed;
  --panel: #fffef8;
  --ink: #192b23;
  --muted: #536258;
  --line: #d1d7c8;
  --accent: #255841;
  --tint: #e4ecdd;
  --focus: #1667a0;
  --night-paper: #0b1f2d;
  --night-panel: #122a3b;
  --night-ink: #f0f4f5;
  --night-muted: #b5c5cc;
  --night-line: #3b5262;
  --night-accent: #b8dcab;
  --night-tint: #1e394a;
  --night-focus: #92caff;
  --latin: "Helvetica Neue", Arial, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: var(--night-paper); --panel: var(--night-panel); --ink: var(--night-ink);
  --muted: var(--night-muted); --line: var(--night-line); --accent: var(--night-accent);
  --tint: var(--night-tint); --focus: var(--night-focus);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --paper: var(--night-paper); --panel: var(--night-panel); --ink: var(--night-ink);
    --muted: var(--night-muted); --line: var(--night-line); --accent: var(--night-accent);
    --tint: var(--night-tint); --focus: var(--night-focus);
  }
}

body.jrra7-page {
  margin: 0; padding: 0;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font: 400 1rem/1.65 "JR Arabic", Tahoma, Arial, sans-serif;
}
.jrra7-page *, .jrra7-page *::before, .jrra7-page *::after { box-sizing: border-box; }
.jrra7-page h1, .jrra7-page h2 { color: var(--ink); font-family: inherit; margin: 0; letter-spacing: 0; }
.jrra7-page a { color: inherit; text-decoration: none; }
.jrra7-page button, .jrra7-page input { font: inherit; }
.jrra7-page button, .jrra7-page a { touch-action: manipulation; }
.jrra7-page button { cursor: pointer; }
.jrra7-page [hidden], .enhanced { display: none !important; }
.js .enhanced { display: inline-flex !important; }
.jrra7-page :focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.jrra7-page .frame { width: min(100% - 2.25rem, 36rem); margin-inline: auto; }
.ui-icon { display: inline-grid; place-items: center; flex: none; line-height: 1; }
.ui-icon::before { font: normal 1em/1 "JR Icons"; }
.icon-instagram::before { content: "\f437"; }
.icon-snapchat::before { content: "\f665"; }
.icon-whatsapp::before { content: "\f618"; }
.icon-mail::before { content: "\f32f"; }
.icon-gallery::before { content: "\f42b"; }
.icon-link::before { content: "\f470"; }
.icon-phone::before { content: "\f5c1"; }
.icon-sun::before { content: "\f5a2"; }
.icon-moon::before { content: "\f496"; }
.icon-share::before { content: "\f52e"; }
.icon-out::before { content: "\f13f"; }

.site-head, .toolbar, .tool, .brand {
  display: flex; align-items: center;
}
.site-head { justify-content: space-between; gap: .5rem; padding-block: .75rem; border-bottom: 1px solid var(--line); }
.jrra7-page .brand { min-height: 44px; color: var(--ink); font: 850 1.55rem/.95 var(--latin); letter-spacing: -.09em; }
.brand span { color: var(--accent); }
.toolbar { gap: .35rem; }
.tool {
  justify-content: center; gap: .5rem; min-height: 44px; border: 1px solid var(--line);
  border-radius: .75rem; padding: .35rem .85rem; color: var(--ink); background: var(--panel);
  font-size: .87rem !important; font-weight: 600 !important;
}
.toolbar .tool { width: 44px; height: 44px; padding: 0; }
.toolbar .ui-icon { font-size: 1.12rem; }
.tool:hover, .tool:active { background: var(--tint); }
.contents { display: grid; gap: 2rem; align-items: start; padding-block: 2rem 2.5rem; }
.directory, .photo-gallery, .link-copy { min-width: 0; }
.bio { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.9; margin: 0 0 1.25rem; overflow-wrap: anywhere; white-space: pre-line; }
.link-list { display: grid; list-style: none; margin: 0; padding: 0; gap: .5rem; }
.link-list li { margin: 0; }
.link-row {
  min-height: 61px; display: grid; grid-template-columns: 2.35rem minmax(0, 1fr) 1.15rem;
  gap: .75rem; align-items: center; padding: .45rem .85rem; border: 1px solid var(--line);
  border-radius: .8rem; background: var(--panel);
}
.link-row:hover, .link-row:focus-visible { border-color: var(--accent); background: var(--tint); }
.service-icon {
  width: 2.35rem; height: 2.35rem; display: grid; place-items: center; background: var(--tint);
  color: var(--accent); border-radius: .62rem; font-size: 1.22rem;
}
.link-row .icon-out { color: var(--muted); font-size: .92rem; }
.link-copy { font-size: .97rem; line-height: 1.55; font-weight: 680; overflow-wrap: anywhere; }

.photo-track {
  display: flex; width: 100%; aspect-ratio: 4 / 5; max-height: 36rem;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; border-radius: .9rem;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line);
}
.photo-slide { flex: 0 0 100%; min-width: 0; height: 100%; display: grid; grid-template: 100% / 100%; place-items: center; scroll-snap-align: start; }
.jrra7-page .photo-slide img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.jrra7-page .photo-slide:focus-visible { outline-offset: -4px; }
.photo-gallery.is-ready .photo-track { scrollbar-width: none; }
.photo-gallery.is-ready .photo-track::-webkit-scrollbar { display: none; }
.photo-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .45rem .05rem 0; }
.photo-indicators, .photo-buttons { display: flex; align-items: center; gap: .35rem; }
.photo-indicators i { width: .42rem; height: .32rem; border-radius: 1rem; background: var(--muted); opacity: .45; }
.photo-indicators .current { width: 1.5rem; opacity: 1; background: var(--accent); }
.photo-button {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid transparent; border-radius: 50%; background: transparent; color: var(--ink);
}
.photo-button:hover, .photo-button:focus-visible { background: var(--tint); }
.photo-button[aria-disabled="true"] { opacity: .35; cursor: default; background: transparent; }
.chevron { display: block; width: .65rem; height: .65rem; border: solid currentColor; border-width: 2px 2px 0 0; }
.chevron.right { transform: rotate(45deg); }
.chevron.left { transform: rotate(-135deg); }
.play-symbol { display: block; width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 9px; border-color: transparent transparent transparent currentColor; }
[data-playing="true"] .play-symbol { width: 9px; height: 12px; border: solid currentColor; border-width: 0 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.site-foot a:hover { text-decoration: underline; }
.site-foot { margin-top: auto; padding-block: .4rem; border-top: 1px solid var(--line); }
.site-foot a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); font: 600 .86rem/1.35 var(--latin); }
.skip { position: fixed; top: -10rem; right: 1rem; background: var(--ink); color: var(--paper) !important; padding: .6rem 1rem; z-index: 5; }
.skip:focus { top: 1rem; }
.notice { position: fixed; bottom: max(1rem, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 5; width: max-content; max-width: 90%; padding: .55rem .9rem; background: var(--ink); color: var(--paper); border-radius: .6rem; }
.notice:empty { display: none; }
#share-dialog { width: min(90vw, 24rem); border: 1px solid var(--line); border-radius: 1rem; background: var(--panel); color: var(--ink); padding: 1.3rem; }
#share-dialog::backdrop { background: #0c1b16a6; }
#share-dialog form { display: grid; gap: .75rem; }
#share-url { padding: .6rem; width: 100%; color: var(--ink); background: var(--paper); border: 1px solid var(--line); }

@media (min-width: 800px) {
  .jrra7-page .frame { width: min(100% - 6rem, 67rem); }
  .site-head { min-height: 76px; }
  .contents { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(2rem, 6.4vw, 5.5rem); padding-block: 2.6rem 3rem; }
  .bio { margin-block-end: 1.6rem; }
}
@media (max-width: 360px) {
  .jrra7-page .frame { width: calc(100% - 1.5rem); }
  .tool { padding-inline: .6rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .link-row, .tool { transition: background-color .15s ease, border-color .15s ease; }
}
